Example Program
Longest Increasing Subsequence
Longest increasing subsequence code example
File "graph_algo_lis.cpp"
A tutorial about the longest increasing subsequence algorithm.
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 |
Creation of a simple sequence of numbers
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 |
Out-parameter: A string of positions belonging to the longest increasing subsequence
| 12 | |
| 13 |
Longest increasing subsequence
| 14 |
Output the longest increasing subsequence
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 |
SeqAn - Sequence Analysis Library - www.seqan.de