Abstract
In a planar straight-line drawing of a tree T on k layers, each vertex is placed on one of k horizontal lines called layers and each edge is drawn as a straight-line segment. A planar straight-line drawing of a rooted tree T on k layers is called an upward drawing of T on k layers if, for each vertex u of T, no child of u is placed on a layer vertically above the layer on which u has been placed. For a tree T having pathwidth h, a linear-time algorithm is known that produces a planar straight-line drawing of T on ⌈3h/2⌉ layers. A necessary condition characterizing trees that admit planar straight-line drawings on k layers for a given value of k is also known. However, none of the known algorithms focuses on drawing a tree on the minimum number of layers. Moreover, although an upward drawing is the most useful visualization of a rooted tree, the known algorithms for drawing trees on k layers do not focus on upward drawings. In this paper, we give a linear-time algorithm to compute the minimum number of layers required for an upward drawing of a given rooted tree T. If T is not a rooted tree, then we can select a vertex u of T in linear time such that an upward drawing of T rooted at u would require the minimum number of layers among all other upward drawings of T rooted at the vertices other than u. We also give a linear-time algorithm to obtain an upward drawing of a rooted tree T on the minimum number of layers.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Di Battista, G., Eades, P., Tamassia, R., Tollis, I.G.: Graph Drawing: Algorithms for the Visualization of Graphs. Prentice-Hall, Upper Saddle River, New Jersey (1999)
Cornelsen, S., Schank, T., Wagner, D.: Drawing graphs on two and three lines. JGAA 8(2), 161–177 (2004)
Crescenzi, P., Di Battista, G., Piperno, A.: A note on optimal area algorithms for upward drawings of binary trees. CGTA 2, 187–200 (1992)
Dujmović, V., Fellows, M.R., Hallett, M.T., Kitching, M., Liotta, G., McCartin, C., Nishimura, N., Ragde, P., Rosamond, F.A., Suderman, M., Whitesides, S., Wood, D.R.: On the parameterized complexity of layered graph drawing. In: Meyer auf der Heide, F. (ed.) ESA 2001. LNCS, vol. 2161, pp. 488–499. Springer, Heidelberg (2001)
Felsner, S., Liotta, G., Wismath, S.K.: Straight-line drawings on restricted integer grids in two and three dimensions. JGAA 7(4), 363–398 (2003)
Garg, A., Goodrich, M.T., Tamassia, R.: Area-efficient upward tree drawings. In: Symposium on Computational Geometry, pp. 359–368 (1993)
Garg, A., Goodrich, M.T., Tamassia, R.: Planar upward tree drawings with optimal area. International Journal of Computational Geometry and Applications 6(3), 333–356 (1996)
Garg, A., Rusu, A.: Straight-line drawings of general trees with linear area and arbitrary aspect ratio. ICCSA (3), 876–885 (2003)
Garg, A., Rusu, A.: Straight-line drawings of binary trees with linear area and arbitrary aspect ratio. JGAA 8(2), 135–160 (2004)
Lengauer, T.: Combinatorial Algorithms for Integrated Circuit Layouts. Wiley, New York, USA (1990)
Shiloach, Y.: Arrangements of Planar Graphs on the Planar Lattice. PhD thesis, Weizmann Institute of Science (1976)
Shin, C.-S., Kim, S.K., Chwa, K.-Y.: Area-efficient algorithms for upward straight-line tree drawings. In: Cai, J.-Y., Wong, C.K. (eds.) COCOON 1996. LNCS, vol. 1090, pp. 106–116. Springer, Heidelberg (1996)
Suderman, M.: Pathwidth and layered drawing of trees. International Journal of Computational Geometry and Applications 14(3), 203–225 (2004)
Suderman, M.: Proper and planar drawings of graphs on three layers. In: Healy, P., Nikolov, N.S. (eds.) GD 2005. LNCS, vol. 3843, pp. 434–445. Springer, Heidelberg (2006)
Warfield, J.N.: Crossing theory and hierarchy mapping. IEEE Transactions on Systems, Man, and Cybernetics 7, 502–523 (1977)
Waterman, M.S., Griggs, J.R.: Interval graphs and maps of dna. Bulletin of Mathematical Biology 48, 189–195 (1986)
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 2008 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Alam, M.J., Samee, M.A.H., Rabbi, M.M., Rahman, M.S. (2008). Upward Drawings of Trees on the Minimum Number of Layers. In: Nakano, Si., Rahman, M.S. (eds) WALCOM: Algorithms and Computation. WALCOM 2008. Lecture Notes in Computer Science, vol 4921. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-77891-2_9
Download citation
DOI: https://doi.org/10.1007/978-3-540-77891-2_9
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-77890-5
Online ISBN: 978-3-540-77891-2
eBook Packages: Computer ScienceComputer Science (R0)