Thread: merge sort

  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,380
    >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,823
    > 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,823
    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,897
    >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, 09:43 AM
  5. help with merge sort
    By maloy in forum C Programming
    Replies: 4
    Last Post: 03-04-2002, 06:22 PM