Which of the following option is correct?

Thành Nguyễn

New member
Which of the following option is correct?
A. NFA is slower to process and its representation uses more memory than DFA
B. DFA is faster to process and its representation uses less memory than NFA
C. NFA is slower to process and its representation uses less memory than DFA
D. DFA is slower to process and its representation uses less memory than NFA
 
Answer: C
Explanation: NFA, while computing strings, take parallel paths, make different copies of input and goes along different paths in order to search for the result. This creates the difference in processing speed of DFA and NFA.
 

Tìm kiếm

Back
Top