Skip to main content
. 2022 Apr 26;22(9):3323. doi: 10.3390/s22093323
Algorithm 2. Pseudo-code for bit-collision cases
input: T
output: T with the bit-collision cases in each internal node

1.  compute IDn in each node n ∈ T
2.  GTπ

3.  function Gn
4.    if nl ≠ leaf node then Gnl end if
5.    if nr ≠ leaf node then Gnr end if
6.    if |IDn| ≤ δ then
7.     Zn← all combinations of n 
8.     for (i=1; i ≤ |Zn|, i++) do
9.      Yn,i= bit response of all tag IDs in Zn,i //the collided bit is marked as “X”//
10.         save a new case (Zn,i, Yn,i) into Casen
11.     end for
12.    end if
13. end function