Re: puzzle
- From: pete <pfiland@xxxxxxxxxxxxxx>
- Date: Sun, 12 Jun 2005 00:14:26 GMT
spinoza1111@xxxxxxxxx wrote:
> You're doing O(n) searches, times a linearly shrinking array, only in
> the worst case. N/2 the time on average it finds U. This doesn't
> transform order n^2 because it divides by a constant and not N but it
> is none the less a significant reduction.
Whatever O(n * n / 2) could possibley mean
is what O(n * n) actually means.
Constant factors aren't part of big O notation.
--
pete
.
- Follow-Ups:
- Re: puzzle
- From: spinoza1111
- Re: puzzle
- References:
- puzzle
- From: Darius
- Re: puzzle
- From: spinoza1111
- Re: puzzle
- From: Arthur J. O'Dwyer
- Re: puzzle
- From: spinoza1111
- puzzle
- Prev by Date: Re: Somewhat OT: Auto-Complete a Crime?
- Next by Date: Re: puzzle
- Previous by thread: Re: puzzle
- Next by thread: Re: puzzle
- Index(es):
Relevant Pages
|