Journal article
A characterization of the squares in a Fibonacci string
Theoretical Computer Science, Vol.172(1-2), pp.281-291
1997
Abstract
A (finite) Fibonacci stringFn is defined as follows: F0 = b, F1 = a; for every integer n ⩾ 2, Fn = Fn − 1Fn − 2. For n ⩾ 1, the length of Fn is denoted by . The infinite Fibonacci stringF is the string which contains every Fn, n ⩾ 1, as a prefix. Apart from their general theoretical importance, Fibonacci strings are often cited as worst-case examples for algorithms which compute all the repetitions or all the “Abelian squares” in a given string. In this paper we provide a characterization of all the squares in F, hence in every prefix Fn; this characterization naturally gives rise to a algorithm which specifies all the squares of Fn in an appropriate encoding. This encoding is made possible by the fact that the squares of Fn occur consecutively, in “runs”, the number of which is . By contrast, the known general algorithms for the computation of the repetitions in an arbitrary string require time (and produce outputs) when applied to a Fibonacci string Fn.
Details
- Title
- A characterization of the squares in a Fibonacci string
- Authors/Creators
- C.S. Iliopoulos (Author/Creator) - King's College LondonD. Moore (Author/Creator) - Curtin UniversityW.F. Smyth (Author/Creator) - McMaster University
- Publication Details
- Theoretical Computer Science, Vol.172(1-2), pp.281-291
- Publisher
- Elsevier BV
- Identifiers
- 991005545288907891
- Copyright
- © 1997 Published by Elsevier B.V.
- Murdoch Affiliation
- Murdoch University
- Language
- English
- Resource Type
- Journal article
Metrics
138 File views/ downloads
99 Record Views
InCites Highlights
These are selected metrics from InCites Benchmarking & Analytics tool, related to this output
- Collaboration types
- Domestic collaboration
- International collaboration
- Citation topics
- 4 Electrical Engineering, Electronics & Computer Science
- 4.182 Data Structures, Algorithms & Complexity
- 4.182.1103 Efficient Algorithms
- Web Of Science research areas
- Computer Science, Theory & Methods
- ESI research areas
- Computer Science