Research Article
Tree-Based Public Key Encryption with Conjunctive Keyword Search
Algorithm 2
Converting a query into a “0-1” vector.
| Input: a query and a group of keyword sets . | | Output: a “0-1” vector for the query. | | (1) | Creates a zero vector whose length is . | | (2) | fordo | | (3) | fordo | | (4) | ifthen | | (5) | ; | | (6) | end if | | (7) | end for | | (8) | end for | | (9) | = ; | | (10) | return; |
|