Variably Modified Permutation Composition: Difference between revisions

Content deleted Content added
corrected logic of swap operation
Miliwatt (talk | contribs)
m Simplified the psuedocode by removing the excessive 'a' variable.
 
Line 17:
i := 0
'''while''' GeneratingOutput:
aj := S[j + S[i]]
j := S[j + a]
'''output''' S[S[S[j]] + 1]