Thread: C++ help
View Single Post
Old 05-19-05, 12:49 PM   #3 (permalink)
PandaMoOo
GCP.com Admin
 
PandaMoOo's Avatar
 
Joined: Aug 2004
Location: Mission Viejo, CA
Posts: 401
PandaMoOo is an unknown quantity at this point
Send a message via AIM to PandaMoOo
I believe the concept behind merge sort is you take TWO OR MORE already sorted lists and combine them into one, making sure the final list is sorted as well.

What's the prompt? Are you starting with two lists already sorted, or do you have to take an array of unsorted elements and make a recursive function that constructs a lot of lists and slowly adds them together?

The trick here is to watch the indexes and keep track of variables. (And of course know what the concept behind a merge sort is.) If you post code I'll be sure to cricitize it, otherwise look for other students or your professor.
__________________
-PandaMoOo-
www.GradeCalPoly.com
PandaMoOo is offline   Reply With Quote