NR-grep: a fast and flexible pattern-matching tool

Navarro G.

Abstract

We present nrgrep ('non-deterministic reverse grep'), a new pattern-matching tool designed for efficient search of complex patterns. Unlike previous tools of the grep family, such as agrep and Gnu grep, nrgrep is based on a single and uniform concept: the hit-parallel simulation of a non-deterministic suffix automaton. As a result, nrgrep can find from simple patterns to regular expressions, exactly or allowing errors in the matches, with an efficiency that degrades smoothly as the complexity of the searched pattern increases. Another concept that is fully integrated into nrgrep and that contributes to this smoothness is the selection of adequate subpatterns for fast scanning, which is also absent in many current tools. We show that the efficiency of nrgrep is similar to that of the fastest existing string-matching tools for the simplest patterns, and is by far unmatched for more complex patterns. Copyright © 2001 John Wiley & Sons, Ltd.

Más información

Título según WOS: NR-grep: a fast and flexible pattern-matching tool
Título según SCOPUS: NR-grep: A fast and flexible pattern-matching tool
Título de la Revista: SOFTWARE-PRACTICE & EXPERIENCE
Volumen: 31
Número: 13
Editorial: Wiley
Fecha de publicación: 2001
Página de inicio: 1265
Página final: 1312
Idioma: English
URL: http://doi.wiley.com/10.1002/spe.411
DOI:

10.1002/spe.411

Notas: ISI, SCOPUS