ALGORITHM FOR MERGE SORT:
------------------------------------------------------------------------------------------------------------------------------------------
Step 1: start
Step 2: create the class merge with its object m
Step 3: read the elements of the 1st array and 2nd array
Step 4: call the member function setarr1() using its object to sort the 1st array
Step 5: call the member function setarr2() using its object to sort the 2nd array
Step 6: call the member function sort() to merge sort the two arrays
Step 7: call the member function output() to display the merge sorted array
Step 8: stop.
---------------------------------------------------------------------------------------------------------------------------------------
FLOW CHARTs
--------------------------------------------------------------------------------------------------------------------------------------
will be uploaded soon...........
No comments:
Post a Comment