Research Article
Secure and Efficient Image Retrieval over Encrypted Cloud Data
Algorithm 1
Building balanced binary tree.
Input: , ; Balanced Binary Clustering, i.e., | BBC. | Output: Balanced Binary Tree . | (1) //the height of node | (2) root node | (3) function | (4) two clusters , , | separating vector as the index | (5) if the size of 2 then | (6) internal node | (7) else | (8) leaf node | (9) end if | (10) if the size of 2 then | (11) internal node | (12) else | (13) leaf node | (14) end if | (15) | (16) return , , | (17) end function |
|