Create a small deterministic finite automaton (DFA) for each of the following languages over the alphabet S = {a, b}, unless otherwise specified. Write all your solutions with plain English descriptions of how each automaton works. In addition to the finite state diagram and the English descriptions, also paste a snapshot of the multiple-inputs output, using some well-chosen input strings. For example, see Figure 1 below. Problems / Languages. Note: Try to come up with the correct DFA with the least number of states. [1] L = { x : x is a string over S, and x has a triple-’a’ substring anywhere in the string }, e.g., “abbaabaaab” [2] L = { x : x is a string over S, and x contains at least one double-‘a’ but no triple-’a’ substring }, e.g.,“abbabaab” [3] L = { x : x is a string over S’, and x has an even number of a’s, an odd number of b’s, and any number of c’s, all shuffled in random order }, where S’ = {a, b, c}. For example we should accept “caabbabcca”. Note: Zero is even, so the number of a’s can be zero.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Create a small deterministic finite automaton (DFA) for each of the following
languages over the alphabet S = {a, b}, unless otherwise specified. Write all your solutions with plain English descriptions of how each automaton works. In addition to the finite state diagram and the English descriptions, also paste a snapshot of the multiple-inputs output, using some well-chosen input strings. For example, see Figure 1 below.

 

Problems / Languages.
Note: Try to come up with the correct DFA with the least number of states.

[1] L = { x : x is a string over S, and x has a triple-’a’ substring anywhere in the string }, e.g., “abbaabaaab”

[2] L = { x : x is a string over S, and x contains at least one double-‘a’ but no triple-’a’ substring }, e.g.,“abbabaab”

[3] L = { x : x is a string over S’, and x has an even number of a’s, an odd number of b’s, and any number of c’s, all shuffled in random order }, where S’ = {a, b, c}. For example we should accept “caabbabcca”. Note: Zero is even, so the number of a’s can be zero.

[4] L = { x : x is a string over S’, and x is any bitstring which when evaluated as a binary number is divisible by 4 but not by 8 }, where S’ = {0, 1}. For example we should accept “01100” since it is equivalent to 12 in decimal and 12 is divisible by 4 but not by 8. Note: Leading zeroes are allowed.

[5] L = { x : x is a string over S’, and x is an even number written in the ternary (base 3) system }, where S’ = {0, 1, 2}. Note: Counting in the ternary system proceeds as follows: 0, 1, 2, 10, 11, 12, 20, 21, 22, 100, 101, 102, ... The even numbers are shown in bold. Note: Leading zeroes are allowed, e.g., “00101” is accepted.

AFLAP: ui FLAP: <untitledt
Fle input Te Inpet Test View Convert Help
Editor Mul dtor Multiple Run
Input
b
Ассept
Ассept
Аcсept
a
a
b
Аcсept
Ассept
Reject
aa
bbab
abc
qo
Because there is only one state (which is also a final state), and because of the
two self-loops labeled 'a' and 'b', it accepts all strings over E = {a,b).
Fig. 1. Sample output containing the finite state diagram, some sample runs, and a short English description.
Transcribed Image Text:AFLAP: ui FLAP: <untitledt Fle input Te Inpet Test View Convert Help Editor Mul dtor Multiple Run Input b Ассept Ассept Аcсept a a b Аcсept Ассept Reject aa bbab abc qo Because there is only one state (which is also a final state), and because of the two self-loops labeled 'a' and 'b', it accepts all strings over E = {a,b). Fig. 1. Sample output containing the finite state diagram, some sample runs, and a short English description.
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY