Forbidden patterns

  • Authors:
  • Johannes Fischer;Travis Gagie;Tsvi Kopelowitz;Moshe Lewenstein;Veli Mäkinen;Leena Salmela;Niko Välimäki

  • Affiliations:
  • KIT, Karlsruhe, Germany;Aalto University, Espoo, Finland;Weizmann Institute of Science, Rehovot, Israel;Bar-Ilan University, Ramat Gan, Israel;University of Helsinki, Helsinki, Finland;University of Helsinki, Helsinki, Finland;University of Helsinki, Helsinki, Finland

  • Venue:
  • LATIN'12 Proceedings of the 10th Latin American international conference on Theoretical Informatics
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

We consider the problem of indexing a collection of documents (a.k.a. strings) of total length n such that the following kind of queries are supported: given two patterns P+ and P−, list all nmatch documents containing P+but notP−. This is a natural extension of the classic problem of document listing as considered by Muthukrishnan [SODA'02], where only the positive pattern P+ is given. Our main solution is an index of size O(n3/2) bits that supports queries in O(|P+|+|P-|+nmatch√n time.