A Linear-Time Algorithm to Find the First Overlap in a Binary Word

  • Park, Thomas H. (Router Software Team, Router Technology Department, Electronics and Telecommunications Research Institute)
  • Published : 2000.06.01

Abstract

First, we give a linear-time algorithm to find the first overlap in an arbitrary binary word. Second, we implement the algorithm in the C language and show that the number of comparisons in this algorithm is less than 31n, where n$\geq$3 is the length of the input word.

Keywords