Path: news.mathworks.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!news.mathforum.org!not-for-mail
From: fani vafeiadou <fani_vafeiadou@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Really need help..
Date: Thu, 05 Feb 2009 17:10:10 EST
Organization: The Math Forum
Lines: 17
Message-ID: <3676195.1233871866511.JavaMail.jakarta@nitrogen.mathforum.org>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1233871866 30609 144.118.30.135 (5 Feb 2009 22:11:06 GMT)
X-Complaints-To: news@news.mathforum.org
NNTP-Posting-Date: Thu, 5 Feb 2009 22:11:06 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:516474

hello everyone! im new to MAtlab and facing several problems..
i have the following task:
we should write a program, which computes the longest increasing subsequence in a given sequence, e.g.
Initial sequence is:
     6     1     7     4     9     5     8     3    10     2

Answer is:
     1     4     5     8    10
  or 

Initial sequence is:
     8     9     2    10     3     7     4     1     5     6

All the possible longest increasing subsequences are:
     2     3     4     5     6

could anyone help?