Re: A worst case for qsort

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: A worst case for qsort
Дата
Msg-id alpine.DEB.2.10.1408061548010.28413@sto
обсуждение исходный текст
Ответ на Re: A worst case for qsort  (Peter Geoghegan <pg@heroku.com>)
Ответы Re: A worst case for qsort  (John Cochran <j69cochran@gmail.com>)
Список pgsql-hackers
>> If so, adding some randomness in the decision process would suffice to
>> counter the adversarial input argument you raised.
>
> This is specifically addressed by the paper. Indeed, randomly choosing
> a pivot is a common strategy. It won't fix the problem.

Too bad. I must admit that I do not see how to build a test case which 
would trigger a worst case behavior against a qsort which chooses the 
pivot randomly, but I have not read the paper, and possibly there is an 
element of context which is eluding me.

-- 
Fabien.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Marko Tiikkaja
Дата:
Сообщение: pgcrypto: PGP signatures
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: Enhancing pgbench parameter checking