|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Visual walkthrough for LIS and LNDS variants. More...
Go to the source code of this file.
Functions | |
| int | main () |
| Demonstrates usage of Aleph-w LIS/LNDS utilities by running several example scenarios and printing their inputs and results. | |
Visual walkthrough for LIS and LNDS variants.
Definition in file lis_example.cc.
| int main | ( | ) |
Demonstrates usage of Aleph-w LIS/LNDS utilities by running several example scenarios and printing their inputs and results.
Runs five scenarios: classic LIS, already sorted, reverse sorted, longest non-decreasing subsequence, and decreasing subsequences via a custom comparator. Each scenario prints the input sequence, one computed subsequence, and its length using Aleph-w helpers.
Definition at line 101 of file lis_example.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::lis_length(), Aleph::longest_increasing_subsequence(), Aleph::longest_nondecreasing_subsequence(), print_array(), and Aleph::print_rule().