Re: Arranging the keys problem
- From: Willem <willem@xxxxxxxx>
- Date: Fri, 30 Sep 2005 11:00:34 +0000 (UTC)
Sc0rpi0 wrote:
) OMG ;) and you wonder why that interviewer did not liked your algs. ;) ?
You're confusing me with someone else. And you're missing the point.
) Just "sorting by counting". If we have definied set of extacly know
) elements, there is: R,W,B. so even if given in totally random order
) just one pass counting how many was W,R and B. Then write that many
) to the table. RRRRRRWWWBBBBBBBBBBBBBBB - sorted.
That's very nice, but his professor obviously wanted the Dutch National
Flag algorithm. Which happens to be the partitioning algorithm in
Quicksort. The class is leading up to Quicksort anyway, so I thought
I'd cut the corner.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
.
- References:
- Re: Arranging the keys problem
- From: Willem
- Re: Arranging the keys problem
- From: Sc0rpi0
- Re: Arranging the keys problem
- Prev by Date: Re: Arranging the keys problem
- Next by Date: Re: Arranging the keys problem
- Previous by thread: Re: Arranging the keys problem
- Next by thread: Re: Arranging the keys problem
- Index(es):