Research Article

Secure and Efficient Semantic Extension Search over Encrypted Documents by Integrating Cloud and Fog Systems

Algorithm 2

Array Merge Algorithm.
Input Keyword related files’ identifiers
, Keyword related files’ identifiers
OutputThe files’ identifiers after merging
(1)for; the length of ; do
(2)for; the length of ; do
(3)  ifthen
(4)  break;
(5)else if = the length of then
(6) Insert to the end of ;
(7)end if
(8)end if
(9)end for
(10)end for
(11)
(12)return