Research Article

LEA: An Algorithm to Estimate the Level of Location Exposure in Infrastructure-Based Wireless Networks

Algorithm 1

TREE-INSERT-UPDATE.
(1) TREE-NODE()
(2) if root NIL then
(3)  root Node()
(4) else
(5)   TREE-INSERT-UPDATE(root, )
(6) end if
(7) TREE-INSERT-UPDATE (, )
(8)  if   key[] then
(9)   if left[] NIL then
(10)   left[] Node()
(11)  else
(12)  TREE-INSERT-UPDATE(left[], )
(13)  end if
(14) else if   key[] then
(15)  if right[] = NIL then
(16)  right[] Node()
(17)  else
(18)   TREE-INSERT-UPDATE(right[], )
(19)  end if
(20) else
(21)  Color()
(22) end if