Write: g: s to stand for all elements of the set of segmentations of a string s.
M(s) is the maximum probability of a segmentation of string s.
Can implement this directly to get a correct but exponential-time algorithm. Need to reuse results instead of recomputing over and over.
Recurrence: T(1) = 1, .