Booth's algorithm for string rotation

I was trying to understand, Lexicographically minimal string rotation - Wikipedia.
Can someone explain the algorithm or suggest some good source for the same.

Thanks in advance…