Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

LetS=x1y1+x2y2+...+xnxn, where x1,x2,...,xn and y1,y2,...,yn are orderings of two different sequences of positive real numbers, each containing n elements.

a) Show that S takes its maximum value overall orderings of the two sequences when both sequences are sorted (so that the elements in each sequence are in non-decreasing order).

b) Show that S takes its minimum value over all orderings of the two sequences when one sequence is sorted into non-decreasing order and the other is sorted into non-increasing order.

Short Answer

Expert verified

a) The sequence y should be in non-decreasing order to maximize the addition.

b) The sequence y should be in non-increasing order to minimize the addition.

Step by step solution

01

Introduction

Increasing sequence means when in the sequence the next term is greater than the previous one. Similarly, decreasing sequence means when in the sequence the next term is smaller than the previous one.

02

Proof using generality for both cases

LetS=x1y1+x2y2+...+xnxn, where x1,x2,...,xn,and y1,y2,...,yn are orderings of two different sequences of positive real values, each containing n elements.

Now explaining both the parts as follows:

a) Without the loss of generality, assume that the x sequence is already sorted into non-decreasing order, because we can re-label the indices.

There are only a finite number of possible orderings for the y sequence, so if we can show that increase the addition (or at least keep it the same) whenever we find yiand yjthat are out of order (that is i<j,but yi>yj) by switching them, then we will have shown that the addition is largest when the y sequence is in non-decreasing order.

Indeed, if perform the swap, then we have added xiyj+xjyito the addition and subtract xiyi+ xjyj.

The net effect is to have added

xiyj+ xjyi- xiyi -xjyj= (xj - xi) (yi -yj)

This is non-negative by ordering assumptions. Therefore, the sequence y should be in non-decreasing order to maximize the addition.

b) Without the loss of generality, assume that the x sequence is already sorted into non-decreasing order, because we can re-label the indices.

There are only a finite number of possible orderings for the y sequence, so if we can show that decrease the addition (or at least keep it the same) whenever we find yiand yj that are out of order (that is i < j,but yi<yj) by switching them, then we will have shown that the addition is smallest when the y sequence is in non-increasing order.

Indeed, if perform the swap, then we have added xiyj+ xjyi to the addition and subtracted xiyi+ xjyj.

The net effect is to have added

xiyj+ xjyi- xiyi -xjyj= (xj - xi) (yi -yj)

This is non-negative by ordering assumptions. Therefore, the sequence y should be in non-increasing order to minimize the addition.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Determine whether each of these conditional statements is true or false.

a) If1+1=3, then unicorns exist.
b) If1+1=3, then dogs can fly.
c) If1+1=2, then dogs can fly.
d) If 2+2=4, then 1+2=3.

For each of these sentences, state what the sentence means if the logical connective or is an inclusive or (that is, a disjunction) versus an exclusive or. Which of these meanings of or do you think is intended?

a) To take discrete mathematics, you must have taken calculus or a course in computer science.
b) When you buy a new car from Acme Motor Company, you get $ back in cash or a car loan.
c) Dinner for two includes two items from column A or three items from column B.
d) School is closed if more than feet of snow falls or if the wind chill is below

Let P(x),Q(x),R(x),andS(x) be the statements โ€œxis a duck,โ€ โ€œxis one of my poultry,โ€ โ€œxis an officer,โ€ and โ€œxis willing to waltz,โ€ respectively. Express each of these statements using quantifiers; logical connectives; andP(x),Q(x),R(x),andS(x).

(a) No ducks are willing to waltz.

(b) No officers ever decline to waltz.

(c) All my poultry are ducks.

(d) My poultry are not officers.

(e) Does (d) follow from (a), (b), and (c)? If not, is there a correct conclusion?

Suppose that during the most recent fiscal year, the annual revenue of Acme Computer was billion dollars and its net profit was billion dollars, the annual revenue of Nadir Software was billion dollars and its net profit was billion dollars, and the annual revenue of Quixote Media was billion dollars and its net profit was billion dollars. Determine the truth value of each of these propositions for the most recent fiscal year.

  1. Quixote Media had the largest annual revenue.
  2. Nadir Software had the lowest net profit and Acme Computer had the largest annual revenue.
  3. Acme Computer had the largest net profit or Quixote Media had the largest net profit.
  4. If Quixote Media had the smallest net profit, then Acme Computer had the largest annual revenue.
  5. Nadir Software had the smallest net profit if and only if Acme Computer had the largest annual revenue.

Express these system specifications using the propositions p "The user enters a valid password," q "Access is granted," and r "The user has paid the subscription fee" and logical connectives (including negations).
a) "The user has paid the subscription fee, but does not enter a valid password."
b) "Access is granted whenever the user has paid the subscription fee and enters a valid password."
c) "Access is denied if the user has not paid the subscription fee."
d) "If the user has not entered a valid password but has paid the subscription fee, then access is granted."

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free