Skip to main content
Log in

Linear amortized time enumeration algorithms for compatible Euler trails in edge-colored graphs

  • Published:
Journal of Combinatorial Optimization Aims and scope Submit manuscript

Abstract

A compatible Euler trail (tour) in an edge-colored graph is an Euler trail (tour) in which each two edges traversed consecutively along the Euler trail (tour) have distinct colors. In this paper, we show that the problem of counting compatible Euler trails in edge-colored graphs is \(\#\)P-complete, and develop O(mN) time algorithms for enumerating compatible Euler trails (tours) in edge-colored graphs with m edges and N compatible Euler trails (tours). It is worth mentioning that our algorithms can run in O(N) time when there is no vertex v with degree 4 and maximum monochromatic degree 2.

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

Similar content being viewed by others

Data Availability

Enquiries about data availability should be directed to the authors

References

  • Benkouar A, Manoussakis Y, Paschos VT, Saad R (1996) Hamiltonian problems in edge-colored complete graphs and eulerian cycles in edge-colored graphs: Some complexity results. RAIRO Oper Res 30:417–438

    Article  MathSciNet  MATH  Google Scholar 

  • Bondy JA, Murty USR (2008) Graph theory. Springer, New York

    Book  MATH  Google Scholar 

  • Brightwell GR, Winkler P (2004) Note on counting Eulerian circuits, CDAM Research Report LSE-CDAM-2004-12

  • Conte A, Grossi R, Loukides G, Pisanti N, Pissis SP, Punzi G (2020) Fast assessment of eulerian trails, In: Fourth international workshop on enumeration problems and applications

  • Fleischner H, Fulmek M (1990) P(D)-compatible eulerian trails in digraphs and a new splitting lemma, Contemp Methods Graph Theory, 291–303

  • Fleischner H, Hilton AJ, Jackson B (1990) On the maximum number of pairwise compatible euler trails. J. Graph Theory 14:51–63

    Article  MathSciNet  MATH  Google Scholar 

  • Fleury PH (1883) Deux problèmes de Géométrie de situation, J de Mathématiques Élémentaires, 2nd ser. (in French), 2, 257–261

  • Grossi R (2016) Enumeration of paths, cycles, and spanning trees, Encyclopedia of Algorithms. Springer, New York

    Google Scholar 

  • Guo Z, Broersma H, Li R, Zhang S (2020) Some algorithmic results for finding compatible spanning circuits in edge-colored graphs. J Comb Optim 40:1008–1019

    Article  MathSciNet  MATH  Google Scholar 

  • Hierholzer C, Wiener C (1873) Üeber die Möglichkeit, einen Linienzug ohne Wiederholung und ohne Unterbrechung zu umfahren. Math Annalen 6:30–32

    Article  MathSciNet  MATH  Google Scholar 

  • Jackson B (1987) Compatible Euler tours for transition systems in eulerian graphs. Discrete Math 66:127–131

    Article  MathSciNet  MATH  Google Scholar 

  • Kotzig A (1968) Moves without forbidden transitions in a graph. Mat. Časopis Sloven. Akad. Vied 18:76–80

    MathSciNet  MATH  Google Scholar 

  • Kurita K, Wasa K (2022) Constant amortized time enumeration of eulerian trails. Theoret Comput Sci 923:1–12

    Article  MathSciNet  MATH  Google Scholar 

  • Pevzner P (1995) DNA physical mapping and alternating eulerian cycles in colored graphs. Algorithmica 13:77–105

    Article  MathSciNet  MATH  Google Scholar 

  • Pevzner P (2000) Computational molecular biology: an algorithmic approach, MIT Press

  • Shioura A, Tamura A, Uno T (1997) An optimal algorithm for scanning all spanning trees of undirected graphs. SIAM J Comput 26:678–692

    Article  MathSciNet  MATH  Google Scholar 

  • Sankararaman S, Efrat A, Ramasubramanian S, Agarwal PK (2014) On channel-discontinuity-constraint routing in wireless networks. Ad Hoc Netw 13:153–169

    Article  Google Scholar 

  • Szachniuk M, Popenda M, Adamiak RW, Blazewicz J (2009) An assignment walk through 3D NMR spectrum. In: IEEE symposium on computational intelligence in bioinformatics and computational biology 2009:215–219

  • Tarjan RE (1974) A note on finding the bridges of a graph. Inform Process Lett 2:160–161

    Article  MathSciNet  MATH  Google Scholar 

  • Uno T (2015) Constant time enumeration by amortization, workshop on algorithms and data structures, 593–605

  • van Aardenne-Ehrenfest T, de Bruijn NG (1951) Circuits and trees in oriented linear graphs. Simon Stevin 28:203–217

    MathSciNet  MATH  Google Scholar 

  • Wasa K (2016) Enumeration of enumeration algorithms, arXiv preprint arXiv: 1605.05102

Download references

Acknowledgements

We thank the anonymous referees for their careful reading, and for comments on an earlier version that improved the presentation.

Funding

The authors have not disclosed any funding

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shenggui Zhang.

Ethics declarations

Conflict of interest

The authors have not disclosed any competing interests

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supported by NSFC (Nos. 11601430, 12071370, 12131013 and U1803263), and the Natural Science Foundation of Shaanxi Province (Nos. 2020JQ-099 and 2023-JC-QN-0004).

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Bai, Y., Guo, Z., Zhang, S. et al. Linear amortized time enumeration algorithms for compatible Euler trails in edge-colored graphs. J Comb Optim 45, 73 (2023). https://doi.org/10.1007/s10878-023-01005-w

Download citation

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s10878-023-01005-w

Keywords

Mathematics Subject Classification

Navigation