Abstract
We study the classical problem of sorting when comparison between certain pair of elements are forbidden. Along with the set of elements V, the input to our problem is an undirected graph G(V, E), whose edges represent the pairs that can be directly compared in constant time. We call this the comparison graph. It is also possible that the set of elements forms a partial-order, and not a total-order in which case, the sorting problem is the problem of determining all possible relations in the partial order, i.e. determining the (transitive) orientations of the edges of the graph.
If q is the number of edges missing in the graph, we first give a sorting algorithm that takes comparisons improving on the recent upper bound of . We also show the first lower bound by giving a graph and an orientation by an adversary where comparisons are necessary. Then, we give an algorithm (independent of q) when the comparison graph is from a special class of graphs like chordal or comparability graphs. Finally, we make some remarks regarding the complexity of sorting with forbidden comparisons when the elements form a total order.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
The constant used in the paper is 200, instead of 320. We have made the small change to factor in a calculation gap in last equation on page 7 in [1].
References
Banerjee, I., Richards, D.: Sorting under forbidden comparisons. In: 15th Scandinavian Symposium and Workshops on Algorithm Theory (SWAT 2016). Leibniz International Proceedings in Informatics (LIPIcs), vol. 53, pp. 22:1–22:13. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik (2016)
Daskalakis, C., Karp, R.M., Mossel, E., Riesenfeld, S.J., Verbin, E.: Sorting and selection in posets. SIAM J. Comput. 40(3), 597–622 (2011)
Golumbic, M.C., Rheinboldt, W.: Algorithmic Graph Theory and Perfect Graphs. Computer Science and Applied Mathematics. Elsevier Science, Amsterdam (2014)
Komlós, J., Ma, Y., Szemerédi, E.: Matching nuts and bolts in o(n log n) time. SIAM J. Discret. Math. 11(3), 347–372 (1998)
Rose, D.J., Tarjan, R.E., Lueker, G.S.: Algorithmic aspects of vertex elimination on graphs. SIAM J. Comput. 5(2), 266–283 (1976)
Tarjan, R.E., Yannakakis, M.: Simple linear-time algorithms to test chordality of graphs, test acyclicity of hypergraphs, and selectively reduce acyclic hypergraphs. SIAM J. Comput. 13(3), 566–579 (1984)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Biswas, A., Jayapaul, V., Raman, V. (2017). Improved Bounds for Poset Sorting in the Forbidden-Comparison Regime. In: Gaur, D., Narayanaswamy, N. (eds) Algorithms and Discrete Applied Mathematics. CALDAM 2017. Lecture Notes in Computer Science(), vol 10156. Springer, Cham. https://doi.org/10.1007/978-3-319-53007-9_5
Download citation
DOI: https://doi.org/10.1007/978-3-319-53007-9_5
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-53006-2
Online ISBN: 978-3-319-53007-9
eBook Packages: Computer ScienceComputer Science (R0)