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.ezproxy.canberra.edu.au/content/pdf/10.1007/BF01937486.pdf)
Description
Approximate?
Exact
Randomized?
No, deterministic
Model of Computation
Word RAM
Year
1984
Reference
https://link-springer-com.ezproxy.canberra.edu.au/article/10.1007/BF01937486