in reply to Re (tilly) 5: Research ideas
in thread Research ideas
You propose to turn a regular expresion into a ordered set of states, one for each character position (or possibly no character as well?). This is so that you can go through each atom of each set once (that is, no backtracking, which is the bane of an NFA). This seems (-seems- to someone who has never written an NFA or a DFA before) very similar to a DFA, except that a DFA would not have the order preference that your ordered sets would have, they would just have sets.
The consequence to that difference is that with a DFA you can go through each set in parallel, but with the proposed NFA change, you would still have to recurse backwards and forwards. This is -similar- to backtracking, but seems better, because you are going through a finite number of (ordered) sets, and not a possibly geometrically expanding number of states.
I may have muddled the nomenculture a bit, sorry :)
Ciao,
Gryn
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 1: Donuts and DFA's
by tilly (Archbishop) on Feb 20, 2001 at 23:26 UTC | |
by gryng (Hermit) on Feb 21, 2001 at 00:28 UTC | |
by tilly (Archbishop) on Feb 21, 2001 at 00:45 UTC |