Zaks' prefix reversal algorithm ( All permutations)
Jump to navigation
Jump to search
Time Complexity
$O(n)$ on specific permutations
Space Complexity
$O(n)$ auxiliary (see NEXT algorithm in same paper) words
(https://link.springer.com/content/pdf/10.1007/BF01937486.pdf)
Description
Approximate?
Exact
Randomized?
No, deterministic
Model of Computation
Word RAM
Year
1984