When comparing the sentence, "P Q R" (letters represent words) against "A B C D", you need to test the powerset of the short against the longer. Eg.
That gives 4*3 + 4*2 + 4*2 = 28 (not 4*3=12).
In reply to Re^3: LCS efficiency problem
by BrowserUk
in thread LCS efficiency problem
by zhe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |