Re: On the complexity of determining whether n numbers are distinct
- From: Ralph Hartley <hartley@xxxxxxxxxxxxxxxx>
- Date: Mon, 25 Sep 2006 15:38:07 -0400
Patricia Shanahan wrote:
Agreed. It is very silly. It has the same complexity as a good pairwise
comparison sort if k is O(log n). I would only use it if k were small,
and smaller than n. For example, sorting thousands of 8 bit bytes.
For the original problem, it is sillier than that!
If k (the largest number) is smaller than n-1, then n numbers can *never* be distinct.
Ralph Hartley
.
- Follow-Ups:
- Re: On the complexity of determining whether n numbers are distinct
- From: Patricia Shanahan
- Re: On the complexity of determining whether n numbers are distinct
- References:
- On the complexity of determining whether n numbers are distinct
- From: eKo1
- Re: On the complexity of determining whether n numbers are distinct
- From: Markus Triska
- Re: On the complexity of determining whether n numbers are distinct
- From: eKo1
- Re: On the complexity of determining whether n numbers are distinct
- From: Markus Triska
- Re: On the complexity of determining whether n numbers are distinct
- From: Patricia Shanahan
- Re: On the complexity of determining whether n numbers are distinct
- From: goanna
- Re: On the complexity of determining whether n numbers are distinct
- From: Patricia Shanahan
- On the complexity of determining whether n numbers are distinct
- Prev by Date: Re: On the complexity of determining whether n numbers are distinct
- Next by Date: Re: On the complexity of determining whether n numbers are distinct
- Previous by thread: Re: On the complexity of determining whether n numbers are distinct
- Next by thread: Re: On the complexity of determining whether n numbers are distinct
- Index(es):