Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Let L1 be a formal language using the binary digits 0 and 1 as its character set, such that a string is in L1

image text in transcribed

1. Let L1 be a formal language using the binary digits 0 and 1 as its character set, such that a string is in L1 if and only if it has 3 or more 1's in a row somewhere in it. A. (15 points) Draw a non-deterministic finite state automaton that recognizes L1. B. (15 points) Write a regular expression whose language is L1. 2. Let L3 be a formal language using the letters o, a, and y, such that a string is in L3 if and only if it has the string "yoya" somewhere within it. Note that yyyoyoyaaa is in L3, as are yyoya, yoyoya, and yoyaaya, but yoaya is not in L3 A. (15 points) Draw a nondeterminisic FSA that recognizes L3 B. (15 points) Write a regular expression whose language is L3. C. (5 points) Draw a Deterministic FSA that recognizes L3. 3. Describe in English the language of each of the following RE's: A. (15 points) a*b B. (15 points) (ab)* 4. (5 points) Draw a Deterministic FSA that accepts a string made up of the characters x and y if and only if it has at most two xs and has more xs than ys. E.g., your DFA should accept the strings "x" "wx" and "yxx" but not "y" or "Xy" or "Xyxyx". It may accept or not accept the empty string , whichever you prefer

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

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

Define language, and recognize its properties.

Answered: 1 week ago

Question

6. Identify characteristics of whiteness.

Answered: 1 week ago

Question

9. Explain the relationship between identity and communication.

Answered: 1 week ago