|
Algorithm 3 DWS Algorithm (The Queue Update Module) |
-
1:
Initialize as zero matrices
-
2:
if SQ is empty then
-
3:
Do nothing
-
4:
else
-
5:
Call Coding Module (DWS), get linear combination l and transmit it
-
6:
end if
-
7:
ACK generation at receivers
-
8:
for to n
do
-
9:
if ACK is received from receiver j
then
-
10:
Update the row of corresponding to the next unseen packet of receiver j with the coefficient vector corresponding to l
-
11:
Perform Gauss–Jordan elimination of
-
12:
end if
-
13:
Find which is the set of packets corresponding to the pivot columns of
-
14:
end for
-
15:
Find
-
16:
for to n
do
-
17:
Change all elements of the pivot column and pivot row of corresponding to the packet in D to zero
-
18:
end for
-
19:
Drop the packet in D from SQ
|