blob: 5dbcc15d3b46cd3b8c1193ec487a1ff2c36ff5ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//Example 9.1: Reduction of state table
clc // Clears the console
disp("Given State Table")
disp("q | x=0 x=1 | x=0 x=1")
disp('-----------------------------------------')
disp("A | C B | 0 0")
disp("B | D D | 0 0")
disp("C | A D | 0 1")
disp("D | A C | 0 1")
disp('State C and D are equivalent. So, reduced state table is as given below.')
disp("q | x=0 x=1 | x=0 x=1")
disp('----------------------------------------------')
disp(" A | C-D B | 0 0")
disp(" B | C-D C-D | 0 0")
disp("C-D | A C-D | 0 1")
//displays the reduced state table.
|