The weight of a sequence of real numbers is defined as . A subsequence of a sequence is obtained by deleting some elements from the sequence, keeping the order of the remaining elements the same. Let denote the maximum possible weight of a subsequence of and the maximum possible weight of a subsequence of . Then is equal to
View worked solution
Answer: B
To find the relation between and , we can analyze the structure of the optimal subsequence of .
Let be any subsequence of with elements . By definition, the weight of is:
The maximum possible weight of such a subsequence is .
Now, let be a subsequence of the entire sequence . There are two mutually exclusive and exhaustive cases for :
- Case 1: is not included in .
In this case, is entirely a subsequence of .
The maximum possible weight of in this case is simply . - Case 2: is included in .
Since is the first element of the original sequence, it must be the first element of . Thus, can be written as followed by some subsequence of .
The weight of is: To maximize , we must maximize , which yields .
Therefore, the maximum possible weight of in this case is .
Since the overall maximum weight must be the maximum over these two cases, we get:
Thus, the correct option is B.
Free practice · Your answers on this page are not saved.
