Abstract
Motivated by an application in the design of VLSI layouts, we consider a generalization of the usual topological sorting problem on directed, acyclic graphs. The difference is that an instance of the generalized problem may require some nodes in the graph to occupy fixed positions in the topological order. We also allow several nodes to share the same position in the topological order.
We describe an algorithm to decide whether a generalized topological sorting problem has a solution and if so, to find a solution and to test whether the solution is unique. The algorithm runs in O(e + n log log n) time on a directed, acyclic graph with n nodes and e edges and in linear time on the graphs arising in our application.
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Emde Boas, P. van, Kaas, R. and Zijlstra, E.: “Design and Implementation of an Efficient Priority Queue”. Mathematical Systems Theory 10 (1977), 99–127.
Emde Boas, P. van: “Preserving Order in a Forest in less than Logarithmic Time and Linear Space”. Information Processing Letters 6 (1977), 80–82.
Lengauer, T., Mehlhorn, K.: “The HILL System: A Design Environment for the Hierarchical Specification, Compaction, and Simulation of Integrated Circuit Layouts”. Proceedings, Conference on Advanced Research in VLSI, MIT, 1984, 139–149.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1986 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Hagerup, T., Rülling, W. (1986). A generalized topological sorting problem. In: Makedon, F., Mehlhorn, K., Papatheodorou, T., Spirakis, P. (eds) VLSI Algorithms and Architectures. AWOC 1986. Lecture Notes in Computer Science, vol 227. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-16766-8_24
Download citation
DOI: https://doi.org/10.1007/3-540-16766-8_24
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-16766-2
Online ISBN: 978-3-540-38746-6
eBook Packages: Springer Book Archive