summaryrefslogtreecommitdiff
path: root/48/CH12/EX12.12/eg_12_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '48/CH12/EX12.12/eg_12_12.sce')
-rwxr-xr-x48/CH12/EX12.12/eg_12_12.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/48/CH12/EX12.12/eg_12_12.sce b/48/CH12/EX12.12/eg_12_12.sce
new file mode 100755
index 000000000..f2082d374
--- /dev/null
+++ b/48/CH12/EX12.12/eg_12_12.sce
@@ -0,0 +1,21 @@
+clc;
+clear;
+//1 is equivalent to A ad 2 to B and so on.
+p1=['A' 'D']; //pairs in partition t(1 and 4 represents that 1st and 4th state are in the same block);
+p2=['C' 'E'];
+
+q1=['A' 'E']; //pairs in partition t^
+q2=['B' 'D'];
+q3=['C' 'F'];
+
+disp("the following are the partitions of the machine M8");
+disp("T");
+disp('F',p2(2),p2(1),'B',p1);
+disp("T^");
+disp(q3,q2,q1);
+disp("------");
+disp("T");
+disp('F',p2,'B',p1);
+disp("T^");
+disp(q3,[q1 q2]);
+disp("------"); \ No newline at end of file