What is the most efficient wildcard string matching algorithm? I am asking only about an idea, it is not necessary to provide actual code.
I'm thinking that such algorithm can be built with sorted suffix arrays, which can yield performance of O(log(n)).
Am I correct?
Edited:
I mean patterns like "A*B"
, "*sip*"
or "A?B"
where star means any number of symbols and question mark means single symbol.