DocumentCode
2723814
Title
Algorithms for the Generalized Sorting Problem
Author
Huang, Zhiyi ; Kannan, Sampath ; Khanna, Sanjeev
Author_Institution
Dept. of Comp. & Inf. Sci., Univ. of Pennsylvania, Philadelphia, PA, USA
fYear
2011
fDate
22-25 Oct. 2011
Firstpage
738
Lastpage
747
Abstract
We study the generalized sorting problem where we are given a set of n elements to be sorted but only a subset of all possible pairwise element comparisons is allowed. The goal is to determine the sorted order using the smallest possible number of allowed comparisons. The generalized sorting problem may be equivalently viewed as follows. Given an undirected graph G(V, E) where V is the set of elements to be sorted and E defines the set of allowed comparisons, adaptively find the smallest subset E´ ⊆ E of edges to probe such that the directed graph induced by E´ contains a Hamiltonian path. When G is a complete graph, we get the standard sorting problem, and it is well-known that Θ(n log n) comparisons are necessary and sufficient. An extensively studied special case of the generalized sorting problem is the nuts and bolts problem where the allowed comparison graph is a complete bipartite graph between two equal-size sets. It is known that for this special case also, there is a deterministic algorithm that sorts using Θ(n log n) comparisons. However, when the allowed comparison graph is arbitrary, to our knowledge, no bound better than the trivial Õ(n2) bound is known. Our main result is a randomized algorithm that sorts any allowed comparison graph using O(n3/2) comparisons with high probability (provided the input is sortable). We also study the sorting problem in randomly generated allowed comparison graphs, and show that when the edge probability is p, Õ(min{p2/n, n3/2 √p}) comparisons suffice on average to sort.
Keywords
computational complexity; deterministic algorithms; directed graphs; probability; randomised algorithms; sorting; Hamiltonian path; bipartite graph; deterministic algorithm; generalized sorting problem algorithms; nuts and bolts problem; pairwise element comparisons; probability; randomized algorithm; undirected graph; Additives; Algorithms; Awards activities; Bipartite graph; Fasteners; Probes; Sorting; algorithm; comparison-sort; sorting;
fLanguage
English
Publisher
ieee
Conference_Titel
Foundations of Computer Science (FOCS), 2011 IEEE 52nd Annual Symposium on
Conference_Location
Palm Springs, CA
ISSN
0272-5428
Print_ISBN
978-1-4577-1843-4
Type
conf
DOI
10.1109/FOCS.2011.54
Filename
6108244
Link To Document