Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Discrete Mathematics, Set Theory and Logic
Reply
 
Thread Tools Display Modes
  #1  
Old November 2nd, 2009, 06:18 PM
Member
 
Join Date: Sep 2009
Posts: 122
Thanks: 82
Thanked 0 Times in 0 Posts
zpwnchen is on a distinguished road
Default 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
Reply With Quote
Advertisement
 
  #2  
Old November 2nd, 2009, 10:02 PM
Member
 
Join Date: Sep 2009
Posts: 122
Thanks: 82
Thanked 0 Times in 0 Posts
zpwnchen is on a distinguished road
Default

please someone help me why the answer to a) is 4: {7,10,15,21}

thank you
Reply With Quote
  #3  
Old November 2nd, 2009, 10:05 PM
MHF Contributor
 
Join Date: Oct 2009
Posts: 1,164
Thanks: 52
Thanked 399 Times in 377 Posts
tonio is just really nicetonio is just really nicetonio is just really nicetonio is just really nicetonio is just really nice
Default

Quote:
Originally Posted by zpwnchen View Post
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: \{23,15,3\}\,,\,\,\{23,10,3\}\,,\,\,etc.

Tonio


Please help me
.
Reply With Quote
The following users thank tonio for this useful post:
Donate to MHF
  #4  
Old November 2nd, 2009, 10:29 PM
Member
 
Join Date: Sep 2009
Posts: 122
Thanks: 82
Thanked 0 Times in 0 Posts
zpwnchen is on a distinguished road
Default

That is prompt reply. Thank you so much!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 03:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.