, , n O (n 2-ε) , , .:
https://arxiv.org/abs/1412.0348
, O (n 2-ε) .
, O (n 2) . O (n 2/log (n)) .
, ? , # P-complete counting. , , , , # P-:
S. , . . . . . ACM-SIAM (SODA), . 551-557, 1995
, , , . , , , . , ( , , ..).
So, if you want to calculate the number of different subsequences of two sequences, then most likely your current algorithm is incorrect, and any algorithm cannot calculate it in polynomial time if P = NP (or more ...).
source
share