It selects the best-suited algorithm for the current query from a bunch of the known fastest (built-in) string searching algorithms.
Agrep is also the search engine in the indexer program GLIMPSE. It is free for private and non-commercial use only, and belongs to the University of Arizona.