merge sort

This is a discussion on merge sort within the C Programming forums, part of the General Programming Boards category; I was wondering if anyone had a sample program that merged two arrays and sorted them into one array....

  1. #1
    Unregistered
    Guest

    merge sort

    I was wondering if anyone had a sample program that merged two arrays and sorted them into one array.

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >I was wondering if anyone had a sample program that merged
    >two arrays and sorted them into one array.

    Yep, I do.

  3. #3
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    > Yep, I do.

    Me too - it's in Java, but it is a sample program....

  4. #4
    Unregistered
    Guest

    Cool

    Look in a C data structures book.

    or

    Get the java code and translate it to C.


    Mr. c.

  5. #5
    Unregistered
    Guest
    how do you translate java to c?

  6. #6
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    Very carefully... Just look at the algorithm and write the C code....

  7. #7
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I was wondering if anyone had a sample program
    >that merged two arrays and sorted them into one array.
    Yes

    >how do you translate java to c?
    http://www.dinkumware.com/jproject.html

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Merge Sort Help
    By blindman858 in forum C++ Programming
    Replies: 5
    Last Post: 05-14-2005, 09:47 PM
  2. Merge Sort
    By blindman858 in forum C++ Programming
    Replies: 2
    Last Post: 05-12-2005, 11:14 AM
  3. threaded merge sort
    By AusTex in forum Linux Programming
    Replies: 4
    Last Post: 05-04-2005, 04:03 AM
  4. merge sort tutorial from cprogramming.com
    By Micko in forum C Programming
    Replies: 0
    Last Post: 03-15-2005, 08:43 AM
  5. help with merge sort
    By maloy in forum C Programming
    Replies: 4
    Last Post: 03-04-2002, 05:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21