Optimal discovery of repetitions in 2D

  • Authors:
  • Alberto Apostolico;Valentin E. Brimkov

  • Affiliations:
  • Dipartimento di Ingegneria dell' Informazione, Universití di Padova, Via Gradenigo 6A, I-35131 Padova, Italy and Department of Computer Sciences, Purdue University, Computer Sciences Building ...;Mathematics Department, SUNY Buffalo State College, Buffalo, NY 14222, USA

  • Venue:
  • Discrete Applied Mathematics - Special issue: IWCIA 2003 - Ninth international workshop on combinatorial image analysis
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Repetitive substructures in two-dimensional arrays emerge in speeding up searches and have been recently studied also independently in an attempt to parallel some of the classical derivations concerning repetitions in strings. The present paper focuses on repetitions in two dimensions that manifest themselves in form of two ''tandem'' occurrences of a same primitive rectangular pattern W where the two replicas touch each other with either one side or corner. Being primitive here means that W cannot be expressed in turn by repeated tiling of another array. The main result of the paper is an O(n^3logn) algorithm for detecting all ''side-sharing'' repetitions in an nxn array. This is optimal, based on bounds on the number of such repetitions established in previous work. With easy adaptations, these constructions lead to an equally optimal, O(n^4) algorithm for repetitions of the second type.