Re: On the complexity of determining whether n numbers are distinct
- From: "eKo1" <berndlosert@xxxxxxxxxxxx>
- Date: 24 Sep 2006 22:09:34 -0700
Markus Triska wrote:
1. We don't know a priori the size of the vector.
We enlarge it on demand.
Or better yet, we can find the largest number in the list and make the
vector that size.
2. This doesn't handle real numbers.
There's no algorithm for your problem over reals, since their equality
is undecidable.
OH!? That's interesting. Is it because some real numbers require an
infinite amount of memory to store them? The book where I got this
problem from uses the term "real numbers" which is why I asked.
How about floating point numbers? I guess since each floating point
number is represented as a string of bits which is just an integer,
then your algorithm applies.
The book must be implicitly restricting me to pair-wise comparison
operations. What do I do in this case?
.
- Follow-Ups:
- 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: goanna
- 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: eKo1
- Re: On the complexity of determining whether n numbers are distinct
- From: Markus Triska
- On the complexity of determining whether n numbers are distinct
- Prev by Date: Re: (Probably flawed) Polynomial time Graph Isomorphism
- 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):
Relevant Pages
|