Source Codes

Source Codes

C Program of Multilayer Perceptron Net using Backpropagation

C Program of Multilayer Perceptron Net using Backpropagation : A multilayer perceptron (MLP) is a feedforward artificial neural network model that maps sets of input data onto a set of appropriate output. An MLP consists of multiple layers of nodes in a directed graph, with each layer fully connected to the next one. Except for the input nodes, each...

C Program to print strings in alphabetical order

C Program to print strings in alphabetical order or Lexicographical order : As we all know there are several ways to sort strings alphabetically but using arrays is the easiest.  Ordering Strings into alphabetical form is also referred as Lexicographical ordering of strings. Today we will learn how to sort or print strings in alphabetical order using C programming. ...

C Program to Concatenate two Strings using Arrays

C Program to Concatenate two Strings using Arrays : There are lot of ways of concatenating strings in C programming, also there is standard function in C "strcat" to concatenate the strings. But how to concatenate strings without using standard String function. Today we will learn how to concatenate two strings using arrays. Actually concept is quite easy, we...

C program of Transpose of Matrix | Matrix Programs in C

C program of Transpose of Matrix : Transpose of Matrix is one of the most important operations on Matrices and quite easy one too.  Transpose of Matrix means exchanging all rows of Matrix with columns of Matrix and vice versa.  Consider an Example, say i have a matrix A defined below : A     = 1      2     3 4      5     6 Now Transpose of...

C Program of Huffman coding using Greedy Algorithm Approach

C Program of Huffman coding using Greedy Algorithm Approach : This code is not written by me. I found a great article on Geeks for Geeks and thought it worth sharing. Still if you have any doubts ask me in form of comments. Basic of Huffman Coding : Huffman coding is a lossless data compression algorithm. The idea is to...

C program to add two polynomials using Linked Lists

C program to add two polynomials using Linked Lists : Adding two polynomials is quite easy stuff when we do it manually :P but it requires a bit effort while programming it. I have written a simple three step Algorithm to add polynomials: 1. Seperate the like terms aside say polynomial is 2xy^2 +x^2 +x. Now we have three seperate...