This is a comprehensive study guide for MATH/CS 011 at the University of California, Riverside based on the class taught by Professor "Joe" for Winter 2023. Includes definitions and all major topics covered by the course, as well as practice questions and answers from the final exam.
MATH/CS 011: Study Guide
UCR’s Math/CS 011 - Introduction to Discrete Structures
Professor Kejia Zhu (Joe) [Winter 2024 Final Exam: Study Guide]
1. Logic and Propositions
1.1 Logic Analysis
⚔️ Knights & Knaves
Problem: On an island, you encounter two inhabitants, A and B.
MATH/CS 011: Study Guide 1
, A says, "B is a Knave."
B says, "A is a Knight."
Solution:
1. If A were a Knight, then A's statement "B is a Knave" would be true. This
implies that B cannot tell the truth. Given that B's statement is "A is a Knight,"
which in this case would be true, it creates a contradiction if B were indeed a
Knave, as Knaves cannot tell the truth.
2. If A were a Knave, then A's statement "B is a Knave" would be a lie, meaning B
must be a Knight. Since B claims that "A is a Knight," and if B were a Knight
(hence, always telling the truth), this would again create a contradiction
because we assumed A is a Knave.
To solve this paradox, analyze the logic more carefully:
If A's statement about B being a Knave were true, then A would be a Knight
(since Knights tell the truth). However, for B to say "A is a Knight" would also
be true, which cannot happen if B were a Knave, as Knaves cannot tell the
truth (a contradiction).
The only scenario that does not result in a logical contradiction is if A is a
Knave making a false statement about B, and B is a Knight, correctly
identifying A's status.
Therefore, the correct conclusion is that A is a Knave and B is a Knight , as this is
the only configuration that does not result in a contradiction.
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 jasminehanna. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.99. You're not tied to anything after your purchase.