The Island of Knights and Knaves. Knights always tell the truth.

Slides:



Advertisements
Similar presentations
Techniques for Solving Logic Puzzles. Logic Puzzles Logic puzzles operate using deductive logic. Logic puzzles operate using deductive logic. A well-designed.
Advertisements

AE1APS Algorithmic Problem Solving John Drake. The island of Knights and Knaves is a fictional island to test peoples ability to reason logically. There.
Introduction to Proofs
Copyright © Peter Cappello Propositional Logic. Copyright © Peter Cappello Sentence Restrictions Building more precise tools from less precise tools Precise.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Solving Word Problems II
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Discrete Mathematics Reporter: Anton Kuznietsov, Kharkiv Karazin National University, Ukraine In Problems.
Copyright © Cengage Learning. All rights reserved.
(CSC 102) Discrete Structures Lecture 14.
Some Puzzles About Truth (and belief, knowledge, opinion, and lying)
The Island of Knights and Knaves. Raymond Smullyan 1978 A little learning is a dangerous thing; Drink deep, or taste not the Pierian spring: There shallow.
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross Set 4 By Herb I. Gross and Richard A. Medeiros next.
Discrete Mathematics Lecture 1 Logic of Compound Statements Harper Langston New York University.
CSRU 1100 Logic. Logic is concerned with determining: Is it True? Is it False?
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
Logic In Part 2 Modules 1 through 5, our topic is symbolic logic. We will be studying the basic elements and forms that provide the structural foundations.
Discrete Mathematics and its Applications
Algebra Problems… Solutions
Adapted from Discrete Math
Logical Puzzles Truth and Lies. The Island of Rilas On the island of Rilas there are just two types of people: knights and knaves Knights always tell.
Bell Work: Given the sets L = {0, 1, 2, 3}, M = {5, 6, 7}, and N = {0, 1}, are the following statements true or false? (a) 6 L (b) 0 N.
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
MATH 213 A – Discrete Mathematics for Computer Science Dr. (Mr.) Bancroft.
AP Examination Alert The APCS Examination includes a variety of Boolean Logic questions. Many questions require indirect knowledge of Boolean Logic, and.
Lecture 5 Knights and Knaves.. Administration Show hand in form. Show plagiarism form. Any problems with coursework? Google knight and knaves and look.
Chapter 1: The Foundations: Logic and Proofs
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
Copyright © Curt Hill Using Propositional Logic Several applications.
Applications of Propositional Logic
MATH 224 – Discrete Mathematics
1 10/13/2015 MATH 224 – Discrete Mathematics Why Study Discrete Math  Determination of the efficiency of algorithms, e.g., insertion sort versus selection.
CS1Q Computer Systems Lecture 6 Simon Gay. Lecture 6CS1Q Computer Systems - Simon Gay2 Algebraic Notation Writing AND, OR, NOT etc. is long-winded and.
F22H1 Logic and Proof Week 6 Reasoning. How can we show that this is a tautology (section 11.2): The hard way: “logical calculation” The “easy” way: “reasoning”
Chapter 1 Logic Section 1-1 Statements Open your book to page 1 and read the section titled “To the Student” Now turn to page 3 where we will read the.
Scientific Method What is It? Why is it Important? How do I use it?
CS 2210 (22C:019) Discrete Structures Introduction and Scope: Propositions Spring 2015 Sukumar Ghosh.
Hilbert’s Progamme Early in C20, the mathematician Hilbert led a programme to formalise maths; to reduce it to a clear set of axioms and show that all.
Testing Validity With Venn Diagrams
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
PROCESS OF ELIMINATION INDUCTIVE REASONING. DISCLAIMER Logic is a very complex field of study. Our goal in this unit is just to starting thinking about.
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross Set 10 By Herbert I. Gross and Richard A. Medeiros next.
MATH 224 – Discrete Mathematics
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
Thinking Mathematically Arguments and Truth Tables.
2.1 Sets 2.2 Set Operations –Set Operations –Venn Diagrams –Set Identities –Union and Intersection of Indexed Collections 2.3 Functions 2.4 Sequences and.
CSE Winter 2008 Introduction to Program Verification January 15 tautology checking.
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
CS2013 Mathematics for Computing Science Adam Wyner University of Aberdeen Computing Science Slides adapted from Michael P. Frank ' s course based on the.
What is Reasoning  Logical reasoning is the process of drawing conclusions from premises using rules of inference.  These inference rules are results.
Algebra 1 Ch 7.5 – Special Linear Systems. Objective  I can identify linear systems with one solution, no solution or many solutions.  I can model/show.
Dr. Naveed Riaz Design and Analysis of Algorithms 1 1 Formal Methods in Software Engineering Lecture # 25.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
René Descartes Brandon Lee Block D.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
CS 270 Lecture 1 In Class Problems. Q1: Logic Puzzle You arrive at the end of a long hallway. There are two knights guarding two doors. One knight always.
Propositional Equivalences
DISCRETE MATHEMATICS CHAPTER I.
Niu Kun Discrete Mathematics Chapter 1 The Foundations: Logic and Proof, Sets, and Functions Niu Kun 离散数学.
Liar liar.
Applications of Propositional Logic
CS 220: Discrete Structures and their Applications
A Brief Summary for Exam 1
Associativity of Equivalence
Foundations of Discrete Mathematics
Knights and Knaves.
Let Q be the question Let A be “the native is a knight”
Discrete Structures Prepositional Logic 2
Logical and Rule-Based Reasoning Part I
Presentation transcript:

The Island of Knights and Knaves

Knights always tell the truth

Knaves ALWAYS Lie!!!

R e y n a & L e Boolean Algebra

This algebra is based on “how to define whether something is true or false”, using symbols and algebraic rules. Abbreviations for certain elements are used, an example of this algebra will be shown, with a problem of Knights and Knaves which will be compared to the math’s results. Boolean Algebra

Boolean algebra is a set with two binary operations: U (union) and N (intersection). It can also be expressed as a logic version using ^ and v. Ex: Set version A U (B N C)= (A U B) N (A U C) Logic version A v (B ^ C) (A v B) ^ (B v C)

John says: We are both knaves. Who is who? Hmmm…. What do you think? Logically do you believe John is telling the truth or not?

Ok! Now that you have in mind who you think is a knight or a knave, Bill being the other person who hasn’t spoken yet, let me tell you a little bit about Boolean Algebra and how it applies to Knights and Knaves. We can use Boolean Algebra to deduce who is who, by using factorization and F.O.I.L.

Let J be true if John is a knight and let B be true if Bill is a knight. Now, either John is a knight and what he said was true, or John is not a knight and what he said was false. Translating that into Boolean algebra, we get: [J ^ (J' ^B')] v [J' ^ (J' ^ B') ' ] = tautology

Simplification Process [J^(J’^B’)] v [J’^(J’^B’)’] False v [J’^(J’^B’)’]; contradiction because J^J’ says that J is a knight and knave The ’ outside makes the sign flip over and the other two ’ are eliminated and it becomes 0 ^ [J ^ B’] v [J’^(J v B)]; By F.O.I.L. 0 v [(J’ ^J) v (J’ ^ B)] Since (J’ ^ J) is a contradiction the answer is (J’ ^ B) Therefore J is a knave and B (who is not mentioned in the problem) is a knight.

Since we’re in the mood…. There’s a fork in the road. One way is to Truths Ville (on the right) and the other one is to Liars Ville (on the left). I want to get to Truths Ville. People from Truths Ville always tells the truth and people from Liars Ville always lie. There is no sign at the fork. I encounter a person (Tom) at the fork and ask him where is Truths Ville? He points to the right. A guy (Eddie) walks out from the right and he said “no Truths Ville is that way”, pointing to the left. Tom says: “ we are both knights.” Who is the knight?

Let’s see what we get! Let’s assume Tom is a knave: [T ^ E] This means: [T ^ (T ^ E)] v [ T ’ ^ (T v E)’] [T ^ E] v [(T ’ ^ (T ’ v E ’)] [T ^ E] v [( T’ ^ (T ‘ v E’)] T ^ E v [( T ’ ^ T ’) v (T ’ ^ E ’)] (T ^ E) v [(T ’ v (T ’ ^ E ’)] (T ^ E) v [(T ’ v T ’ 6 (T ’ v E ’)] Since (T’^ T) is a contradiction that would imply that (T’^ E) is the correct answer. This would mean that Tom is a knave and Eddie is a knight, so the right way to Truths Ville would be the path on the left.

We’re not done yet!!! Boolean Algebra is not that simple, and it takes time to actually let it soak in. The first thing we must do when coming across a certain problem, is organize all the possible conclusions and from there extend our problem and eliminate all false conclusions, and things that contradict each other.

Sources Used: Internet, web pages such as: l We also received help from Shirley and Anusha. If you are interested in this very complicated but interesting mathematical procedure visit these web pages, and they will be of much help to you.

This project was elaborated by Le Van and Reyna Florentino. With help from SEARCH staff. This topic became interesting to us because of the fact that we did not know that with algebra you can find out something that is intended to be found out by logic. There are many other things that Boolean Algebra is utilized with, such as scientific experiments, and physiological situations. I hope that with our brief presentation we were able to clarify the process of discovering, or revealing “who is who?” Thank You July 21, :00 pm