Skip to main content
. 2020 Apr 29;20(9):2513. doi: 10.3390/s20092513
Algorithm 11 removeDuplicateEntries.
   Input: Z^      Output: Z^
  • 1:

    forg1 to |P^is|×|P^js| do

  • 2:

      l^g=1

  • 3:

    end for

  • 4:

    forh1 to |P^is| do

  • 5:

      for g1 to |P^js| do

  • 6:

        flag=0

  • 7:

        For c1 to |P^is|×|P^js| do

  • 8:

          if l^c=Z^(h,g)l^c1 then //column value is not unique

  • 9:

            Z^(h,g)=1

  • 10:

            flag=1

  • 11:

          end if

  • 12:

        end for

  • 13:

        if flag=0 then // column value is unique

  • 14:

          l^g=Z^(h,g)

  • 15:

        end if

  • 16:

      end for

  • 17:

    end for