Machine-translated by Google. Questions are authored in English.
Top

Discussion

Match each representation with its principal cost.
List I
A. NFA simulation
B. DFA after subset construction
C. minimised DFA
D. regular expression
List II
1. fast scanning, smallest table
2. slower scanning, small construction cost
3. specification only, not directly executable
4. fast scanning, larger table

  • A.A-4, B-2, C-1, D-3
  • B.A-2, B-4, C-3, D-1
  • C.A-3, B-1, C-4, D-2
  • D.A-2, B-4, C-1, D-3

Answer: D

The progression trades construction effort for scanning speed and space. Scanner generators perform the whole chain once at build time so that scanning itself is as fast as possible. Construction time is paid once while scanning time is paid on every compilation.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.