Skip to main content
Log in

Embedding cycles and paths on solid grid graphs

  • Published:
The Journal of Supercomputing Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

References

  1. 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

  2. Arkin EM, Fekete SP, Mitchell JSB (2000) Approximation algorithms for lawn mowing and milling. Comput Geom 17(1–2):25–50

    Article  MATH  MathSciNet  Google Scholar 

  3. Cornelsen S, Wagner T (2004) Drawing graphs on two and three lines. J Graph Algorithms Appl 8(2):161–177

    Article  MATH  MathSciNet  Google Scholar 

  4. Diestel R (2010) Graph theory. Graduate texts in mathematics, 4th edn, vol 173. Springer, Heidelberg

  5. Dong Chen S, Shen H, Topor R (2002) An efficient algorithm for constructing Hamiltonian paths in meshes. Parallel Comput 28(9):1293–1305

    Article  MATH  MathSciNet  Google Scholar 

  6. 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

    Article  MATH  MathSciNet  Google Scholar 

  7. Garey M, Johnson D (1979) Computers and intractability: a guide to the theory of NP-completeness. WH Freeman & Co., New York

    MATH  Google Scholar 

  8. Gordon D (1987) Efficient embeddings of binary trees in VLSI arrays. IEEE Trans Computers 100(9):1009–1018

    Article  MATH  Google Scholar 

  9. Gregori A (1989) Unit-length embedding of binary trees on a square grid. Inf Process Lett 31(4):167–173

    Article  MATH  MathSciNet  Google Scholar 

  10. 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

  11. Hu J, Sapatnekar SS (2001) A survey on multi-net global routing for integrated circuits. Integr VLSI J 31(1):1–49

    Article  MATH  Google Scholar 

  12. Itai A, Papadimitriou CH, Szwarcfiter JL (1982) Hamiltonian paths in grid graphs. SIAM J Comput 11(4):676–686

    Article  MATH  MathSciNet  Google Scholar 

  13. 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

  14. 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

    Article  MATH  MathSciNet  Google Scholar 

  15. 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

    Article  MATH  MathSciNet  Google Scholar 

  16. O’Rourke J (1987) Art gallery theorems and algorithms, vol 4. Oxford University Press, Oxford

    MATH  Google Scholar 

  17. 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

    MATH  MathSciNet  Google Scholar 

  18. 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)

  19. 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)

  20. Suderman M (2004) Pathwidth and layered drawings of trees. Int J Comput Geom Appl 14(3):203–225

    Article  MATH  MathSciNet  Google Scholar 

  21. 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

    Article  MATH  MathSciNet  Google Scholar 

  22. Ullman JD (1984) Computational aspects of VLSI. Computer Science Press

  23. 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

  24. 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

  25. Zhang W, Liu Y (2011) Approximating the longest paths in grid graphs. Theor Computer Sci 412(39):5340–5350

    Article  MATH  MathSciNet  Google Scholar 

  26. 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

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Alireza Bagheri.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11227-016-1811-y

Keywords

Navigation