Re: QuickSort (worst-cases... special data)
- From: Chris F Clark <cfc@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 05 May 2008 18:03:25 -0400
Sem <semyazz@xxxxxxxxx> writes:
I see i forgot to write that i have to choose always middle element
and both sequences have bad timings, but V is much better than A...
but they are still O(n^2) but different... so again, what can cause it?
Have you tried profiling the code to see where the time is being
spent? If you have two cases that take different amounts of time, I
would think that they would have different execution profiles.
.
- Follow-Ups:
- References:
- QuickSort (worst-cases... special data)
- From: Sem
- Re: QuickSort (worst-cases... special data)
- From: Tom Truscott
- Re: QuickSort (worst-cases... special data)
- From: Sem
- QuickSort (worst-cases... special data)
- Prev by Date: Re: QuickSort (worst-cases... special data)
- Next by Date: Re: How can I tell if F is a string or if it is a number?
- Previous by thread: Re: QuickSort (worst-cases... special data)
- Next by thread: Re: QuickSort (worst-cases... special data)
- Index(es):