Re: In-place algorithm
- From: "Stephen Howe" <sjhoweATdialDOTpipexDOTcom>
- Date: Fri, 23 May 2008 14:26:16 +0100
is this merge sort an in-place algorithm?
I am assuming you are taliking about arrays.
No. Auxilary memory is required.
Merge sort an be in-place but it is extremely difficult problem,
particularly if you want it to remain stable.
It usually costs O(N * log N * log N) in-place.
There has been some progress over the years but not to the extent that
inplace merge sort is as efficient as merge sort with auxilary memory.
If you are talking about linked lists, then the links themselves can be
manipulated, no auxilary memory is required.
Stephen Howe
.
- Follow-Ups:
- Re: In-place algorithm
- From: Juha Nieminen
- Re: In-place algorithm
- References:
- In-place algorithm
- From: fattorare
- In-place algorithm
- Prev by Date: Re: In-place algorithm
- Next by Date: Re: In-place algorithm
- Previous by thread: Re: In-place algorithm
- Next by thread: Re: In-place algorithm
- Index(es):
Relevant Pages
|