GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Sep-2008, 00:17
xlonehats xlonehats is offline
New Member
 
Join Date: Sep 2007
Posts: 20
xlonehats is on a distinguished road
Question

Merge sort 3


ok we all knw wht a merge sort is right, the code is easy too

but the problem is

how to:

Design a modified Mergesort algorithm called Mergesort3 that sorts an array by dividing it
into three equal (or almost equal) sub-arrays and then merging the three sorted sub-arrays.....????
  #2  
Old 18-Sep-2008, 05:53
L7Sqr L7Sqr is offline
Member
 
Join Date: Jul 2005
Location: constant limbo
Posts: 234
L7Sqr is a jewel in the roughL7Sqr is a jewel in the rough

Re: merge sort 3


Quote:
Originally Posted by xlonehats
... the code is easy too
If the code is so easy for mergesort, then why is an extra partition so difficult?
If mergesort was written properly, I imagine that you would get > 80% code reuse on your new implementation.
What specifically is the hangup?
__________________
My personal site: Utilities for text processing, debugging, testing and plotting
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge sort on a linked list Temujin_12 C++ Forum 1 06-Mar-2008 21:33
Merge sort with fixed main memory usage warlock C++ Forum 0 05-Mar-2008 14:17
3 way Merge sort sam1983 Java Forum 0 15-Apr-2007 03:13
Merge Sort Echo C Programming Language 1 12-Mar-2006 11:20
Merge Sort Algorithm .c eclipt C Programming Language 1 28-Dec-2005 03:56

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 22:56.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.