Re: Synchronization routine
- From: cri@xxxxxxxx (Richard Harter)
- Date: Mon, 31 Oct 2005 15:19:57 GMT
On Mon, 31 Oct 2005 13:36:17 +0000 (UTC), Willem <willem@xxxxxxxx>
wrote:
[snip much that is good]
>Mergesort would still descend into smaller and smaller partitions.
>It doesn't magically know that the data happens to be sorted.
>In fact, the running time of mergesort is always the same(*).
It isn't quite true that the running time of mergesort is always the
same. When merging two runs of length n the number of comparisons
required may be anything between n and 2n-1.
Richard Harter, cri@xxxxxxxx
http://home.tiac.net/~cri, http://www.varinoma.com
I started out in life with nothing.
I still have most of it left.
.
- References:
- Synchronization routine
- From: Joris Dobbelsteen
- Re: Synchronization routine
- From: Willem
- Synchronization routine
- Prev by Date: Re: What is a "null loop" in the programming language context?
- Next by Date: Re: Synchronization routine
- Previous by thread: Re: Synchronization routine
- Next by thread: Re: Synchronization routine
- Index(es):