in reply to Re: Regexp Speed Concerns
in thread Regexp Speed Concerns
if memory serves, regexp equivalence is not an easy questionYou are absolutely right. Very little is known about regexes. What little is known indicates that the problems are all very hard.
(is it in NP? someone can surely fill up on that)It is probably not in NP, but nobody knows for sure. Regex inequivalence ("Given two regexes, do they represent different languages?") is known to be PSPACE-complete. PSPACE-complete problems are at least has hard as NP-complete problems, but probably harder. If the regexes contain only the concatenation and | operators (no *'s), the problem is "only" NP-complete.
See (of course) Garey & Johnson Computers and Intractibility, p. 267.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regexp Speed Concerns
by Dominus (Parson) on Jan 13, 2001 at 07:09 UTC |