LAMC Intermediate I & II November 9, Oleg Gleizer. The following is the list of the important Boolean algebra properties we have learned.

Similar documents
LAMC Intermediate I & II November 2, Oleg Gleizer. Warm-up

LAMC Junior Circle May 6, Oleg Gleizer. Puzzles and Logic

MAT2345 Discrete Math

Definition 2. Conjunction of p and q

Explorers 5 Teacher s notes for the Comprehension Test: Aladdin

{ }. The dots mean they continue in that pattern.

Polynomials; Add/Subtract

Solving Equations by Adding and Subtracting

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

{ }. The dots mean they continue in that pattern to both

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Set Theory Basics of Set Theory. 6.2 Properties of Sets and Element Argument. 6.3 Algebraic Proofs 6.4 Boolean Algebras.

Solving Quadratic & Higher Degree Equations

LAMC Intermediate I & II October 26, Oleg Gleizer. Warm-up

1-2 Study Guide and Intervention

PENGUIN READERS. Five Famous Fairy Tales

Introduction to Quantum Logic. Chris Heunen

( )( b + c) = ab + ac, but it can also be ( )( a) = ba + ca. Let s use the distributive property on a couple of

Practice assignment 2

Solving Quadratic & Higher Degree Equations

Automated Solution of the Riddle of Dracula and Other Puzzles

LAMC Intermediate I & II October 12, Oleg Gleizer. Warm-up

CHAPTER 12 Boolean Algebra

CHAPTER 1 LINEAR EQUATIONS

Logic and Propositional Calculus

Solving Quadratic & Higher Degree Equations

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST

SYMBOLIC LOGIC (PART ONE) LAMC INTERMEDIATE - 5/18/14

LAMC Junior Circle January 29, Olga Radko and Oleg Gleizer. A digit and a number. Place-value numerals. Properties of numbers.

Today s Lecture. ICS 6B Boolean Algebra & Logic. Predicates. Chapter 1: Section 1.3. Propositions. For Example. Socrates is Mortal

LAMC Beginners Circle January 12, Oleg Gleizer. Warm-up

There was once a miller who was poor, but he had

ARITHMETIC MEAN. What is arithmetic mean? (1) What is the average of the following two numbers: 3 and 5. 8 and and 3. 1 and 1.

1 Propositional Logic

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

The Happy Prince. Why aren t you like the Happy Prince? mothers said to their little boys when they cried.

Logic and Propositional Calculus

INDICADOR DE DESEMPEÑO Identifica puntos a favor y en contra, a través de un texto argumentativo, sobre temas con los que está familiarizado.

Trick or Treat UNIT 19 FICTION. #3893 Nonfiction & Fiction Paired Texts 100 Teacher Created Resources

Propositional Logic. Spring Propositional Logic Spring / 32

Ghost Elementary By Jesse Long ago there was a school called Shelledy Elementary. No one knew that they had a ghost school called Ghost Elementary.

ANNEX 1. What fairy tale is this character from? Unscramble their names from the box and read the clues to come up with it. utdcte

Volume 1. The Princess Who Never Laughed The Fairy Shoemaker, Miss Molly Squeak Sleeping Beauty, The Tinderbox

ST NICHOLAS COLLEGE HALF YEARLY PRIMARY EXAMINATIONS. February YEAR 6 ENGLISH TIME: 50 mins (English Reading Comprehension)

Math Fundamentals for Statistics I (Math 52) Unit 7: Connections (Graphs, Equations and Inequalities)

Lectures in Discrete Mathematics Math 1165 Professors Stanislav Molchanov and Harold Reiter

VECTORS IN THE CARTESIAN PLANE WARM-UP

Introduction to Sets and Logic (MATH 1190)

Lesson Plan Summary Magic Tree House #30: Haunted Castle on Hallows Eve

GRADE 7 MATH LEARNING GUIDE. Lesson 26: Solving Linear Equations and Inequalities in One Variable Using

Grade 7/8 Math Circles. Mathematical Thinking

Old Testament. Part One. Created for use with young, unchurched learners Adaptable for all ages including adults

Proof strategies, or, a manual of logical style

Precision and Structure as Tools to Build Understanding in Algebra. Rich Rehberger Math Instructor Gallatin College Montana State University

CSE 20 DISCRETE MATH WINTER

Section 2.5 Linear Inequalities

INTERMEDIATE 1 The Maths Pathway

Examples. Example (1) Example (2) Let x, y be two variables, and denote statements p : x = 0 and q : y = 1. Solve. x 2 + (y 1) 2 = 0.

Mathematical Olympiad for Girls

Read the text and then answer the questions.

irst we need to know that there are many ways to indicate multiplication; for example the product of 5 and 7 can be written in a variety of ways:

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

LAMC Beginners Circle October 6, Oleg Gleizer. A problem solving session. Problem 1 Put the right sign, >, <, or =, between the fractions.

1 Introduction. 2 Solving Linear Equations. Charlotte Teacher Institute, Modular Arithmetic

Conceptual Explanations: Simultaneous Equations Distance, rate, and time

1.2 The Role of Variables

CSE 20 DISCRETE MATH WINTER

Truth Table Definitions of Logical Connectives

A statement is a sentence that is definitely either true or false but not both.

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

ECE 238L Boolean Algebra - Part I

DISCRETE MATH: LECTURE 6

Lesson 14. Classwork. Exercise 1. Consider the inequality 4 5.

3.4 Set Operations Given a set A, the complement (in the Universal set U) A c is the set of all elements of U that are not in A. So A c = {x x / A}.

Logic and Proofs. Jan COT3100: Applications of Discrete Structures Jan 2007

HFCC Math Lab Intermediate Algebra 18 SOLVING RADICAL EQUATIONS

Propositional Logic: Methods of Proof (Part II)

Lesson 14: Solving Inequalities

LECSS Physics 11 Introduction to Physics and Math Methods 1 Revised 8 September 2013 Don Bloomfield

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

1.1 Numbers & Number Operations

Explorers 4 Teacher s notes for the Comprehension Test: The Snow Queen

Boolean Algebra and Digital Logic

UNIT 6: ALGEBRA AND EQUATIONS

1 Modular Arithmetic Grade Level/Prerequisites: Time: Materials: Preparation: Objectives: Navajo Nation Math Circle Connection

Vectors for Zero Robotics students

Numbers. The aim of this lesson is to enable you to: describe and use the number system. use positive and negative numbers

Ancient Egypt The Legend of the Pharaoh s Curse

Mat 243 Exam 1 Review

Rumpelstiltskin. re-arranged by Maria Felberbauer. Picture Acknowledgement:

Mathematics Practice Test 2

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

For all For every For each For any There exists at least one There exists There is Some

Topic 1: Propositional logic

Chapter 4, Logic using Propositional Calculus Handout

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

Session 7: Pseudoproofs and Puzzles - Handout

Propositional logic ( ): Review from Mat 1348

6. The angle can be written equivalently as which of the following in the radian system?

CHAPTER 6. Copyright Cengage Learning. All rights reserved.

Transcription:

LAMC Intermediate I & II November 9, 2014 Oleg Gleizer prof1140g@math.ucla.edu The following is the list of the important Boolean algebra properties we have learned. Addition is commutative. Multiplication is commutative. Addition is associative. Multiplication is associative. A + B = B + A (1) A B = B A (2) (A + B) + C = A + (B + C) (3) (A B) C = A (B C) (4) Multiplication is distributive with respect to addition. A (B + C) = (A B) + (A C) (5) If the above formulas look familiar to nearly every middle school student, then most of the below are Boolean algebra specific. 1

Addition is distributive with respect to multiplication. A + (B C) = (A + B) (A + C) (6) A + 0 = A and A + 1 = 1 (7) } A + A + {{... + A } = A (8) n times A 0 = 0 and A 1 = A (9) } A A {{... A } = A (10) n times A = A (11) The principle of the excluded middle a.k.a. the law of the excluded third: either A or A must be true. A and A cannot be true simultaneously. A + A = 1 (12) A A = 0 (13) Boolean algebra addition and multiplication are dual with respect to negation. The following two formulas showing it are known as De Morgan s laws. (A 1 + A 2 +... + A n ) = A 1 A 2... A n (14) (A 1 A 2... A n ) = A 1 + A 2 +... + A n (15) 2

The following two identities are known as the laws of absorption. A + AB = A (16) A (A + B) = A (17) Recall that to simplify a Boolean algebra expression means to find an equivalent expression that contains no negations of composite statements and uses as few variables as possible. Problem 1 Simplify the following expressions. (AB + C D) + B + C = A + A( (B C + BD)) = X + XY + XY Z + X Y Z + XY Z = 3

Problem 19 from the 11/2 handout The year is 3014. Four kids got to the final tour of GMC8 (Galactic Math Olympiad for 8th graders), Nathan, Michelle, Laura, and Reinhardt. Some knowledgeable LAMC fans discussed their chances to win. One student thought that Nathan would take the first place and Michelle would take the second. Another student thought that Laura would take the silver while Reinhardt would end up the last of the four. The third student thought that Nathan would be second and Reinhardt third. When the results of the competition came out, it turned out that each of the LAMC students had made only one of the two predictions correct. Please find the places Nathan, Michelle, Laura, and Reinhardt got at GMC8-3014. Solution The following are the simple statements made above. N 1 = Nathan takes the first place. M 2 = Michelle takes the second place. L 2 = Laura takes the second place. R 4 = Reinhardt takes the fourth place. N 2 = Nathan takes the second place. R 3 = Reinhardt takes the third place. Let us use the simple statements above to translate the story into the Boolean algebra language. The first fan made a composite 4

statement N 1 M 2 that turned out to be false. N 1 M 2 = 0 The fact that a half of the guess is true means that either N 1 M 2 = 1 and N 1 M 2 = 0 or that N 1 M 2 = 0 and N 1 M 2 = 1. This can be expressed by means of a single formula. N 1 M 2 + N 1 M 2 = 1 (18) A similar translation of the other two fans predictions into the Boolean algebra language gives us the following. L 2 R 4 + L 2 R 4 = 1 (19) N 2 R 3 + N 2 R 3 = 1 (20) Multiplying 18, 19, and 20 brings together all the information we have about the competition. (N 1 M 2 + N 1 M 2 )(L 2 R 4 + L 2 R 4 )(N 2 R 3 + N 2 R 3 ) = 1 (21) Let us first find the product of the second and third factors. (L 2 R 4 + L 2 R 4 )(N 2 R 3 + N 2 R 3 ) = 1 Opening parentheses gives the following. L 2 R 4 N 2 R 3 +L 2 R 4 N 2 R 3 + L 2 R 4 N 2 R 3 + L 2 R 4 N 2 R 3 = 1 Since Laura and Nathan cannot take the second place simultaneously, L 2 R 4 N 2 R 3 = 0. Since Reinhardt cannot take the third and fourth place at the same time, L 2 R 4 N 2 R 3 = 0. The above sum shortens to just two terms. L 2 R 4 N 2 R 3 + L 2 R 4 N 2 R 3 = 1 5

This way, 21 boils down to the following. (N 1 M 2 + N 1 M 2 )(L 2 R 4 N 2 R 3 + L 2 R 4 N 2 R 3 ) = 1 Let us expand. N 1 M 2 L 2 R 4 N 2 R 3 + N 1 M 2 L 2 R 4 N 2 R 3 + N 1 M 2 L 2 R 4 N 2 R 3 + N 1 M 2 L 2 R 4 N 2 R 3 = 1 Since N 1 N 2 = 0, the second term is equal to zero. Since M 2 L 2 = 0, the third term is equal to zero as well. Since M 2 N 2 = 0, the same is true for the last term. We end up with the equation N 1 M 2 L 2 R 4 N 2 R 3 = 1 that tells us the results of the competition. Nathan takes the first place, Laura the second, Reinhardt the third. Therefore, Michelle takes the fourth place. There are no contradictions: Michelle is not second, Reinhardt is not fourth, and Nathan is not second. We have solved the problem! The following is Problem 20 from the previous handout. It is not hard to solve without using the algebra of logic. However, we will use the problem to test the power of Boolean algebra. Problem 2 Before the beginning of a school year, teachers get together to form a schedule. The math teacher wants to have her class either first or second. The history teacher wants to have his class either first or third. The English teacher wants to have her class either second or third. Please use Boolean algebra to help the teachers form the schedule. How many different possibilities do they have? Please use the space at the top of the next page to work on this problem. 6

The LAMC old-timers have seen the following logical problems before. Now it s time to solve them again, with the help of Boolean algebra! To do so, give a name (assign a variable) to every simple statement in a problem. Then translate all the available information into some Boolean algebra formulas using the operations +,, and. If possible, try to boil everything down to one formula. Simplify the formula and see if the simplified version makes the solution obvious. Once upon a time in a land far far away, there lived a king who invented the following way of punishing criminals. Convicted lawbreakers were given a choice between two doors. Behind each door, there could be either a hungry tiger or a treasure of gold, but not nothing or both. The king would also post some warnings on the doors and then let the criminals choose. Problem 3 The king took the prisoner to the doors. There was a sign on each door. The first read, There is gold in this room and there is a tiger in the other. The sign on the second door read, There is gold in one of these rooms and in one of these rooms there is a tiger. Are the signs true? asked the pris- 7

oner. One of them is, replied the king, but the other is not. Now, make your choice, buddy! Which door should the prisoner open? Why? 8

Problem 4 For the second prisoner, the following signs were put on the doors. Door 1: at least one of these rooms contains gold. Door 2: a tiger is in the other room. Are the signs true? asked the prisoner. They are either both true or both false, replied the king. Which door should the prisoner choose? Why? Problem 5 In this case, the king explained that, again, the signs were either both true or both false. Sign 1: either this room contains a tiger, or there is gold in the other room. Sign 2: there is gold in the other room. Does the first room contain gold or a tiger? What about the other room? 9

Problem 6 A prince travelling through a magic land found an enchanted castle guarded by an evil goblin. The goblin told the prince that he had a box with a key to the castle gate, but that it was very dangerous to open the box. The prince immediately accepted the challenge. The goblin presented the young man with three boxes, red, blue, and green. It was written on the red box, Here is the key. The blue box read, The green box is empty. The green box had a warning, There is a poisonous snake in this box. Ha-ha-ha, laughed the goblin, it is true that one of these boxes has the key, one is home to a deadly snake and one is empty, but all the labels on the boxes lie. You can only try once. If you open the empty box, you go home empty-handed and if you open the box with the snake, you die! Help the prince to choose wisely. 10

Problem 7 A says, I am a boy. B says, I am a girl. If at least one of them is lying, who is a boy and who is a girl? 11