To find it, can I find the minimal suffix bbaaccaadd, which is aaccaadd and add the end 2 "bb" at the end?
This would not always result in the correct minimum rotation. Take for example S = baa. Then the minimum suffix a, but the minimum rotation aab, not ab.
However, we can show that
min_rotation(S) = min_suffix(S + S + '∞')
where '∞' is a character larger than each character in S.
Are these two problems identical?
, , . , min-suffix min-rotation . , , , . , S, . , Booth min-rotation .