Abstract
Despite many algorithms for embedding graphs on unbounded grids, only a few results on embedding graphs on restricted grids have been published. In this paper, we study the problem of embedding paths and cycles on solid grid graphs. We show that a cycle of length k is unit-length embeddable on a solid grid graph G if k is an even integer between four and the length of the longest cycle of G. In addition, our result shows that a path of length k is unit-length embeddable on G, between its two given vertices s and t, if \(k\le L\) and \(k\equiv L (\mathrm{mod}\ 2)\), in which L is the length of the longest path between s and t. Our presented two algorithms show that such embeddings can be found in linear time for cycles and quadratic time for paths, with respect to the size of graph G. In the case of rectangular grid graphs, the running time of the algorithms can be improved to O(k) and O\((k^2)\), respectively. In addition, we extend our results to \(m\times n\times o\) 3D grids. A application of our result is in the interconnection network mapping in parallel processing.









Similar content being viewed by others
References
Arkin EM, Bender MA, Demaine ED, Fekete SP, Mitchell JSB, Sethia S (2001) Optimal covering tours with turn costs. In: Proceedings of the twelfth annual ACM-SIAM symposium on discrete algorithms. Society for Industrial and Applied Mathematics, pp 138–147
Arkin EM, Fekete SP, Mitchell JSB (2000) Approximation algorithms for lawn mowing and milling. Comput Geom 17(1–2):25–50
Cornelsen S, Wagner T (2004) Drawing graphs on two and three lines. J Graph Algorithms Appl 8(2):161–177
Diestel R (2010) Graph theory. Graduate texts in mathematics, 4th edn, vol 173. Springer, Heidelberg
Dong Chen S, Shen H, Topor R (2002) An efficient algorithm for constructing Hamiltonian paths in meshes. Parallel Comput 28(9):1293–1305
Felsner S, Liotta G, Wismath S (2003) Straight-line drawings on restricted integer grids in two and three dimensions. J Graph Algorithms Appl 7(4):363–398
Garey M, Johnson D (1979) Computers and intractability: a guide to the theory of NP-completeness. WH Freeman & Co., New York
Gordon D (1987) Efficient embeddings of binary trees in VLSI arrays. IEEE Trans Computers 100(9):1009–1018
Gregori A (1989) Unit-length embedding of binary trees on a square grid. Inf Process Lett 31(4):167–173
Heckmann R, Klasing R, Monien B, Unger W (1991) Optimal embedding of complete binary trees into lines and grids. In: Proceedings of the 17th international workshop. Lecture notes in computer science, vol 570. Springer, New York, pp 25–35
Hu J, Sapatnekar SS (2001) A survey on multi-net global routing for integrated circuits. Integr VLSI J 31(1):1–49
Itai A, Papadimitriou CH, Szwarcfiter JL (1982) Hamiltonian paths in grid graphs. SIAM J Comput 11(4):676–686
Kastner R, Bozorgzadeh E, Sarrafzadeh M (2000) Predictable routing. In: Proceedings of the 2000 IEEE/ACM International Conference on Computer-aided Design. IEEE Press, pp 110–114
Kehsavarz Kohjerdi F, Bagheri A, Sardroud AA (2012) A linear-time algorithm for the longest path problem in rectangular grid graphs. Discrete Appl Math 160(3):210–217
Lin YB, Miller Z, Perkel M, Pritikin D, Sudborough IH (2003) Expansion of layouts of complete binary trees into grids. Discrete Appl Math 131(3):611–642
O’Rourke J (1987) Art gallery theorems and algorithms, vol 4. Oxford University Press, Oxford
Salman ANM, Broersma H, Baskoro ET (2003) Spanning 2-connected subgraphs in alphabet graphs, special classes of grid graphs. J Automata Lang Comb 8(4):675–681
Sardroud AA, Bagheri A (2015) An approximation algorithm for the longest cycle problem in solid grid graphs. Discrete Appl Math. doi:10.1016/j.dam.2015.10.022. arXiv:1502.07085 (to appear)
Sardroud AA, Bagheri A (2015) An approximation algorithm for the longest path problem in solid grid graphs. Optim Methods Softw. doi:10.1080/10556788.2015.1130130 (to appear)
Suderman M (2004) Pathwidth and layered drawings of trees. Int J Comput Geom Appl 14(3):203–225
Trdlicka J, Tvrdik P (2000) Embedding complete \(k\)-ary trees into \(k\)-square 2-d meshes with optimal edge congestion. Parallel Comput 26(6):783–790
Ullman JD (1984) Computational aspects of VLSI. Computer Science Press
Umans C, Lenhart W (1997) Hamiltonian cycles in solid grid graphs. In: Proceedings of 38th annual symposium on foundations of computer science. IEEE, pp 496–505
Youn H, Singh A (1988) Near optimal embedding of binary tree architecture in VLSI. In: Proceedings of the 8th International Conference on Distributed Computing Systems. IEEE Computer Society, pp 86–93
Zhang W, Liu Y (2011) Approximating the longest paths in grid graphs. Theor Computer Sci 412(39):5340–5350
Zienicke P (1991) Embeddings of treelike graphs into 2-dimensional meshes. In: Graph-theoretic concepts in computer science. Lecture notes in computer science, vol 484. Springer, New York, pp 182–192
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Asgharian Sardroud, A., Bagheri, A. Embedding cycles and paths on solid grid graphs. J Supercomput 73, 1322–1336 (2017). https://doi.org/10.1007/s11227-016-1811-y
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11227-016-1811-y