Pages

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