Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Puzzle: Longest Increasing Sequence

by ivancho (Hermit)
on Apr 16, 2006 at 18:54 UTC ( #543681=note: print w/replies, xml ) Need Help??


in reply to Re: Puzzle: Longest Increasing Sequence
in thread Puzzle: Longest Increasing Sequence

that's exponential, unfortunately. Try it on a sorted array, and you'll end up going through all possible subsequences.

Update: not to mention that you'll run out of memory on a list longer than 20 elements..

  • Comment on Re^2: Puzzle: Longest Increasing Sequence

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://543681]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2016-12-05 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (94 votes). Check out past polls.