Combinatorica`
Combinatorica`
LongestIncreasingSubsequence
LongestIncreasingSubsequence[p]
finds the longest increasing scattered subsequence of permutation p.
更多信息和选项
- To use LongestIncreasingSubsequence, you first need to load the Combinatorica Package using Needs["Combinatorica`"].