in reply to Re^3: Longest Increasing Subset
in thread Longest Increasing Subset
I'm suspicious that this problem is of the order O(2**N).
I suspect it is more like O(N!).
I also suspect that whilst inspecting the longest possible combinations for monotonicity, then in order of decreasing length so that you can short-circuit the full search space, sounds like an optimisation; in reality it will end up inspecting many more possibilities than a brute-force forward search with short-circuiting of the inner iterations.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Longest Increasing Subset
by Dallaylaen (Chaplain) on Oct 24, 2016 at 08:49 UTC | |
by BrowserUk (Patriarch) on Oct 24, 2016 at 09:30 UTC | |
by pryrt (Abbot) on Oct 24, 2016 at 14:49 UTC | |
by BrowserUk (Patriarch) on Oct 24, 2016 at 16:06 UTC |