a) Exercise 1(a). The state transition sequence is: 80 + 81 → 82 → 81 → 82 → $1 Our output is: 01010 b) Exercise 1(b). The state transition sequence is: 80 + 81 → S0 + 80 → 80 - $1 Our output is: 01000

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

Please do in C

a) Exercise 1(a).
13.2 pg. 864 #9
The state transition sequence is:
so → s1 → 82 → s1 → s2 → S1
Construct a finite-state machine that delays an input string two bits, giving 00 as the first two bits
of output.
Our output is: 01010
b) Exercise 1(b).
0,0
The state transition sequence is:
so → S1 → so → so → so → S1
0,1
start
So
S2
Our output is: 01000
1,1
Lecture Notes 25 Exercise
1,0
0,1
Construct a finite-state machine with output that produces a1 if and only if the last 3 input bits
0,0
read are Os.
1,0
0,1
S1
S3
State
Input
1
81, 0 8o, 0
82, 0 8o, 0
8o, 0
1,0
1,0
0,0
0,0
So
start
So
S1
S2
1,1
S1
S2
S2, 1
so corresponds to the last two bits having been 00, s1 corresponds to the last two bits having been
01, s2 corresponds to the last two bits having been 10, s3 corresponds to the last two bits having
1,0
been 11.
2
Transcribed Image Text:a) Exercise 1(a). 13.2 pg. 864 #9 The state transition sequence is: so → s1 → 82 → s1 → s2 → S1 Construct a finite-state machine that delays an input string two bits, giving 00 as the first two bits of output. Our output is: 01010 b) Exercise 1(b). 0,0 The state transition sequence is: so → S1 → so → so → so → S1 0,1 start So S2 Our output is: 01000 1,1 Lecture Notes 25 Exercise 1,0 0,1 Construct a finite-state machine with output that produces a1 if and only if the last 3 input bits 0,0 read are Os. 1,0 0,1 S1 S3 State Input 1 81, 0 8o, 0 82, 0 8o, 0 8o, 0 1,0 1,0 0,0 0,0 So start So S1 S2 1,1 S1 S2 S2, 1 so corresponds to the last two bits having been 00, s1 corresponds to the last two bits having been 01, s2 corresponds to the last two bits having been 10, s3 corresponds to the last two bits having 1,0 been 11. 2
Draw the state diagrams for the finite-state machines with these state tables.
а )
State
Input
1,1
1
1,0
1,1
S1, 0 | 8o, 1
So, 0
So
0,0
start
So
S1
S2
S1
S2, 1
S2
S1, 0
S1, 0
0,0
0,0
b)
State
Input
1,0
1
1,1
1,0
1,f
So
S1, 0
So, 0
0,0
S1
0,1
S1
S2, 1| 8o, 1
start
So
S2
S3
So, 0
S1, 1
S2
S3, 1
S3
S2, 0
0,0
0,1
13.2 pg. 863 # 3
Find the output generated from the input string 01110 for the finite-state machine with the state
table in
a) Exercise 1(a).
The state transition sequence is:
Transcribed Image Text:Draw the state diagrams for the finite-state machines with these state tables. а ) State Input 1,1 1 1,0 1,1 S1, 0 | 8o, 1 So, 0 So 0,0 start So S1 S2 S1 S2, 1 S2 S1, 0 S1, 0 0,0 0,0 b) State Input 1,0 1 1,1 1,0 1,f So S1, 0 So, 0 0,0 S1 0,1 S1 S2, 1| 8o, 1 start So S2 S3 So, 0 S1, 1 S2 S3, 1 S3 S2, 0 0,0 0,1 13.2 pg. 863 # 3 Find the output generated from the input string 01110 for the finite-state machine with the state table in a) Exercise 1(a). The state transition sequence is:
Expert Solution
steps

Step by step

Solved in 2 steps with 2 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