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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Baril, J.-L., Kirgizov, S., Vajnovszki, V.: Asymptotic bit frequency in Fibonacci words. Pure Math. Appl. 30(1), 23–30 (2022)
Baril, J.-L., Kirgizov, S., Vajnovszki, V.: Gray codes for Fibonacci \(q\)-decreasing words. Theor. Comput. Sci. 927, 120–132 (2022)
Eǧecioǧlu, O., Iršič, V.: Fibonacci-run graphs I: basic properties. Discret. Appl. Math. 295, 70–84 (2021)
Eǧecioǧlu, O., Iršič, V.: Fibonacci-run graphs II: degree sequences. Discret. Appl. Math. 300, 56–71 (2021)
Eǧecioǧlu, O., Klavžar, S., Mollard, M.: Fibonacci Cubes With Applications And Variations. World Scientific Publishing Company (2023)
Feinberg, M.: Fibonacci-Tribonacci. Fibonacci Q. 1(3), 71–74 (1963)
Flores, I.: Direct calculation of \(k\)-generalized Fibonacci numbers. Fibonacci Q. 5(3), 259–266 (1967)
Goulden, I., Jackson, D.: Combinatorial Enumeration. A Wiley-Interscience Publication. John Wiley & Sons Inc., New York (1983)
Hsu, W.-J.: Fibonacci cubes - a new interconnection topology. IEEE Trans. Parallel Distrib. Syst. 4(1), 3–12 (1993)
Kirgizov, S.: \(q\)-bonacci words and numbers. Fibonacci Q. 60(5), 187–195 (2022)
Kirgizov, S., Ramírez, J.: Polyominoes and graphs built from Fibonacci words. Fibonacci Q. 60(5), 196–211 (2022)
Knuth, D.: The Art of Computer Programming, vol. 4A. Addison-Wesley Professional, Combinatorial Algorithms (2011)
Miles, E.: Generalized Fibonacci numbers and associated matrices. Amer. Math. Monthly 67(8), 745–752 (1960)
Mütze, T.: Combinatorial Gray codes - an updated survey. arXiv Preprint, Feb. 2022. arXiv: arxiv.org/abs/2202.01280
OEIS Foundation Inc., The on-line encyclopedia of integer sequences, published electronically at oeis.org (2023)
Ruskey, F.: Combinatorial Generation. Book under preparation (2003)
Savage, C.: A survey of combinatorial Gray codes. SIAM Rev. 4, 605–629 (1997)
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)
Sawada, J., Williams, A., Wong, D.: Flip-swap languages in binary reflected Gray code order. Theor. Comput. Sci. 933, 138–148 (2022)
Stanton, D., White, D.: Constructive Combinatorics. Springer Science & Business Media (2012)
Vajnovszki, V.: Gray code order for Lyndon words. Discret. Math. Theor. Comput. Sci., 9(2) (2007)
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
Corresponding author
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
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
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)