Cal Poly Pomona and San Luis Obispo University Forums  

Go Back   Cal Poly Pomona and San Luis Obispo University Forums > Onsite Campus > Classwork & Homework

Reply
 
LinkBack Thread Tools Search this Thread
Old 05-14-05, 03:38 PM   #1 (permalink)
that-one-guy
Active Member
 
that-one-guy's Avatar
 
Joined: Jul 2004
Posts: 69
that-one-guy is an unknown quantity at this point
C++ help

Does anyone here know C++ well enough to help me? I am ECE 114 c for engineers and I have to code the merge sort algorithm. Respond here if you can help a bit. Thanks.
that-one-guy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-15-05, 11:26 AM   #2 (permalink)
david90
Enthusiast
 
Joined: Oct 2003
Posts: 152
david90 is an unknown quantity at this point
i'm not familiar with merge sort algorithm but I can help if u code it if u tell me how it works. i'm familiar with bubble sort.
david90 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-19-05, 11:49 AM   #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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -7. The time now is 02:34 AM.

CalPolyOnline.com RSS Feed CalPolyOnline.com RSS2 Feed CalPolyOnline.com XML Feed

Copyright ©2003-2008 CalPolyOnline.com. All rights reserved.
Copyright ©2000-2008, vBulletin Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.