Skip to main content
. 2022 Apr 26;22(9):3323. doi: 10.3390/s22093323
Algorithm 4. Pseudo-code for identification operation
input: T with the bit-collision cases and their actions in each internal node
output: the identified tag IDs

1. K← Tπ; Q←∅

2. while K≠ empty do
3.   n ← pop the top node of K
4.    if (n is not leaf node) then
5.    broadcast concatenated Sn except if n= Tπ then broadcast “INITIALIZATION”
6.    b ← tags’ response
7.    switch b
8.      no signal: no tag                      //idle slot//
9.      no “X”: identify tag ID=b                //readable slot//
10.     having “X”:                           //collision slot//
11.       find (d, Yn,i, a) in Actn where Yn,i=b  //find a matched entry//
12.       while finding any new entry
13.        switch a
14.          “READ”: identify d
15.          “ABSENCE”: d disappears
16.          “COPUING”: insert d into Q
17.          “SPLIT”: push nr and nl into K; break while
18.        end switch                     //switch a//
19.       end while
20.    end switch                              //switch b//
21. end while