Question: 1 . 1 1 Exercises Exercise 1 . 1 Given the regular expression ( b | ) , ( a ) Using the derivation rules

1.11 Exercises
Exercise 1.1 Given the regular expression (b|),
(a) Using the derivation rules in Fig. 1.1, show that L(s) contains the string ac.
(b) Find the complete set L(s).
1.1 Regular Expressions
3
\table[[Regexp,Derivation rules,Informal description],[a,,\table[[The one-letter string a. No derivation rule,],[as it is already a string.]]],[,\table[[s|t|=>s,,The empty string.],[s|t|=>t,,]],\table[[Either s or t. Note that this allows multiple],[different derivations.]]],[st,st=>s't', if s=>s' and t=>t',\table[[Something derived from s followed by some-],[thing derived from t.]]],[s**,s**=>s(s**),\table[[A concatenation of any number (including 0)],[of strings derived from s. The number de-],[pends on how many times the second rule is],[used.]]]]
Fig. 1.1 Regular expressions and their derivation
 1.11 Exercises Exercise 1.1 Given the regular expression (b|), (a) Using

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!