Re: QuickSort (worst-cases... special data)
- From: Sem <semyazz@xxxxxxxxx>
- Date: Thu, 8 May 2008 02:00:18 -0700 (PDT)
Chris F Clark napisał(a):
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.
The best thing is that those different timings are correct... (as my
lecturer said, but he didn't said why... ;/ ) So i have to find cause
of this situation...
.
- Follow-Ups:
- Re: QuickSort (worst-cases... special data)
- From: Chris F Clark
- Re: QuickSort (worst-cases... special data)
- 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
- Re: QuickSort (worst-cases... special data)
- From: Chris F Clark
- QuickSort (worst-cases... special data)
- Prev by Date: error
- Next by Date: WfPM 2008 1st call for papers
- Previous by thread: Re: QuickSort (worst-cases... special data)
- Next by thread: Re: QuickSort (worst-cases... special data)
- Index(es):