Skip to main content

Generating Cyclic 2-Gray Codes for Fibonacci q-Decreasing Words

  • Conference paper
  • First Online:
WALCOM: Algorithms and Computation (WALCOM 2024)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 14549))

Included in the following conference series:

  • 79 Accesses

Abstract

We present a two-stage algorithm for generating cyclic 2-Gray codes for q-decreasing words. In the first step, a simple recursive algorithm is used to generate a cyclic 2-Gray code for q-run constrained words, which are q-decreasing words that start with a 0. Then, by considering the first block of 1 s and concatenating cyclic Gray code listings of q-run constrained words of different length n, we construct the first known cyclic 2-Gray code for q-decreasing words for all positive real numbers q.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Baril, J.-L., Kirgizov, S., Vajnovszki, V.: Asymptotic bit frequency in Fibonacci words. Pure Math. Appl. 30(1), 23–30 (2022)

    MathSciNet  Google Scholar 

  2. Baril, J.-L., Kirgizov, S., Vajnovszki, V.: Gray codes for Fibonacci \(q\)-decreasing words. Theor. Comput. Sci. 927, 120–132 (2022)

    Article  MathSciNet  Google Scholar 

  3. Eǧecioǧlu, O., Iršič, V.: Fibonacci-run graphs I: basic properties. Discret. Appl. Math. 295, 70–84 (2021)

    Article  MathSciNet  Google Scholar 

  4. Eǧecioǧlu, O., Iršič, V.: Fibonacci-run graphs II: degree sequences. Discret. Appl. Math. 300, 56–71 (2021)

    Article  MathSciNet  Google Scholar 

  5. Eǧecioǧlu, O., Klavžar, S., Mollard, M.: Fibonacci Cubes With Applications And Variations. World Scientific Publishing Company (2023)

    Google Scholar 

  6. Feinberg, M.: Fibonacci-Tribonacci. Fibonacci Q. 1(3), 71–74 (1963)

    Google Scholar 

  7. Flores, I.: Direct calculation of \(k\)-generalized Fibonacci numbers. Fibonacci Q. 5(3), 259–266 (1967)

    MathSciNet  Google Scholar 

  8. Goulden, I., Jackson, D.: Combinatorial Enumeration. A Wiley-Interscience Publication. John Wiley & Sons Inc., New York (1983)

    Google Scholar 

  9. Hsu, W.-J.: Fibonacci cubes - a new interconnection topology. IEEE Trans. Parallel Distrib. Syst. 4(1), 3–12 (1993)

    Article  Google Scholar 

  10. Kirgizov, S.: \(q\)-bonacci words and numbers. Fibonacci Q. 60(5), 187–195 (2022)

    MathSciNet  Google Scholar 

  11. Kirgizov, S., Ramírez, J.: Polyominoes and graphs built from Fibonacci words. Fibonacci Q. 60(5), 196–211 (2022)

    MathSciNet  Google Scholar 

  12. Knuth, D.: The Art of Computer Programming, vol. 4A. Addison-Wesley Professional, Combinatorial Algorithms (2011)

    Google Scholar 

  13. Miles, E.: Generalized Fibonacci numbers and associated matrices. Amer. Math. Monthly 67(8), 745–752 (1960)

    Article  MathSciNet  Google Scholar 

  14. Mütze, T.: Combinatorial Gray codes - an updated survey. arXiv Preprint, Feb. 2022. arXiv: arxiv.org/abs/2202.01280

  15. OEIS Foundation Inc., The on-line encyclopedia of integer sequences, published electronically at oeis.org (2023)

    Google Scholar 

  16. Ruskey, F.: Combinatorial Generation. Book under preparation (2003)

    Google Scholar 

  17. Savage, C.: A survey of combinatorial Gray codes. SIAM Rev. 4, 605–629 (1997)

    Article  MathSciNet  Google Scholar 

  18. Sawada, J., Williams, A., Wong, D.: Inside the binary reflected Gray code: Flip-swap languages in 2-Gray code order. In: Lecroq, T., Puzynina, S. (eds.) Combinatorics on Words, pp. 172–184, Cham (2021)

    Google Scholar 

  19. Sawada, J., Williams, A., Wong, D.: Flip-swap languages in binary reflected Gray code order. Theor. Comput. Sci. 933, 138–148 (2022)

    Article  MathSciNet  Google Scholar 

  20. Stanton, D., White, D.: Constructive Combinatorics. Springer Science & Business Media (2012)

    Google Scholar 

  21. Vajnovszki, V.: Gray code order for Lyndon words. Discret. Math. Theor. Comput. Sci., 9(2) (2007)

    Google Scholar 

Download references

Acknowledgements

This research is supported by the Macao Polytechnic University research grant (Project code: RP/FCA-02/2022). The research of the first author is also supported by the National Research Foundation of Korea (NRF) grant funded by the Ministry of Science and ICT (MSIT), Korea (No. 2020R1F1A1A01070666).

A part of this work was done while the first author was visiting Kanazawa University in Japan. The first author would like to thank Hiroshi Fujisaki for his hospitality during his stay in Kanazawa.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Dennis Wong .

Editor information

Editors and Affiliations

Appendix: Python code to generate q-decreasing words and q-run constrained words in cyclic 2-Gray code order

Appendix: Python code to generate q-decreasing words and q-run constrained words in cyclic 2-Gray code order

figure d

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Wong, D., Liu, B., Lam, CT., Im, M. (2024). Generating Cyclic 2-Gray Codes for Fibonacci q-Decreasing Words. In: Uehara, R., Yamanaka, K., Yen, HC. (eds) WALCOM: Algorithms and Computation. WALCOM 2024. Lecture Notes in Computer Science, vol 14549. Springer, Singapore. https://doi.org/10.1007/978-981-97-0566-5_8

Download citation

  • DOI: https://doi.org/10.1007/978-981-97-0566-5_8

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-97-0565-8

  • Online ISBN: 978-981-97-0566-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics