Pages

Showing posts with label object oriented. Show all posts
Showing posts with label object oriented. Show all posts

Wednesday, August 03, 2011

Binary Search Tree - Code


Binary Search Tree
The following C++ code will explains the implementation of Binary Search Tree.
The following implementation is in object oriented using the Tree class and tree object
The implemented ADT functions of Binary Search Tree are insert and search.


Friday, November 05, 2010

Double Link List

Double Link List 
The following C++ code will explains the implementation of Double Link List.
The following implementation is in object oriented using the DoubleLinkList class and dll object. The implemented ADT functions of Double Link List are insert, print, search, modify and delete.


Saturday, October 30, 2010

Single Link List

Single Link List
The following C++ code will explains the implementation of Single Link List.
The following implementation is in object oriented using the SingleLinkList class and sll object. The implemented ADT functions of Single Link List are insert, print, search, modify and delete.


Friday, September 17, 2010

Merge Sort

Merge Sort 
The following C++ code will explains the implementation of Merge Sort and sort the user input numbers in descending order.
The following implementation is in object oriented using the MergeSort class and ms object. Actual logic of Merge sort is in the function of Merge().

Friday, September 03, 2010

Bubble Sort

Bubble Sort
The following C++ code will explains the implementation of Bubble sort and sort the user input numbers in descending order.
The following implementation is in object oriented using the BubbleSort class and bs object. Actual logic of Bubble sort is in the function of BSort(). 


Saturday, August 28, 2010

Linear Searching

Linear Searching 
The following C++ code will explains the implementation of Linear Searching and sort the user input numbers in descending order.
The following implementation is in object oriented using the LinearSearching class and ls object. Actual logic of Linear Searching is in the function of LSearching().
Remember in Linear Searching, bubble sort is used to sort the data and to search in the sorted data Linear Searching is used.


General Searching

General Searching 
The following C++ code will explains the implementation of General Searching and sort the user input numbers in descending order.
The following implementation is in object oriented using the GeneralSearching class and gs object. Actual logic of General Searching is in the function of GSearching(). 
Remember in General Searching, bubble sort is used to sort the data and to search in the sorted data General Searching is used.