Tags C programs

Tag: C programs

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 Find Minimum Spanning tree KRUSKAL’s Algorithm

C program to Find Minimum Spanning tree KRUSKAL's Algorithm : Kruskal's algorithm is a greedy algorithm in graph theory that finds a minimum spanning tree for a connected weighted graph. This means it finds a subset of the edges that forms a tree that includes every vertex, where the total weight of all the edges in the tree is...