Which of the following cannot be used to decide whether and how a given regexp matches a string:

Which of the following cannot be used to decide whether and how a given regexp matches a string:
A. NFA to DFA
B. Lazy DFA algorithm
C. Backtracking
D. None of the mentioned
 
Answer: D
Explanation: There are at least three algorithms which decides for us, whether and how a regexp matches a string which included the transformation of Non deterministic automaton to deterministic finite automaton, The lazy DFA algorithm where one simulates the NFA directly, building each DFA on demand and then discarding it at the next step and the process of backtracking whose running time is exponential.
 

Tìm kiếm

Back
Top