LCIS

来源:互联网 发布:桑德拉布洛克 知乎 编辑:程序博客网 时间:2024/04/29 18:36
A longest common increasing subsequence of A and B is a common increasing subsequence of the maximum length. A straightforward O(mn2)-time algorithm for this problem is to sort the shorter sequence, and then find a longest common subsequence among the two sequences and the sorted sequence.
原创粉丝点击