4. There once lived a king, named Hagar, who had thousands of sons and daughters, still giving more births to his wives. One of his serious problems was.

Slides:



Advertisements
Similar presentations
Study Group Randomized Algorithms 21 st June 03. Topics Covered Game Tree Evaluation –its expected run time is better than the worst- case complexity.
Advertisements

Linear Equations in Linear Algebra
Bounds on Code Length Theorem: Let l ∗ 1, l ∗ 2,..., l ∗ m be optimal codeword lengths for a source distribution p and a D-ary alphabet, and let L ∗ be.
Basic properties of the integers
Induction and recursion
2.3 Matrix Inverses. Numerical equivalent How would we solve for x in: ax = b ? –a -1 a x = a -1 b –x=a -1 b since a -1 a = 1 and 1x = x We use the same.
Eigenvalues and Eigenvectors
2 2.3 © 2012 Pearson Education, Inc. Matrix Algebra CHARACTERIZATIONS OF INVERTIBLE MATRICES.
Section 2.3 Gauss-Jordan Method for General Systems of Equations
Eigenvalues and Eigenvectors
Tirgul 10 Rehearsal about Universal Hashing Solving two problems from theoretical exercises: –T2 q. 1 –T3 q. 2.
1 1. Show the result of each of the following set operations in terms of set property. Write your sets as simple as possible. (a) L 0  L 4 (b) L 0  L.
1 Perfect Matchings in Bipartite Graphs An undirected graph G=(U  V,E) is bipartite if U  V=  and E  U  V. A 1-1 and onto function f:U  V is a perfect.
CHAPTER 4 Decidability Contents Decidable Languages
מבנה המחשב + מבוא למחשבים ספרתיים תרגול 5# Topics: 1.Encoders and decoders 2.Shifters.
Linear Equations in Linear Algebra
Discrete Mathematics Lecture#11.
1 © 2012 Pearson Education, Inc. Matrix Algebra THE INVERSE OF A MATRIX.
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
6 6.1 © 2012 Pearson Education, Inc. Orthogonality and Least Squares INNER PRODUCT, LENGTH, AND ORTHOGONALITY.
6 6.3 © 2012 Pearson Education, Inc. Orthogonality and Least Squares ORTHOGONAL PROJECTIONS.
Row Reduction and Echelon Forms (9/9/05) A matrix is in echelon form if: All nonzero rows are above any all-zero rows. Each leading entry of a row is in.
Chapter 1 Section 1.2 Echelon Form and Gauss-Jordan Elimination.
Induction and recursion
Cardinality of Sets Section 2.5.
Ch. 8 & 9 – Linear Sorting and Order Statistics What do you trade for speed?
Copyright © Cengage Learning. All rights reserved. CHAPTER 11 ANALYSIS OF ALGORITHM EFFICIENCY ANALYSIS OF ALGORITHM EFFICIENCY.
Induction and recursion
Linear Algebra Chapter 4 Vector Spaces.
Discrete Mathematics, 1st Edition Kevin Ferland
Eigenvalues and Eigenvectors
2 2.1 © 2016 Pearson Education, Inc. Matrix Algebra MATRIX OPERATIONS.
Lesson 13-1: Matrices & Systems Objective: Students will: State the dimensions of a matrix Solve systems using matrices.
Groups Definition A group  G,  is a set G, closed under a binary operation , such that the following axioms are satisfied: 1)Associativity of  :
The Integers. The Division Algorithms A high-school question: Compute 58/17. We can write 58 as 58 = 3 (17) + 7 This forms illustrates the answer: “3.
Mathematics.
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.
Chapter 3 Determinants Linear Algebra. Ch03_2 3.1 Introduction to Determinants Definition The determinant of a 2  2 matrix A is denoted |A| and is given.
Word : Let F be a field then the expression of the form a 1, a 2, …, a n where a i  F  i is called a word of length n over the field F. We denote the.
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
2 2.1 © 2012 Pearson Education, Inc. Matrix Algebra MATRIX OPERATIONS.
1 1. Let A ={r, p, i } and B = { w, o, r, l, d }. What does each of the following (a), (b) and (c) denote? Briefly explain in plain English. (a) A * B.
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
CompSci 102 Discrete Math for Computer Science February 7, 2012 Prof. Rodger Slides modified from Rosen.
Greatest Common Divisors & Least Common Multiples  Definition 4 Let a and b be integers, not both zero. The largest integer d such that d|a and d|b is.
Mathematical Induction Section 5.1. Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If.
CHARACTERIZATIONS OF INVERTIBLE MATRICES
Mathematical Induction
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Bushy Binary Search Tree from Ordered List. Behavior of the Algorithm Binary Search Tree Recall that tree_search is based closely on binary search. If.
Copyright © Cengage Learning. All rights reserved. Sequences and Series.
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
Models of Computation: Automata and Formal Languages Sam M. Kim.
EMIS 8374 Shortest Path Trees Updated 11 February 2008 Slide 1.
Chapter 5. Section 5.1 Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If we can reach.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
5 5.1 © 2016 Pearson Education, Ltd. Eigenvalues and Eigenvectors EIGENVECTORS AND EIGENVALUES.
1 1.4 Linear Equations in Linear Algebra THE MATRIX EQUATION © 2016 Pearson Education, Ltd.
1 Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors. Review Matrices.
Dr Nazir A. Zafar Advanced Algorithms Analysis and Design Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar.
Linear Equations in Linear Algebra
CHARACTERIZATIONS OF INVERTIBLE MATRICES
Linear Equations in Linear Algebra
Induction and recursion
Lectures on Graph Algorithms: searching, testing and sorting
Chapter 3 Canonical Form and Irreducible Realization of Linear Time-invariant Systems.
Tutorial 2 - Daniel Razavi
CHARACTERIZATIONS OF INVERTIBLE MATRICES
Presentation transcript:

4. There once lived a king, named Hagar, who had thousands of sons and daughters, still giving more births to his wives. One of his serious problems was to give a new (unique) name to his every new born baby. One day he summoned one of his royal advisers who is in charge of information processing, and ordered to find an efficient idea.What will this adviser’s idea be, if he attended our classes, where proof techniques have been discussed? Your answer should be clear and complete. You may use any assumption, if needed. Exercise 2 for Proof Techniques (Key answers are in the following slide.) 1. Prove that a = b if and only if a  b and a  b. 2. Show that the numbers appearing on columns and rows of 2 x 2 bit matrix doe not exhaust all possible binary numbers of length Spener’s lemma claims the following: Suppose that there is a linear array of n  2 nodes, each labeled with either 1 or 2 as the following figure illustrates. Let two adjacent nodes with different labels (i.e., either 2-1 or 1-2) call “good label block.” If the two end nodes are assigned with different labels, then whichever way the other nodes are assigned with the labels, the number of good label blocks is always odd Good label blocks (a) Prove Sperner’s lemma by induction. (b) Can we claim the same property if we define the good label block as a block having identical label? Justify your answer.

1. The problem is to prove the following: (a) if a = b, then a  b and a  b (b) if a  b and a  b, then a = b Proof (a). If a = b, then obviously both expression a  b and a  b are true. (b) If both a  b and a  b are true, then it implies a = b. Key answers for Exercise 2: 2. We will show that in 2  2 bit matrix, it is impossible to put 4 different binary numbers of length 2 in the two columns and two rows. It is enough to show that whichever way you put the bits, there appear at least tow identical binary numbers. Let a, b, c and d be a bit (either 0 or 1) at each entry as shown in Figure (a). We can observe the following: Entries b and c cannot be same. Otherwise row 1 and column 1 will have the same number ab = ac. So suppose that b = 1 and c = 0. (We can apply the same argument for the case of b = 0 and c = 1.) Then matrix will contain the following numbers: a1 in row 1 and a0 in column 1. 0d in row 2 and 1d in column 2. Can we make 4 different numbers by assigning a binary value to a and d? The answer is no. If a = 0, then row 1 and column 1, respectively, will have 01 and 00. If d = 0, then row 2 will have the same number 00 as column 1. If d = 1, then row 2 will have the same number 01 as row 1. We can argue similarly for the case when a = ab d Figure (a) c

Answer 3-(a) Proof of the Sperner’s lemma (1) Induction Base: when the number of nodes n = 2; Obviously the number of good block is one, which is odd. 12 (2) Hypothesis: Suppose that, for any number of nodes n’ < n, the number of good blocks is odd. (3) Induction : We prove that when the number of nodes is n’+ 1 = n, the number of good blocks is also odd. We examine the problem divided in two cases depending on the label of n’-th node. Case 1: When the label of node n’ is 2 (see the figure below). According the the hypothesis, the first n’ nodes has odd number of good blocks, and the last block is not a good block. Hence, total number of good blocks is odd. Case 2: When the label of node n’ is 1 (see the figure below). Since the last block is a good block, it is enough to prove that in the array of first n’ nodes there are even number of good blocks. Going to the left from n’-th node, find the first node whose label is 2 (see the figure below). If there is no such node, then the number of good blocks to the left of node n’ is zero, which is even. If there is a node with label 2 (say, in i-th node), then according to the induction hypothesis, the array of first i nodes has odd number of good blocks, and between i-th and i+1 st node there is another good block. Hence the number of good blocks in the first n’ nodes is even. We are all done. 1? i... n’ n’+1 211? n’ n’+1 1??2

Answer 3-(b): (This problem appears in homework 1.) Answer 4: There can be many solutions for the problem with some encoding techniques. Another simple idea could be using the diagonalization technique to make a new name from the current list of names.