Research Article

Privacy-Preserving Sorting Algorithms Based on Logistic Map for Clouds

Algorithm 2

PQS-LM(, start, end).
Begin
(1) IF  start < end  THEN
(2) = start, = end +1;
(3)WHILE TRUE DO
(4)WHILE    DO
(5)++;
(6)END WHILE
(7)WHILE    DO
(8)--;
(9)END WHILE
(10)IF    THEN
(11);
(12)ELSE
(13)Finish the current loop and start the next loop;
(14)END IF
(15)END WHILE
(16);
(17)PQS-LM(, start, j-1);
(18)PQS-LM(, , end);
(19) END IF
END