Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q2. Select the regular expression based on your roll number, (4) take modules of your roll number (4) by 10 and select the relevant option.

Q2. Select the regular expression based on your roll number, (4) take modules of your roll number (4) by 10 and select the relevant option.

1. ([a-zA-Z]+ ( |\t)+ [a-zA-Z])+

2. (_|__)*(a|b)?ab

3. 0?(.)+(0|1)

4. ab+b(1|0)?

5. (--|++) (0)?.(0-9)

6. a*b(1|0)?

7. (_|@)?(a|b)b

8. *?(x|y)\+*

9. (0-9)+\(0-9)+\(0-9)+

10. [a-zA-Z]+(_)*(0-9)+

Write down your selected regular expression and the calculation you did.

a-Draw the corresponding NFA (Non-Deterministic Finite Automata) diagram using the Thompson construction method. Show all steps for full credit.

b-Transform the given -NFA to DFA (Deterministic Finite Automata), using Subset construction. Show all steps for full credit.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle PL/SQL Programming Database Management Systems

Authors: Steven Feuerstein

1st Edition

978-1565921429

More Books

Students also viewed these Databases questions

Question

A 300N F 30% d 2 m Answered: 1 week ago

Answered: 1 week ago