Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE PROVIDE REGULAR EXPRESSION FOR ANSWERS E TO H.THANKS (60 pt., 7.5 pt. each) Construct a regular expression in JFLAP (version 7.1) that generates each

image text in transcribed

PLEASE PROVIDE REGULAR EXPRESSION FOR ANSWERS E TO H.THANKS

(60 pt., 7.5 pt. each) Construct a regular expression in JFLAP (version 7.1) that generates each of the following languages. For each language, you must submit one JFLAP file clearly labeled (e.g., 1a.jff). Make sure that you test your regular expressions in JFLAP before submitting. Note that JFLAP uses the symbol + for union (instead of or U ) and the symbol ! for the empty string (instead of ). For more details about how to write regular expressions in JFLAP, see JFLAP Tutorial 02 posted on Blackboard under JFLAP Resources. a. {w{a,b} the length of w is at most 4} b. {w{a,b}w does not end with the substring ab} c. {w{a,b}w contains at most two a's or at least two b 's } d. {w{a,b}w contains exactly three a's or an even number of b 's } e. {w{0,1}w does not contain any consecutive 0 's and does not contain any consecutive 1 's } f. {w{0,1}w starts with a 1 and contains an odd number of 0 's } g. {w{0,1} every substring 00 in w is followed by at least one 1} h. {w{0,1} every odd position of w is a 0} (60 pt., 7.5 pt. each) Construct a regular expression in JFLAP (version 7.1) that generates each of the following languages. For each language, you must submit one JFLAP file clearly labeled (e.g., 1a.jff). Make sure that you test your regular expressions in JFLAP before submitting. Note that JFLAP uses the symbol + for union (instead of or U ) and the symbol ! for the empty string (instead of ). For more details about how to write regular expressions in JFLAP, see JFLAP Tutorial 02 posted on Blackboard under JFLAP Resources. a. {w{a,b} the length of w is at most 4} b. {w{a,b}w does not end with the substring ab} c. {w{a,b}w contains at most two a's or at least two b 's } d. {w{a,b}w contains exactly three a's or an even number of b 's } e. {w{0,1}w does not contain any consecutive 0 's and does not contain any consecutive 1 's } f. {w{0,1}w starts with a 1 and contains an odd number of 0 's } g. {w{0,1} every substring 00 in w is followed by at least one 1} h. {w{0,1} every odd position of w is a 0}

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

More Books

Students also viewed these Databases questions