Today’s agenda 1. WASI test results 2.Quiz or HW? 3.Your stage 2 reports 4.Individual activity points.

Slides:



Advertisements
Similar presentations
Building a Conceptual Understanding of Algebra with Algebra Tiles
Advertisements

ALGEBRA TILES Jim Rahn LL Teach, Inc.
THE WELL ORDERING PROPERTY Definition: Let B be a set of integers. An integer m is called a least element of B if m is an element of B, and for every x.
The Pigeonhole Principle
Mathematical Induction (cont.)
NON - zero sum games.
Graph-02.
Introduction to Graphs
Transformations We want to be able to make changes to the image larger/smaller rotate move This can be efficiently achieved through mathematical operations.
1 Lecture 5 (part 2) Graphs II Euler and Hamiltonian Path / Circuit Reading: Epp Chp 11.2, 11.3.
Mathematical Induction II Lecture 14: Nov
Graphs Graphs are the most general data structures we will study in this course. A graph is a more general version of connected nodes than the tree. Both.
GOLOMB RULERS AND GRACEFUL GRAPHS
Induction Lecture 5: Sep 21 (chapter of the book and chapter of the notes)
Euler Circuits and Paths
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
An Euler Circuit is a cycle of an undirected graph, that traverses every edge of the graph exactly once, and ends at the same node from which it began.
Invariant Method Lecture 6: Sep
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
Invariant Method Lecture
Prove the Impossible Lecture 6: Sep 19 (based on slides in MIT 6.042)
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
Induction (chapter of the book and chapter of the notes)
1 Chapter 2 Matrices Matrices provide an orderly way of arranging values or functions to enhance the analysis of systems in a systematic manner. Their.
CS 2210 (22C:019) Discrete Structures Logic and Proof Spring 2015 Sukumar Ghosh.
Eulerian Graphs CSE 331 Section 2 James Daly. Reminders Project 3 is out Covers graphs Due Friday.
GRAPH Learning Outcomes Students should be able to:
Invariant Method
The Pigeonhole (Dirichlet’s box) Principle
Digital Logic Chapter 4 Presented by Prof Tim Johnson
Introduction to Proofs
1 Starter of the day 23 x 27 = x 47 = x 87 = x 55 = x 58 = ???? 54 x 56 = ???? Can you spot the trick for this group of.
Section 1.8. Section Summary Proof by Cases Existence Proofs Constructive Nonconstructive Disproof by Counterexample Nonexistence Proofs Uniqueness Proofs.
Prerequisites: Fundamental Concepts of Algebra
A powerful strategy: Symmetry The world is full of symmetry, so use it!
7.4 and 7.5 Solving and Zeros of Polynomials
Mathematical Induction I Lecture 4: Sep 16. This Lecture Last time we have discussed different proof techniques. This time we will focus on probably the.
Symmetry Problem What is the sum of the values 1 to 100? Hint: Look for the symmetry!
CSS106 Introduction to Elementary Algorithms
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
5 – 2: Solving Quadratic Equations by Factoring Objective: CA 8: Students solve and graph quadratic equations by factoring, completing the square, or using.
A powerful strategy: Symmetry The world is full of symmetry, so use it!
Matching Lecture 19: Nov 23.
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Quiz highlights 1.Probability of the song coming up after one press: 1/N. Two times? Gets difficult. The first or second? Or both? USE THE MAIN HEURISTICS:
Mathematical Induction
Introduction to Graph Theory
Sample Problems Ted’s weekly income is $ less than double Gary’s weekly income. If Ted makes $ a week, what does Gary make? Paul makes $25.00.
Dr. Naveed Riaz Design and Analysis of Algorithms 1 1 Formal Methods in Software Engineering Lecture # 27.
INDUCTION Lecture 22 CS2110 – Fall 2009 A well-known scientist (some say it was Bertrand Russell) once gave a public lecture on astronomy. He described.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
1 Lecture 5 (part 2) Graphs II (a) Circuits; (b) Representation Reading: Epp Chp 11.2, 11.3
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Proof And Strategies Chapter 2. Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete.
Axioms and Theorems. Remember syllogisms? The Socrates Syllogism All human beings are mortal Socrates is a human being Therefore Socrates is mortal premises.
Hubert Chan (Chapters 1.6, 1.7, 4.1)
Bipartite Matching Lecture 8: Oct 7.
Mathematical Analysis of a Nim-like Matrix Game Leo Livshits, Ph. D
Mathematical Induction II
Discrete Structures – CNS2300
Proof by Contradiction
Hubert Chan (Chapters 1.6, 1.7, 4.1)
Gray Code Can you find an ordering of all the n-bit strings in such a way that two consecutive n-bit strings differed by only one bit? This is called the.
Warm-up a. Solve for k: 13 −5
Solving Multi-Step Equations
Graph Theory What is a graph?.
Euler and Hamilton Paths
Induction Rosen 5 Lecture 8: Oct 29, 30.
THE WELL ORDERING PROPERTY
Presentation transcript:

Today’s agenda 1. WASI test results 2.Quiz or HW? 3.Your stage 2 reports 4.Individual activity points

Invariants An invariant is some aspect of a problem that does not change. – Similar to symmetry – Often a problem is easier to solve when you focus on the invariants

Invariants An invariant is some aspect of a problem that does not change. Simplest example: PARITY. The parity of a sum of integers is odd, if and only if the number of odd elements is odd. The parity of a product of a set of integers is odd if and only if …

Chessboard Problem Problem: Completely tile (single layer) this defective chessboard with dominos. A domino

Chessboard Problem Strategy: solve a simple problem first. A 2x2 board. 3x3? What’s your conclusion? A domino

Chessboard Problem Claim: Tiling the defective chessboard with dominos is impossible. Proof? Must be a convincing argument. Find a “tiling invariant”, a number that does not change upon adding a single tile. Or, a number whose property (e.g. odd, even) does not change.

First Proof Attempt There are more black squares than white squares. Therefore, tiling the defective chessboard with dominos is impossible. Why is this not an adequate argument?

Second Proof Attempt Every domino covers one black square and one white square. Thus, adding one domino tile does not change (# white sqrs - # black sqrs) = I = invariant. Originally, this invariant I = 2. A complete tiling would mean that all squares are covered, I=0. Impossible.

The seven bridges of Konigsberg Can you pass all 7 only once and come back?

The seven bridges of Konigsberg Can you pass all 7 only once and come back to the same land mass (A, B, C or D)? A B CD

The seven bridges of Konigsberg = Can you start and and at the same vertex, traversing every edge only once? A C B D

Each vertex has k=3 edges, incoming (+1) or outgoing (- 1). Start at A. Return to A. Number of people at D is 0 in the beginning and end = invariant. Can not be 0 for k = odd. A C B D I 1 = +1 I 3 = -1 I 2 = +1

The seven bridges of Konigsberg = The Birth of Graph Theory Can you start and and at the same vertex, traversing every edge only once? A C B D

Invariant Problem Let a1, a2…. an be an arbitrary arrangement of the numbers 1,2,3… n. Prove that, if n is odd, the product: (a1 -1)(a2 -2 )… (an - n) is an even number. Hint: products are difficult to deal with. Consider sum of the terms.

Invariant Problem Let a1, a2…. an be an arbitrary arrangement of the numbers 1,2,3… n. Prove that, if n is odd, the product: (a1 -1)(a2 -2 )… (an - n) is an even number. Solution. Step 1. Remember, products are difficult. Consider the sum of the terms. (a1 -1) + (a2 - 2) + … (an - n) = (a1 + a2 + … an ) - ( …n) = = ( … n) - ( … n) = 0. INVARIANT (does not change with n). Step 2. A sum of an odd number of integers that is equal to an even number must contain at least one even number.

Invariant Problem At first, a room is empty. Each minute, either one person enters or two people leave. After exactly minutes, could the room contain people?

Invariant Problem At first, a room is empty. Each minute, either one person enters or two people leave. After exactly minutes, could the room contain people? If there are n people in the room at a given time, there will be either n+3, n, n-3, or n-6 after 3 minutes. In other word, the increment is a multiple of 3. Thus, population after 3k minute P(3k minutes) = 3*N, N - integer. Since we have 3k = 3^1999 we CAN NOT have 3^ – not divisible by 3.

Invariant Problem (CS) An image generated by a Mars rover is 10,000x10,000 matrix of pixels A. Its entries are 0 or 1 only. A lossless compression algorithm is employed that uses a similarity transformation B = SAS -1, where S is some other 10,000x10,000 matrix (stored on Earth); the resulting diagonal matrix B is sent to Earth. Propose at least one quick check that tests if B might have been corrupted in transmission. (Such checks are necessary conditions that B is correct). USE THE WEB TO REFRESH YOUR MATRIX ALGEBRA.

Invariant Problem (CS) Hint: find an invariant of the similarity transformation, a single number that does not change when you do the transformation. Google is your friend.

Invariant Problem (CS) det( B) = det (SAS -1 ) = det (SS -1 A) = det(1xA) = det(A). But det(B) is really simple, just the product of its diagonal elements (all others are zero). Since original A had only integer entries, det(A) must be an integer, and so must be det(B). Although the problem did not specify it, if you could send that integer from Mars along with the main data package, that would be an even more precise check.

Invariant Problem If 127 people play in a singles tennis tournament, prove that at the end of the tournament, the number of people who have played an odd number of games is even.