I feel stuck at this point. I have spent several days trying to get my head around the algorithm, but both resources I have   seems to skip over whatever details that would make me comfortable trying to explain/implement it. I'm going to hope that someone here knows Farachs suffix tree algorithm, but I'll link to the paper below.
I get the individual mechanisms of the algorithm, but I don't understand how to put it all together. By starting at the first step:
(1) Creating the odd tree requires sorting every character pair of the string, but the example used, namely
g = 121112212221 yields the "sorted" list
l = (1,2),(1,1),(1,2),(2,1),(2,2),(2,1), and then taking the ranks of
g' = 2,1,2,3,4,3. I can't see how
l is sorted, or why it would help to sort it.
(2) Farach mentions that the suffix tree for
g' needs to be computed recursively. Is this the only step of the algorithm that needs recursion?