Please solve the problem number one using figure 2.1

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please solve the problem number one using figure 2.1

EXERCISES
1. Which of the strings 0001, 01101, 00001101 are accepted by the dfa in
Figure 2.1?
Transcribed Image Text:EXERCISES 1. Which of the strings 0001, 01101, 00001101 are accepted by the dfa in Figure 2.1?
the initial vertex, while those labeled with qf E F are the final vertices.
It is a trivial matter to convert from the (Q, Σ, 6, qo, F) definition of a dfa
to its transition graph representation and vice versa.
EXAMPLE 2.1
The graph in Figure 2.1 represents the dfa
where & is given by
0
M = ({90, 91, 92}, {0, 1}, 8, 90, {91}),
90
This dfa accepts the string 01. Starting in state go, the symbol 0 is read
first. Looking at the edges of the graph, we see that the automaton
remains in state 90. Next, the 1 is read and the automaton goes into
state 91. We are now at the end of the string and, at the same time,
in a final state 9₁. Therefore, the string 01 is accepted. The dfa does
not accept the string 00, since after reading two consecutive O's, it will
be in state go. By similar reasoning, we see that the automaton will
accept the strings 101, 0111, and 11001, but not 100 or 1100.
FIGURE 2.1
8 (90,0) = 90,
8 (91,0) = 90,
8 (92,0) = 92,
0
1
8 (90, 1) = 91,
8 (91,1) = 92,
8 (92, 1) = 91.
91
1
1
92
Transcribed Image Text:the initial vertex, while those labeled with qf E F are the final vertices. It is a trivial matter to convert from the (Q, Σ, 6, qo, F) definition of a dfa to its transition graph representation and vice versa. EXAMPLE 2.1 The graph in Figure 2.1 represents the dfa where & is given by 0 M = ({90, 91, 92}, {0, 1}, 8, 90, {91}), 90 This dfa accepts the string 01. Starting in state go, the symbol 0 is read first. Looking at the edges of the graph, we see that the automaton remains in state 90. Next, the 1 is read and the automaton goes into state 91. We are now at the end of the string and, at the same time, in a final state 9₁. Therefore, the string 01 is accepted. The dfa does not accept the string 00, since after reading two consecutive O's, it will be in state go. By similar reasoning, we see that the automaton will accept the strings 101, 0111, and 11001, but not 100 or 1100. FIGURE 2.1 8 (90,0) = 90, 8 (91,0) = 90, 8 (92,0) = 92, 0 1 8 (90, 1) = 91, 8 (91,1) = 92, 8 (92, 1) = 91. 91 1 1 92
Expert Solution
Step 1

Introduction

DFA:

The deterministic finite automata (DFA) is just a mathematical concept used to identify trends in a stream of input characters. It has a start state, a set of accepted states, a transition mechanism, a collection of states, a collection of input symbols, and a set of states. The DFA receives an input symbol at each step and changes states in accordance with the transition function. The input is accepted if the end phase is an accepting state; else, it is rejected. DFAs are often employed in natural language processing, pattern recognition, and compiler design.

To find:

Strings accepted by DFA.

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
LUP Decomposition
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education