summaryrefslogtreecommitdiff
path: root/3860/CH9/EX9.1/Ex9_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3860/CH9/EX9.1/Ex9_1.sce')
-rw-r--r--3860/CH9/EX9.1/Ex9_1.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3860/CH9/EX9.1/Ex9_1.sce b/3860/CH9/EX9.1/Ex9_1.sce
new file mode 100644
index 000000000..5dbcc15d3
--- /dev/null
+++ b/3860/CH9/EX9.1/Ex9_1.sce
@@ -0,0 +1,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.
+
+