Pages

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.