DATA STRUCTURES - C Plus Plus Codes

Floyd Warshall Algorithm

Description This program shows the implementation of Floyd Warshall Shortest Path Algorithm. Source Code #include<iostream.h> #include<conio.h> #include<stdio.h> #include<stdlib. ...

1 Comments. 2557 views since Sep 1, 2008

Queue ADT Using Single Linked Lists

Description C++ program to implement Queue ADT using Single linked lists. Source Code //program to implement Queue ADT using linked lists #include<iostream.h> #include<conio.h> #include&l ...

0 Comments. 1550 views since Aug 9, 2010

AVL Tree

Description This program shows all possible Operations on an AVL Tree Source Code /* Adelson Velseky Landis Tree */ # include <iostream.h> # include <stdlib.h> # include <conio.h> ...

0 Comments. 1357 views since Sep 1, 2008

Enqueue & Dequeue

Description this is a Code which is used to Create a Queue,Enqueue an element in a Queue,Dequeue an element from a Queue,to display the member elements of a Queue & to display the Size of the Queue. Source Code <pre name="code" class ...

1 Comments. 1105 views since Aug 17, 2008

Bubble Sort

Description This is a Code which sorts a given set of numbers by using Bubble Sort algorithm Source Code #include &lt;stdio.h&gt; #include &lt;iostream.h&gt; #include&lt;conio.h&gt; //Bubble sort functio ...

0 Comments. 1086 views since Aug 17, 2008

Heap Sort

Description This is a Code to implement the HeapSort Algorithm for a given set of numbers. Source Code #include &lt;iostream.h&gt; #include &lt;conio.h&gt; int heapSize = 10; void print(int a[]) { for ( ...

0 Comments. 1065 views since Aug 17, 2008

Towers of Hanoi

Description This is a Code to implement the Towers of Hanoi problem using C++. Source Code #include &lt;iostream.h&gt; // a disk with a value , which is an element of the stack ,tower in this cas ...

0 Comments. 1057 views since Aug 17, 2008

Link List Operations

Description This is a Code which creates a Link List,enters a new Node into a Link List,Deletes an already existin Node from the Link List from any position in the Link List & can print the Members of the list. Source Code <pre name= ...

0 Comments. 1050 views since Aug 17, 2008

Shanon Fano

Description Using Shannon's algorithm for code assignment to characters of varying probabilities. Source Code #include&lt;stdio.h&gt; #include&lt;conio.h&gt; #include&lt;math.h&gt; int temp,i,j,col=0,n ...

0 Comments. 1040 views since Aug 29, 2008

Insertion Sort

Description This is a Code which is used to sort a given set of numbers using Insertion Sort Algorithm. Source Code #include &lt;iostream.h&gt; #include &lt;conio.h&gt; void sort(int * a) { for (int j ...

0 Comments. 1029 views since Aug 17, 2008

Bucket Sort

Description This Code implements the Bucket Sort algorithn using C++ to sort a given set of numbers. Source Code #include &lt;iostream.h&gt; class element //element { public: int value; element *nex ...

0 Comments. 1023 views since Aug 17, 2008

Selection Sort

Description This is a Code to implement the Selection Sort Algorithnm for a given set of numbers. Source Code #include &lt;iostream.h&gt; void selectionSort(int *array,int length) //selection sort funct ...

0 Comments. 1003 views since Aug 17, 2008

BST - Binary Search Tree

Description Binary search tree program Source Code //BINARY SEARCH TREE #include &quot;stdio.h&quot; #include &quot;conio.h&quot; #include&quot;malloc.h&quot; #include&quot;stdlib.h&quot; typedef str ...

0 Comments. 995 views since Jul 2, 2011

Circular Queue

Description This is a Program for Circular Queue Implementation using Arrays. Source Code #include&lt;iostream.h&gt; #include&lt;conio.h&gt; const int MAX = 5; class cqueue { ...

0 Comments. 991 views since Aug 31, 2008

Queue Implementation using Linked List

Description This program takes the Name,Age & Height of a person in a Queue and does all related operations Source Code #include &lt;iostream.h&gt; #include &lt;conio.h&gt; #include &lt;stdlib.h&gt; ...

0 Comments. 961 views since Aug 26, 2008

Binary Tree

Description This is a simple program illustrating all operations on a Binary Tree Source Code /* Binary tree implementation in CPP */ /* --------------------------------- */ #include &lt;iostream.h& ...

0 Comments. 960 views since Aug 26, 2008

Merge Sort

Description This is a Code which implements MergeSort Algorithm to sort a given set of numbers. Source Code #include &lt;iostream.h&gt; #include &lt;conio.h&gt; #include &lt;stdio.h&gt; void print(int * ...

0 Comments. 914 views since Aug 17, 2008

Stack Implementation

Description This is a simple code which describes the basic stack implementation like push, pop etc.... Source Code # include&lt;iostream.h&gt; # include&lt;process.h&gt; # include&lt;conio.h&gt; # define ...

0 Comments. 908 views since Aug 23, 2008

Merging Link Lists

Description This is a code which merges two Sorted Link Lists to form a third Link List. Source Code #include&lt;iostream.h&gt; #include&lt;conio.h&gt; #include&lt;process.h&gt; // Creating a N ...

0 Comments. 884 views since Aug 31, 2008

Doubly Circular Linked List

Description This is a program which implements Doubly Circular Linked List. Source Code #include&lt;iostream.h&gt; #include&lt;conio.h&gt; class cirdlink { struct node { int data; ...

0 Comments. 846 views since Aug 31, 2008

Quick Sort

Description How quick sort work.. Source Code #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;limits.h&gt; typedef int T; /* type of item to be sorted */ #define MAXSTACK ...

0 Comments. 753 views since Jun 23, 2011