| 
November 2nd, 2009, 06:18 PM
| | Member | | Join Date: Sep 2009
Posts: 122
Thanks: 82
Thanked 0 Times in 0 Posts
| | increasing subsequence of maximal length? Quote:
22,5,7,2,23,10,15,21,3,17
a) What is the increasing subsequence of maximal length ?
b) what is the decreasing subsequence of maximal length?
| a) i got {5,7,10,15,21} therefore it's 5, but the answer is {7,10,15,21} so it's 4.
b) {22,10,3} therefore it's 3?
Please help me | 
November 2nd, 2009, 10:02 PM
| | Member | | Join Date: Sep 2009
Posts: 122
Thanks: 82
Thanked 0 Times in 0 Posts
| | please someone help me why the answer to a) is 4: {7,10,15,21}
thank you | 
November 2nd, 2009, 10:05 PM
| | MHF Contributor | | Join Date: Oct 2009
Posts: 1,164
Thanks: 52
Thanked 399 Times in 377 Posts
| | Quote:
Originally Posted by zpwnchen a) i got {5,7,10,15,21} therefore it's 5, but the answer is {7,10,15,21} so it's 4. You are right: it's 5.
b) {22,10,3} therefore it's 3? Yes, it looks fine. There are other descending subsequences of the same length: Tonio
Please help me | . | | The following users thank tonio for this useful post: | |  | 
November 2nd, 2009, 10:29 PM
| | Member | | Join Date: Sep 2009
Posts: 122
Thanks: 82
Thanked 0 Times in 0 Posts
| | That is prompt reply. Thank you so much! | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -7. The time now is 03:19 PM. | | |