Thread: Sorting & Spliting

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    36

    Question Sorting & Spliting

    Hi there,

    I want to adjust my o/e transposition sort algorithm, so that before it sorts the list using odd and even phases, it splits it into two first.

    But i've been trying it for ages now and I am a bit lost. Im trying to write a function that will split the user entered array in half, sort the two halves ,and merge them back together.

    So far I can get it sorting the first half, but not the second. Also when I do eventually get it sorting both halves. I guess I will have to merge them back together. But then the whole list won't be sorted. So do I have to go through the above recursively so it is? Also I am a bit lost on how to do this. Could anyone give me any advice? point in the right direction?

    Many Thanks
    Last edited by akidamo; 04-12-2006 at 01:14 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 06-11-2009, 11:27 AM
  2. Need help with linked list sorting function
    By Jaggid1x in forum C Programming
    Replies: 6
    Last Post: 06-02-2009, 02:14 AM
  3. sorting structure members using pointers
    By robstr12 in forum C Programming
    Replies: 5
    Last Post: 07-25-2005, 05:50 PM
  4. Sorting words with a fast, effincient sorting method
    By Unregistered in forum C++ Programming
    Replies: 19
    Last Post: 07-12-2002, 04:21 PM
  5. Still Needing Help : selection sorting
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 10-14-2001, 08:41 PM