Pages

Showing posts with label bubble sort. Show all posts
Showing posts with label bubble sort. Show all posts

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(). 


Sunday, August 29, 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.


Saturday, August 28, 2010

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.