Cal Poly Pomona & San Luis Obispo Forums  

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

Reply
 
LinkBack Thread Tools Search this Thread
Old 05-14-05, 04:38 PM   #1 (permalink)
Active Member
 
that-one-guy's Avatar
 
Joined: Jul 2004
Posts: 69
that-one-guy will become famous soon enough
Default 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, 12:26 PM   #2 (permalink)
Enthusiast
 
Joined: Oct 2003
Posts: 152
david90 will become famous soon enough
Default

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, 12:49 PM   #3 (permalink)
Enthusiast
 
PandaMoOo's Avatar
 
Joined: Aug 2004
Location: Mission Viejo, CA
Posts: 401
PandaMoOo will become famous soon enough
Send a message via AIM to PandaMoOo
Default

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-
GradeCalPoly
PandaMoOo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may 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 01:03 PM.

slopomona.com RSS Feed slopomona.com RSS2 Feed slopomona.com XML Feed

Copyright ©2003-2012 SLOPomona.com. All rights reserved.
Copyright ©2000-2012, vBulletin Jelsoft Enterprises Ltd.
SEO by vBSEO ©2010, Crawlability, Inc.