3 ms·
Too late to edit my comment, but for correctness' sake: the algorithm as described is exponential in k (and thus n), not r and t.
by dvdkhlng 10y ago
Too late to edit my comment, but for correctness' sake: the algorithm as described is exponential in k (and thus n), not r and t.