CS 2011: Practice Quiz 2 SOLUTION
Summer 2018
University of Minnesota
Quiz period: 15 minutes
Points available: 20
Problem 1 (10 pts): Show that for real numbers x, y x ≤ x+y
OR y ≤ x+y
. For full credit, include
2 2
one of the following in your proof.
• Clearly defined cases which are proved independently
• OR Proper use of the notion of “Without loss of generality”.
SOLUTION: Without loss of generality, assume that x ≤ y. This will lead to the first inequality, x ≤ x+y
2
holding while the reasoning would be identical with the opposite assumption.
Re-arranging the original inequality gives
x+
y
x≤ (1)
2
2x ≤ x + y (2)
x≤ y (3)
This last inequality is given as a fact in the assumption which we know to be true proving the case.
Alternatively, one might transform the fact x < y into the given equality.
Problem 2 (10 pts): Show that following equivalence involving sets A, B holds.
A−B=A∩B
You may use any method to do show the equivalence so long as you reasoning is explained.
SOLUTION: Below is a series of transformations in set builder notation the equivalence.
A − B = {x|x ∈ A ∧ x /∈ Def. of set difference (4)
B}
= {x|x ∈ A ∧ x ∈ B} Def. of set complement (5)
= {x|x ∈ (A ∩ B)} Def. of set intersection (6)
=A∩B Simplification (7)
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller YourAssignmentHandlers01. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $14.99. You're not tied to anything after your purchase.