saadtaame / patience-sort-lis

An O(n lg n) algorithm for the longest increasing subsequence problem.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

patience-sort-lis

An O(n lg n) algorithm for the longest increasing subsequence problem. This algorithm is based on patience sorting. The algorithm reads n, the length of the sequence, then it reads n space separated values. The output is then written on the screen. The programs then prompts the user for another value of n and so on.

About

An O(n lg n) algorithm for the longest increasing subsequence problem.


Languages

Language:C++ 100.0%