On the number of elements to reorder when updating a suffix array

  • Authors:
  • M. Léonard;L. Mouchard;M. Salson

  • Affiliations:
  • Université de Rouen, Department of Computer Science LITIS EA 4108, 76821 Mont Saint Aignan, France;Université de Rouen, Department of Computer Science LITIS EA 4108, 76821 Mont Saint Aignan, France and Kings College London, Department of Informatics, Algorithm Design Group, Strand, London ...;LIFL (UMR 8022 CNRS - Université Lille 1), INRIA Lille-Nord Europe, France

  • Venue:
  • Journal of Discrete Algorithms
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Recently new algorithms appeared for updating the Burrows-Wheeler Transform or the suffix array, when the text they index is modified. These algorithms proceed by reordering entries and the number of such reordered entries may be as high as the length of the text. However, in practice, these algorithms are faster for updating the Burrows-Wheeler Transform or the suffix array than the fastest reconstruction algorithms. In this article we focus on the number of elements to be reordered for real-life texts. We show that this number is related to LCP values and that, on average, L"a"v"e entries are reordered, where L"a"v"e denotes the average LCP value, defined as the average length of the longest common prefix between two consecutive sorted suffixes. Since we know little about the LCP distribution for real-life texts, we conduct experiments on a corpus that consists of DNA sequences and natural language texts. The results show that apart from texts containing large repetitions, the average LCP value is close to the one expected on a random text.