Question: Compiler Construction RegExpr NFA 1. Convert the regular expression (xyz | (b | a)*)* to an NFA using the Thompson construction. You can either draw
Compiler Construction
RegExpr NFA
1. Convert the regular expression (xyz | (b | a)*)* to an NFA using the Thompson construction. You can either draw this and scan it or just give a table of the form:
| State | x | y | z | a | b |
| Si | Transitions from Si on x |
|
|
|
|
|
|
|
|
|
|
|
2. Suppose r and s are regular expressions for which the NFAs Mr and respectively Ms accept the language represented by the regular expressions, i.e., L(r) = L(Mr) and L(s) = L(Ms) then show and describe how an NFA could be constructed that will accept the language L(r) L(r). For simplicity you may assume that the NFAs were constructed with the Thompson construction.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
