Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3: Finite Automata (6 Marks) Construct deterministic finite automata that decide the following languages: a. (2 marks) The language of all binary strings that

image text in transcribed

Question 3: Finite Automata (6 Marks) Construct deterministic finite automata that decide the following languages: a. (2 marks) The language of all binary strings that leave a remainder of 2 when divided by 4. Assume the standard binary encoding of integers. For example, the string 100100110 is in the language: It encodes the number 294. The strings 100100 and 11001 encode the numbers 36 and 25 and are not in the language. b. (2 marks) The language of all strings over the alphabet {a,b,c} that do not contain the substring abc. So, abacbabac is in the language; abacbabcaabac is not, because of the highlighted occurrence of the substring abc. C. (2 marks) The language of all binary strings with an odd number of Os or a number of 1s that is divisible by 3. The strings 011001110110, 011001101001, and 0110011010010 belong to the language: 011001110110 contains an odd number of Os, 011001101001 contains a number of 1s divisible by 3, and 0110011010010 satisfies both conditions. The string 01101001100 is not in the language because it contains an even number of Os and the number of 1s is not divisible by 3

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

11.7 Discuss competency-based pay.

Answered: 1 week ago