CISC 102 Lecture Notes - Lecture 7: Red Guitars, Complex Instruction Set Computing

79 views3 pages
Verified Note

Document Summary

Ginger owns a music store where all instruments are either red or a guitar (if not red). There are 15 red instruments and 18 guitars. A venn diagram can be used to model ginger"s inventory. From the diagram, it is clear that we need to know how many of ginger"s guitars are red in order to determine the total num of instruments. Let r denote the set of red instruments and g the set of guitars. |r| = 15, |g| = 18, |r g| = 8. |r g| = |r| + |g| - |r g| = 15 + 18 - 8 = 25. The principle of inclusion and exclusion can be stated as: Theorem: suppose a and b are finite sets. |a b| = |a| + |b| - |a b| The above generalizes the principle to a formula useful for determining the cardinality (or num of elements) of the union of three sets.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents