From 45f82eed2f3d719318965e6df305224c25d6c8b4 Mon Sep 17 00:00:00 2001
From: rupumped <rupumped@users.noreply.github.com>
Date: Fri, 3 Nov 2017 16:05:45 -0400
Subject: [PATCH] finished markdown algorithm?

---
 testmd.md | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/testmd.md b/testmd.md
index 8d497c3..bd049fe 100644
--- a/testmd.md
+++ b/testmd.md
@@ -22,8 +22,31 @@ elseif packet is ack:
 		else:
 			send packet to all ports as ack flood
 elseif packet is standard flood:
-	
+	if LUT does not already have source address:
+		add entry to LUT
+	if I am destination:
+		process data in packet
+	else:
+		if I have seen this packet before:
+			return
+		increment hop count
+		if LUT has destination address:
+			send packet to port which minimizes C(hops, buffer) = hops + \lambda*buffer over all ports
+		else:
+			send packet to all ports
 elseif packet is ack flood
-
+	if LUT does not already have source address:
+		add entry to LUT
+	if I am destination:
+		process acknowledgement
+	else:
+		if I have seen this packet before:
+			return
+		increment hop count
+		if LUT has destination address:
+			send packet to port which minimizes C(hops, buffer) = hops + \lambda*buffer over all ports
+		else:
+			send packet to all ports
 else:
+	write buffer depth to LUT
 ```
-- 
GitLab