summaryrefslogtreecommitdiff
path: root/3542/CH9/EX9.6
diff options
context:
space:
mode:
Diffstat (limited to '3542/CH9/EX9.6')
-rw-r--r--3542/CH9/EX9.6/9_6.jpgbin0 -> 53922 bytes
-rw-r--r--3542/CH9/EX9.6/Ex9_6.sce20
2 files changed, 20 insertions, 0 deletions
diff --git a/3542/CH9/EX9.6/9_6.jpg b/3542/CH9/EX9.6/9_6.jpg
new file mode 100644
index 000000000..74470d005
--- /dev/null
+++ b/3542/CH9/EX9.6/9_6.jpg
Binary files differ
diff --git a/3542/CH9/EX9.6/Ex9_6.sce b/3542/CH9/EX9.6/Ex9_6.sce
new file mode 100644
index 000000000..856823f85
--- /dev/null
+++ b/3542/CH9/EX9.6/Ex9_6.sce
@@ -0,0 +1,20 @@
+// Example no 9.6
+// To determine the maximum throughput using ALOHA and slotted ALOHA
+// Page no. 466
+
+clc;
+clear all;
+
+//The maximum throughput using ALOHA
+Rmax=1/2; //Maximum rate of arrival calculated by equating ALOHA throughput formula derivative to zero
+T=Rmax*exp(-1); //The maximum throughput using ALOHA
+
+// Displaying the result in command window
+printf('\n The maximum throughput using ALOHA = %0.4f',T);
+
+//The maximum throughput using slotted ALOHA
+Rmax=1; //Maximum rate of arrival calculated by equating slotted ALOHA throughput formula derivative to zero
+T=Rmax*exp(-1); //The maximum throughput using slotted ALOHA
+
+// Displaying the result in command window
+printf('\n The maximum throughput using slotted ALOHA = %0.4f',T);