100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSCI-2041: Advanced Programming Principles 2024 – 2025 CSCI-2041 Summer Final Exam Quiz 2 Review Questions with Verified Solutions | 100% Pass Guaranteed | Graded A+ | $14.99   Add to cart

Exam (elaborations)

CSCI-2041: Advanced Programming Principles 2024 – 2025 CSCI-2041 Summer Final Exam Quiz 2 Review Questions with Verified Solutions | 100% Pass Guaranteed | Graded A+ |

 2 views  0 purchase

CSCI-2041: Advanced Programming Principles 2024 – 2025 CSCI-2041 Summer Exam Quiz 2 Review Questions with Verified Solutions | 100% Pass Guaranteed | Graded A+ |

Preview 2 out of 5  pages

  • October 19, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
All documents for this subject (11)
avatar-seller
YourAssignmentHandlers01
CSCI-2041: Advanced Programming Principles 2024 –
2025 CSCI-2041 Summer Exam Quiz 2 Review Questions
with Verified Solutions | 100% Pass Guaranteed | Graded
A+ |




Administrator
[COMPANY NAME] [Company address]

, Name: ID#: X500: @umn.edu A


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

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

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

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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80630 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$14.99
  • (0)
  Add to cart