Skip to main content
. 2019 Sep 17;21(9):905. doi: 10.3390/e21090905
Algorithm 4 NACK generation at receiver j
  • 1:

    Initialize Bj as a m×m zero matrix

  • 2:

    if linear combination l is received at the receiver then

  • 3:

     Find D1 which is the set of packets corresponding to the pivot columns of Bj

  • 4:

     Update the row of Bj corresponding to the next unseen packet of receiver j with the coefficient vector corresponding to l

  • 5:

     Perform Gauss–Jordan elimination

  • 6:

     Find D2 which is the set of packets corresponding to the main diagonal pivot columns (these are the pivot columns for which the pivot elements are in the main diagonal of a matrix) of updated Bj

  • 7:

     if D2=D1 then

  • 8:

      Send NACK

  • 9:

      Make all elements of the last updated row of Bj zero

  • 10:

     end if

  • 11:

    else

  • 12:

     Send NACK

  • 13:

    end if