fool2fish / dragon-book-exercise-answers

Compilers Principles, Techniques, & Tools (purple dragon book) second edition exercise answers. 编译原理(紫龙书)第2版习题答案。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solution to Excercise 3.6.1 is wrong

sivaraam opened this issue · comments

In general a DFA cannot have epsilon transitions and moreover the transition diagram accepts strings that shouldn't be accepted. (e.g.) abbaababaabb

Further what c denotes in the algorithm is not stated clearly.

If every "not X" transition were instead marked with epsilon, the result would be a valid and correct NFA.