Solutions to Puzzles Raghupathy Sivakumar Gatech ECE

Slides:



Advertisements
Similar presentations
Experimental Probability Vs. Theoretical Probability
Advertisements

Probability Review Jeopardy!! Jeopardy!! Misc. Compound Events Permutations / Combinations Counting Principle Simple Events.
Bell Work: Factor x – 6x – Answer: (x – 8)(x + 2)
Consecutive Numbers Algebra I.
EXAMPLE 1 Find probabilities of events You roll a standard six-sided die. Find the probability of (a) rolling a 5 and (b) rolling an even number. SOLUTION.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Counting Principles (Permutations and Combinations )
Probability We love Section 9.3a and b!. Most people have an intuitive sense of probability, but that intuition is often incorrect… Let’s test your intuition.
1 9/23/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
CONFIDENTIAL 1 Algebra1 Theoretical Probability. CONFIDENTIAL 2 Warm Up 1) choosing a heart. 2) choosing a heart or a diamond. An experiment consists.
Warm Up Write each fraction as a percent Evaluate P P C C 6 25% 37.5%100%
Warm Up Write each fraction as a percent Evaluate P P C C 6 25% 37.5%100%
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
Probability Basic Concepts Start with the Monty Hall puzzle
7-2 Theoretical Probability
Basic Concepts of Probability
Andrej Bogdanov ENGG 2430A: Probability and Statistics for Engineers Spring Axioms of Probability.
Great Theoretical Ideas in Computer Science for Some.
Lesson 1.2 Inductive Reasoning Pages Observe Look for patterns Develop a hypothesis (or conjecture) Test your hypothesis.
Warm Up: Quick Write Which is more likely, flipping exactly 3 heads in 10 coin flips or flipping exactly 4 heads in 5 coin flips ?
Chapter 4 Introduction to Probability. I. Experiments, sample space and counting rules Probability is the numerical measure of a chance or likelihood.
1 COMP2121 Discrete Mathematics Principle of Inclusion and Exclusion Probability Hubert Chan (Chapters 7.4, 7.5, 6) [O1 Abstract Concepts] [O3 Basic Analysis.
Internet Quality of Service
Mobile File Systems.
Probability Test Review Larson/Farber 4th ed.
Warm Up Find the theoretical probability of each outcome
Theoretical and Experimental Probability 7-2
Counting Principles Ex. Eight pieces of paper are numbered 1 to 8 and placed in a box. One piece of paper is drawn from the box, its number is written.
EXAMPLE 1 Find probabilities of events
Wireless MAC.
2.3 Probability and Odds Objective: Given a description an event, find the probability and/or the odds of the event happening (including replacement and.
What Is Probability?.
Venn Diagrams For each Venn diagram insert the numbers 1 to 10 into the correct sections. 1. Multiples of 2 Multiples of or less Factors of 12 2.
Wireless Scheduling.
Probability Test Review Larson/Farber 4th ed.
Sequences, Series, and Probability
Transmission Control Protocol (TCP)
Consecutive Numbers Algebra I.
Determining the theoretical probability of an event
BASIC PROBABILITY Probability – the chance of something (an event) happening # of successful outcomes # of possible outcomes All probability answers must.
Week 6 Probability and Assessment
From Randomness to Probability
Review/Study Guide Chapter 19: Liquids
WARMUP Lesson 10.3, For use with pages
13-5 Conditional Probability
Theoretical Probability
Chapter 6 Decision Making and Looping
Coding Concepts (Sub- Programs)
Warm Up Evaluate. 6P P2 7C C6.
Lecture 22 Section 7.1 – Wed, Oct 20, 2004
Finding Probability Using Tree Diagrams or Tables
Probability.
Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
1. Probabilistic Models.
PROBABILITY Lesson 10.3A.
©G Dear 2009 – Not to be sold/Free to use
Section 14.5 – Independent vs. Dependent Events
Probability is the measure of how likely an event is to occur
STATISTICS AND PROBABILITY
e is the possible out comes for a model
F5 To do this activity you should: Know the square numbers
Independent and 10-7 Dependent Events Warm Up Lesson Presentation
Independence and Counting
Independence and Counting
P.3 Radicals and Rational Exponents
Theoretical and Experimental Probability
Independence and Counting
Square numbers always have an even number of factors.
Matter Review for test Fifth Grade.
{ a } { a, b } { a, b, c } { a, c } { b } 8 subsets. { b, c } { c }
Presentation transcript:

Solutions to Puzzles Raghupathy Sivakumar Gatech ECE

Puzzle 1 You have a chain consisting of 63 inter-linked gold links You have to stay at a motel where the charge per day is 1 gold link You do not trust the motel manager and neither does he trust you What is the minimum number of links you need to break in order to stay for 63 days? Clue: The manager will not sell the links till you check out

Puzzle 1 Solution 63 1st cut: 1 4 58 2nd cut: 1 4 1 8 49 3rd cut: 1 4 1 8 1 16 32 1, 2 (=1+1), 4, 8, 16, 32 available!

Puzzle 4 Two great mathematicians S & P S knows the sum of two positive integers (> 1) x and y P knows the product of x and y S calls P and says “You cannot find the two numbers” P replies “I know the two numbers” S responds “I know the two numbers too” What are the two numbers?!!

Puzzle 4: (4,13) S says “You cannot find the two nos.” Constraint 1: The sum cannot be split into two prime numbers or cannot have a unique split 17: (2,15), (3,14), (4,13), (5,12), (6,11), (7,10), (8,9) P says “I have found the two nos.” Constraint 2: For all possible combinations of factors of the product, there is only one combination for which constraint 1 is satisfied 52: (2,26), (4,13) S says “I have found the two nos.” For all possible combinations of splits of the sum, there is only one combination that satisfied Constraint 2

Puzzle 6 Man in a boat floating in a swimming pool  He has a large solid iron ball If he drops the ball into the water, what happens to the level of water in the swimming pool? (increases, decreases, stays the same?)

Puzzle 6 Man in a boat floating in a swimming pool  He has a large solid iron ball If he drops the ball into the water, what happens to the level of water in the swimming pool? (increases, decreases, stays the same?) Water level drops: When ball is floating (in boat), amount of water displaced is equal to the weight of the ball, whereas when it sinks, the amount of water displaced is equal to the volume of the ball

Puzzle 8 In C, what is the output of the following code: int a[5] = {0,1,2,3,4}; a[2] && printf(“%d %d”, a[3], 3[a]++);

Puzzle In C, what is the output of the following code: int a[5] = {0,1,2,3,4}; a[2] && printf(“%d %d”, a[3], 3[a]++); 4, 3 – on most platforms C language does not stipulate any specific order of parameter processing C parser would just see *(3+a) What if first term were a[0]?

Puzzle 15 You have an unfair coin (prob(H) = p != ½) How will you generate a fair toss?

Puzzle 15 You have an unfair coin (prob(H) = p != ½) Use TH and HT as the two events with equal probability p(1-p). Ignore events TT and HH You have an unfair coin (prob(H) = p != ½) How will you generate a fair toss?

Puzzle 18 You have a deck of 52 cards You draw out 5 cards randomly and look at the cards You can now show 4 of the cards to a friend, and the friend should identify the 5th card How do you do this?

Puzzle 18 Let cards be numbered 1-52 Use permutation of the 4 cards to index into the 5th card (how many possible?) Choose cards to avoid having to index a number greater than 24 Eg1: 1 2 3 4 10 => show 1 2 3 4 appropriately Eg2: 1 2 3 4 30 => show 30 1 2 3 appropriately You have a deck of 52 cards You draw out 5 cards randomly and look at the cards You can now show 4 of the cards to a friend, and the friend should identify the 5th card How do you do this?

Puzzle 22 Two twins A & B A always speaks the truth, and believes all true propositions (say 2+2=4) to be true, and all false propositions (say 2+2=3) to be false B always lies, and believes all true propositions to be false, and all false propositions to be true You meet one of the twins. How many questions do you need to identify which twin he is?

Puzzle 22 One question: Are you the truth speaker? Two twins A & B A always speaks the truth, and believes all true propositions (say 2+2=4) to be true, and all false propositions (say 2+2=3) to be false B always lies, and believes all true propositions to be false, and all false propositions to be true You meet one of the twins. How many questions do you need to identify which twin he is?

Puzzle Doors numbered 1-100 All doors initially open Toggle switch outside every door If switch is pressed, door will close if it is currently open, and open if it is currently closed For i=1 to 100, you press switches of doors that are multiples of i Which doors are closed at the end of the process?

Puzzle Doors with odd number of toggles Doors with odd number of unique factors Doors that have numbers that are perfect Squares! Doors numbered 1-100 All doors initially open Toggle switch outside every door If switch is pressed, door will close if it is currently open, and open if it is currently closed For i=1 to 100, you press switches of doors that are multiples of i Which doors are closed at the end of the process?