Graphs & digraphs (2nd ed.)
Journal of the ACM (JACM)
The Use of Information in Sorting
Journal of the ACM (JACM)
Hi-index | 0.00 |
A sort sequence Sn is a sequence of all unordered pairs of indices in In = {1, 2, ..., n}. With a sort sequence Sn = (s1, s2, ..., s(n 2)), one can associate a predictive sorting algorithm A(Sn). An execution of the algorithm performs pairwise comparisons of elements in the input set X in the order defined by the sort sequence Sn except that the comparisons whose outcomes can be inferred from the results of the preceding comparisons are not performed. A sort sequence is said to be extremal if it maximizes a given objective function. First we consider the extremal sort sequences with respect to the objective function ω(Sn) - the expected number of active predictions in Sn. We study ω-extremal sort sequences in terms of their prediction vectors. Then we consider the objective function Ω(Sn) - the minimum number of active predictions in Sn over all input orderings.