Euclidean strings

  • Authors:
  • John Ellis;Frank Ruskey;Joe Sawada;Jamie Simpson

  • Affiliations:
  • Department of Computer Science, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada V8W 3P6;Department of Computer Science, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada V8W 3P6;Department of Computer Science, University of Toronto, Toronto, Canada;Department of Mathematics and Statistics, Curtin University, Perth, Western Australia, Australia

  • Venue:
  • Theoretical Computer Science
  • Year:
  • 2003

Quantified Score

Hi-index 5.23

Visualization

Abstract

A string p = p0p1...pn-1 of non-negative integers is a Euclidean string if the string (p0 + 1)p1...(pn-1 - 1) is rotationally equivalent (i.e., conjugate) to p. We show that Euclidean strings exist if and only if n and p0 + p1 + ... + pn-1 are relatively prime and that, if they exist, they are unique. We show how to construct them using an algorithm with the same structure as the Euclidean algorithm, hence the name. We show that Euclidean strings are Lyndon words and we describe relationships between Euclidean strings and the Stem-Brocot tree, Fibonacci strings, Beatty sequences, and Sturmian sequences. We also describe an application to a graph embedding problem.