About the algorithm

22 views
Skip to first unread message

Peng Wu

unread,
May 23, 2012, 10:33:30 PM5/23/12
to ack-...@googlegroups.com
This is Jack.
I am wondering what is the exact pattern matching algorithm behind ack-grep???
I know that grep using BM for single pattern matching and Aho-crasick for multi-pattern matching. So how about ack-grep?
Cheers.

Andy Lester

unread,
May 23, 2012, 10:35:24 PM5/23/12
to ack-...@googlegroups.com

On May 23, 2012, at 9:33 PM, Peng Wu wrote:

I am wondering what is the exact pattern matching algorithm behind ack-grep???
I know that grep using BM for single pattern matching and Aho-crasick for multi-pattern matching. So how about ack-grep?

Ack is written in Perl.  Whatever Perl does, that's what ack does.  I don't know the Perl internals.

xoa


Reply all
Reply to author
Forward
0 new messages