Longest Increasing Subsequence (LIS) in $O(N \log N)$
Longest Increasing Subsequence (LIS) in $O(N \log N)$
Previously we discussed solving the LIS problem using dynamic programming, which runs in . We arrived at the formula = the length of the longest increasing subsequence ending at (where is included in the sequence).
