Skip to main content
. 2024 Feb 29;24(5):1582. doi: 10.3390/s24051582
Algorithm 5 Similarity Score Calculation
  • 1:

    function SimilarityScoreCalculation(Hashes H, Block b)

  • 2:

        Let mismatchCount0

  • 3:

        for each hash h in H do

  • 4:

            if h does not match any hash in block b then

  • 5:

               mismatchCountmismatchCount+1

  • 6:

            end if

  • 7:

        end for

  • 8:

        return 1mismatchCountsizeofH

  • 9:

    end function