Desperatly trying to implement an mergesort algorithm
- From: ejijott@xxxxxxxxx
- Date: 4 Nov 2005 08:02:15 -0800
Hello!
Im having extreme problems trying to implement an mergesort in Ada, and
was hoping from some help in this group :)
My definition of the procedure is this:
type List is array(Natural range <>) of Integer;
..
..
procedure Mergesort(A : in out List);
..
..
And for readability I've used pastebin to host my code
(http://pastebin.com/417262)
I just plain and simply can't grasp what is wrong here! Am I even
partitioning the array properly?
(The merge part isn't complete yet)
Any help is GREATLY appreciated.
.
- Follow-Ups:
- Re: Desperatly trying to implement an mergesort algorithm
- From: Georg Bauhaus
- Re: Desperatly trying to implement an mergesort algorithm
- From: Samuel Tardieu
- Re: Desperatly trying to implement an mergesort algorithm
- Prev by Date: Re: Default rep specs for record types - documented??
- Next by Date: Re: Desperatly trying to implement an mergesort algorithm
- Previous by thread: Advice on abort
- Next by thread: Re: Desperatly trying to implement an mergesort algorithm
- Index(es):