blob: e628b5f871063a3247d6a50c452f1c64a3e4afc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//Example 9.6: Reduction of state table
clc // Clears the console
disp("Given State Table")
disp("q | x=00 x=01 x=10 x=11 | z")
disp('--|--------------------------------|-----')
disp("A | B A F D | 1")
disp("B | E A D C | 1")
disp("C | A F D C | 0")
disp("D | A A B C | 1")
disp("E | B A C B | 1")
disp("F | A F B C | 0")
disp('States A-E , B-D and C-F are equivalent')
disp("q | x=00 x=01 x=10 x=11 | z")
disp('--|--------------------------------|-----')
disp("A | B A C B | 1")
disp("B | A A B C | 1")
disp("C | A C B C | 0")
//displays the reduced state table.
|