View full-text article in PMC Sensors (Basel). 2024 Feb 29;24(5):1582. doi: 10.3390/s24051582 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 5 Similarity Score Calculation 1:function SimilarityScoreCalculation(Hashes H, Block b) 2: Let mismatchCount←0 3: for each hash h in H do 4: if h does not match any hash in block b then 5: mismatchCount←mismatchCount+1 6: end if 7: end for 8: return 1−mismatchCountsizeofH 9: end function