Find the Missing Number or Numbers: An Exposition
|
|
- Bryan Nash
- 5 years ago
- Views:
Transcription
1 Find the Missing Number or Numbers: An Exposition William Gasarch Univ. of MD at College Park Introduction The following is a classic problem in streaming algorithms and often the first one taught. Assume n is large and k is constant. Alice is going to say all but k of the numbers in the set {,,..., n} in some order. Bob will listen and try to discern what the k missing numbers are. If Bob s brain could easily store and access n bits then he would be able to store a bit vector and mark each number as it came in, then scan the bit vector for the k missing numbers. But what if Bob s brain can only store m n bits? This can be presented as a fun math puzzle, and for k = and even k = the answer is fun. Is it fun for k = 3? k 4? I leave that as an exercise for the reader. We present solutions for k =, k =, k = 3 and k 4. Find the Missing Number Alice is going to say all but one of the numbers in the set {,,..., n} in some order. Bob will listen and try to discern what the missing number is. Alice says the numbers x, x,..., x n. They are all distinct elements from {,..., n} but one is missing. Let y be the missing number. University of Maryland, College Park, MD 074, gasarch@cs.umd.edu
2 Bob can do this problem storing just O(log n) bits. As Bob hears the numbers he maintains the SUM. This takes just O(log n) bits. At the end he has i n x i.. Solution Using the Sum Note that x i = ( i) y = i n i n n(n + ) y. Bob finds the missing number is y = n(n+) i n x i. Note. n(n+) has size lg n, hence this algorithm takes space lg n. Can we do better? Yes! Realize that the final answer is between and n. Hence if we did all calculations mod n we would get the same answer (equating 0 with n). If n is odd then n(n+) 0 (mod n). Hence y is n(n + ) i n ( n(n + ) x i = i n x i ) (mod n) = i n x i (mod n). Hence Bob can compute i n x i) (mod n) which takes lg n bits. He can then subtract it from n (can this by done in lg n bits?) and get the answer, only using lg n bits. If n is even then use mod n +.. Solution Using XOR An alternative solution: View the numbers x,..., x n as lg n -bit strings. After seeing the x,..., x L Bob maintains x x x L. One can show that the final string Bob has, x x n, IS the missing number.
3 3 Find the Missing Two Numbers Alice is going to say all but two of the numbers in the set {,,..., n} in some order. Bob will listen and try to discern which two numbers are missing. We denote the missing numbers y, y. We give three solutions that use O(log n) bits. 3. Solution that Uses the Quadratic Formula As Bob hears the numbers he maintains the SUM and SUM OF SQUARES. At the end Bob has Since Bob can calculate and store i n x i and i n x i he can deduce i n x i i n x i s t = y + y = i n x i i n i = y + y = i n x i i n i We derive y, y from s, t as follows. y = s y t = y + (s y ) = y sy + s y sy + s t = 0 Now use the quadratic formula to find y and then y = s y to find y. Note 3. The above solution takes 3 lg n + lg n = 5 lg n space since we need to store a sum of size O(n 3 ) and a sum of size O(n ). We can do better! We can t use mod n since the quadratic might have more than roots mod n. Let p be a prime such that n p n. Do all of the above mod p works. This will take lg(n) + lg(n) lg(n) + O(). 3
4 3. Solution that Uses Sums of Powers This solution is identical to the one in Section 3. up until we find s, t. We then find y y as follows: s t = y y. Let s = y + y and p = y y. Form the polynomial X sx + p = X (y + y )X + y y = (X y )(X y ). Find the roots of this polynomial. We call this THE POLY-ROOTS TRICK throughout. Note that all we need is the symmetric functions y, y. More generally we will need the symmetric functions of y, y,..., y k. Note 3. Similar to the solution in Section 3., we can do all of this mod p and hence space lg(n) + O(). 3.3 Solution that uses Symmetric Functions Throughout As Bob hears the numbers he maintains the SUM and the SUM OF PRODUCTS OF PAIRS. After hearing the first L numbers he has in his head i L x i AND L i<j L x ix j. We need to show that he can actually do this. Let s L 0 (x,..., x L ) s L (x,..., x L ) s L (x,..., x L ) = ( We don t really need s 0 but it will make the notation nice.) = i L x i = i<j L x ix j For notational convenience we use s L i to mean s L i (x,..., x L ) 4
5 Assume Bob has s L 0, s L and s L. And then Bob sees x L. Bob wants s L 0, s L, s L. We explain all of this by expanding everything out s L 0 =. Thats easy. We rewrite this as s L = (x + + x L ) + x L = s L + x L. s L = (x + + x L ) + x L = s L + x L s L 0 since this way it will give all of he equations (and more so for the k = 3 and k 4 cases) look the same. s L = x i x j i<j L We break this sum up into two parts- those parts that use x L and those parts that do not. If a product of two x i terms uses x L then it is of the form x i x L. hence s L = i<j L x i x j + x L (x + + x L ). AH- note that i<j L x ix j + x L (x + + x L ) is s L and x + + x L is s L. So we write this as We now write all of the equations together: s L = S L + x L s L. 5
6 s L 0 = s L s L = s L + x L s L 0 = s L + x L s L Hence we can keep the counters s and s and update them easily, using only O(log n) space. At the end we have s n and s n. KEY: Bob can compute, before seeing any of the data: s n s n = i n x i = i n i = i<j n x ix j = i<j n ij We want to derive s (y, y ) = y + y and s (y, y ) = y y and then finish up the proof as we did in Section 3.. For notational convenience we denote s (y, y ) by s and s (y, y ) by s. Note that s n s n = s n + s = s n + s n s + s Note that s n, s n, s n, s n are known. Hence s = (y +y ) and s = y y can be determined. Now do the poly-root trick. 4 Find the Missing Three Numbers Alice is going to say all but three of the numbers in the set {,,..., n} in some order. Bob will listen and try to discern which three numbers are missing. We denote the missing numbers y, y, y 3. We give two solutions. 6
7 4. Solution Using Sums of Powers Bob keeps track of the sum of terms, squares of terms, and cubes of terms. By subtracting them from the known quantities n i= i, and n i= i, and n i= i3 Bob obtains: y + y + y 3 y + y + y 3 y 3 + y 3 + y 3 3 Can he use these to determine y, y, y 3? We WANT to obtain: y + y + y 3 (thats easy!) y y + y y 3 + y y 3 y y y 3 ONCE we have them we form the polynomial X 3 (y + y + y 3 )X + (y y + y y 3 + y y 3 )X y y y 3 = (X y )(X y )(X y 3 ). Find its roots. Then you have y, y.y 3. OKAY, now to find those functions of y, y, y 3. We first try an intuitive thing: (y + y + y 3 ) (y + y + y 3) This is intuitive to try since we can already see that all of the square terms will drop out and might leave us with something simple. 7
8 (y + y + y 3 ) (y + y + y 3) = y y + y y 3 + y y 3 = (y y + y y 3 + y y 3 ). GREAT!- that last term is twice what we want. In other words: NOW we want y y y 3. y y + y y 3 + y y 3 = (y + y + y 3 ) (y + y + y 3) The next equation is harder to motivate so I won t even try (though its a special case of Newton s identity which I will discuss when doing the general k case): y y y 3 = (y y + y y 3 + y y 3 )(y + y + y 3 ) (y + y + y 3 )(y + y + y3) + (y 3 + y 3 + y3) 3. 3 Great! Now that we have y + y + y 3, y y + y y 3 + y y 3, y y y 3 4. Solution that uses Symmetric Functions Throughout This solution is due to Y. Minsky, A. Trachtenberg, and R. Zippel []. The KEY to the solution in the last section was that we used the sums-of-powers to obtain the symmetric functions y + y + y 3, y y + y y 3 + y y 3, y y y 3. In this solution we get the symmetric functions more directly. As Bob hears the first L numbers x,..., x L he maintains: i L x i. L i<j L x ix j. L i<j<k L x ix j x k. 8
9 We need to show that he can actually do this. Let s L 0 (x,..., x L ) s L (x,..., x L ) s L (x,..., x L ) s L 3 (x,..., x L ) = (We have this just so the equations look nice.) = i L x i = i<j L x ix j = i<j<k L x ix j x k For notational convenience we use s L i to mean s L i (x,..., x L ) We need to show that Bob can easily get s L 0, s L, s L, s L 3 from s L 0, s L, s L, s L 3 and x L. s L 0 = so thats easy. s L = (x + + x L ) + x L = s L + x L = s L + x L s L 0. SO we now have s L in terms of stuff Bob knows. Consider s L = i<j L x ix j We separate out the pairs the involve x L from the ones that don t. The ones that don t involve x L are just s L = i<j L x ix j. The ones that DO involve x L involve just x L and some x i with i < L. Thats just Hence x x L + x x L + + x L x L = x L (x + + x L ) = x L s L SO we now have s L in terms of stuff Bob knows. s L = s L + x L s L s L 3 is similar and we leave it to the reader. To summarize we have: 9
10 s L 0 = s L s L s L 3 = s L + x L s L 0 = s L + x L s L = s L 3 + x L s L Hence we can keep the counters s, s, s 3 and update them easily, using only O(log n) space. At the end we have s n 3 and s n 3 and s n 3 3. KEY: Bob can compute, before seeing any of the data: s n 0 = s n s n s n 3 = i n x i = i n i = i<j n x ix j = i<j n ij = i<j<k n x ix j x k = i<j<k n ijk We want to derive s 3 (y, y, y 3 ) = y + y + y 3 and s 3 (y, y, y 3 ) = y y + y y 3 + y y 3 and s 3 3(y, y, y 3 ) = y y y 3. We can then finish up the proof using the poly-roots trick. For notational convenience we denote s 3 i (y, y ) by s 3 i. Note that For s it is easy to relate s n, s n 3, and s 3 since s n (x..., x n ) = x + + x n = (x + + x n 3 ) + (y + y + y 3 ) = s n 3 + s 3. Hence we can derive s 3 from s n and s n 3, both of which we know. Consider s n = i<j n x ix j. We break this into pieces. Some pairs use NO elements of y, y, y 3. That would be s n 3 = i<j n 3 x ix j. Some pairs use y and some element of {x,..., x n 3 }. That would be 0
11 y (x + + x n 3 ) = y s n 3 Some pairs use y and some element of {x,..., x n 3 }. That would be y (x + + x n 3 ) = y s n 3 Some pairs use y 3 and some element of {x,..., x n 3 }. That would be The sum of the last three cases is y 3 (x + + x n 3 ) = y 3 s n 3 (y + y + y 3 )(x + + x n 3 ) = (x + + x n 3 )(y + y + y 3 ) = s n 3 s 3 Some pairs use two elements from {y, y, y 3 }. That would be y y + y y 3 + y y 3 = s 3. If you put this all together you get: s n = s n 3 s s n 3 s 3 + s n 3 0 s 3. A similar equation for s n 3 can also be derived; however, we leave that for the reader. To summarize we have in total: s n s n s n 3 = s n 3 s s n 3 0 s 3 = s n 3 s s n 3 s 3 + s n 3 0 s 3 = s n 3 3 s s n 3 s 3 + s n 3 s 3 + s n 3 3 s 3 0
12 Note that s n, s n, s n 3, s n 3, s n 3, s n 3, s n 3 0, s 3 0 are known. Hence s 3, s 3, s 3 3 can all be derived. Now we can do the poly-roots trick. 5 General k We ll need the symmetric functions for both solutions. Notation 5. s L 0 (x,..., x L ) = s L (x,..., x L ) s L (x,..., x L ) s L 3 (x,..., x L ) = i L x i = i <i L x i x i = i <i <i 3 L x i x i x i3. =. s L k (x,..., x L ) = i < <i k L x i x ik We often leave out the arguments for notational convenience. We give two solutions. The arguments used here are similar to the ones used in the k = 3 case so we omit them. 5. Solution Using Sums of Powers Bob keeps track of the sums of powers, up to the kth power. At the end he has n k i= x i, n k i= x i,. n k i= xk i. From these Bob can easily derive
13 k i= y i, k i= y i,. k i= yk i. We find the symmetric functions FROM these. How? By using Newton s identities. We abbreviate s k m(y,..., y k ) by s k m. We abbreviate k i= yp i by p k. ms k m(y,..., y k ) = m ( ) i s n m i(y,..., y k ) k i= j= y i j ms k m = m ( ) i s n m i(y,..., y k ) k i= j= y i j 5. Solution Using Symm Functions Throughout This algorithm is essentially from a paper by Yaron Minksy, Ari Trachtenberg, Richard Zippel []. Using an argument similar to the one in Section 3.3 we can obtain: Lemma 5. s L 0 = s L s L s L 3 = s L + x L s L 0 = s L + x L s L = s L 3 + x L s L. =. s L k = s L k + x L s L k Hence if Bob has s L,..., s L, and then sees x L, you will be able to calculate s L,..., s L k. If all k of the x i are in {,..., n} then you can do all of this in space O(k log n). Therefore Bob can find s n k,..., s n k k. 3
14 s n k KEY: Bob can compute the following independent of the data. He will do this after he knows,..., s n k, and use them one-at-a-time below to save space. k s n s n s n 3 = i n i = i <i n ij = i <i <i 3 n x ix j x k = i <i <i 3 n ijk. =. s n k = i < <i k x i x ik = i < <i k n i i i k We seek, for all i k, s k i (y,..., y k ). We denote these s k i for notational convenience. The following are easily seen to be true: s n s n s n 3 s n i = s n k s k 0 + s k s0 n k = s n k s k 0 + s n k s k + s n k 0 s k = s n k 3 s k 0 + s n k s k + s n k s k + s n k 0 s k 3. =. = s n k i s k 0 + s n k i sk + s i n k s k + s0 n k s k i. =. s n k = s n k k s k 0 + s n k k sk + s k n k s k + s n k 0 s k k Note that Bob knows s n i, s n k i, s k 0, s n k 0. Hence Bob can use these equations to, one at a time (to save space) find s k,s k,..., s k k. Bob forms the polynomial X k s k X k + s k X k + + ( ) k s k k = (X y )(X y ) (X y k ). Find the roots. 4
15 References [] Y. Minsky, A. Trachtenberg, and R. Zippel. Set reconciliation with nearly optimal communication complexity. IEEE Transactions on Information Theory, 49(9):3 8,
Some Review Problems for Exam 2: Solutions
Math 5366 Fall 017 Some Review Problems for Exam : Solutions 1 Find the coefficient of x 15 in each of the following: 1 (a) (1 x) 6 Solution: 1 (1 x) = ( ) k + 5 x k 6 k ( ) ( ) 0 0 so the coefficient
More informationSolving Quadratic & Higher Degree Equations
Chapter 7 Solving Quadratic & Higher Degree Equations Sec 1. Zero Product Property Back in the third grade students were taught when they multiplied a number by zero, the product would be zero. In algebra,
More informationSolving Quadratic & Higher Degree Equations
Chapter 9 Solving Quadratic & Higher Degree Equations Sec 1. Zero Product Property Back in the third grade students were taught when they multiplied a number by zero, the product would be zero. In algebra,
More informationMaking Change of n cents
A Complete High School Proof of Schur s Theorem on Making Change of n cents William Gasarch Univ. of MD at College Park Introduction Let a, a 2,..., a L be coin denominations. Assume you have an unlimited
More informationMath Lecture 18 Notes
Math 1010 - Lecture 18 Notes Dylan Zwick Fall 2009 In our last lecture we talked about how we can add, subtract, and multiply polynomials, and we figured out that, basically, if you can add, subtract,
More informationWhat is proof? Lesson 1
What is proof? Lesson The topic for this Math Explorer Club is mathematical proof. In this post we will go over what was covered in the first session. The word proof is a normal English word that you might
More informationAlgebra. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.
This document was written and copyrighted by Paul Dawkins. Use of this document and its online version is governed by the Terms and Conditions of Use located at. The online version of this document is
More informationcompare to comparison and pointer based sorting, binary trees
Admin Hashing Dictionaries Model Operations. makeset, insert, delete, find keys are integers in M = {1,..., m} (so assume machine word size, or unit time, is log m) can store in array of size M using power:
More informationMITOCW watch?v=vjzv6wjttnc
MITOCW watch?v=vjzv6wjttnc PROFESSOR: We just saw some random variables come up in the bigger number game. And we're going to be talking now about random variables, just formally what they are and their
More informationPartial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions.
Partial Fractions June 7, 04 In this section, we will learn to integrate another class of functions: the rational functions. Definition. A rational function is a fraction of two polynomials. For example,
More informationSolving Quadratic & Higher Degree Equations
Chapter 9 Solving Quadratic & Higher Degree Equations Sec 1. Zero Product Property Back in the third grade students were taught when they multiplied a number by zero, the product would be zero. In algebra,
More informationClock Arithmetic. 1. If it is 9 o clock and you get out of school in 4 hours, when do you get out of school?
Clock Arithmetic We are going to learn all about clock addition and the relationship to remainders when you divide numbers. 1 Standard Clock Addition 1. If it is 9 o clock and you get out of school in
More informationChapter 2. Mathematical Reasoning. 2.1 Mathematical Models
Contents Mathematical Reasoning 3.1 Mathematical Models........................... 3. Mathematical Proof............................ 4..1 Structure of Proofs........................ 4.. Direct Method..........................
More informationAt the start of the term, we saw the following formula for computing the sum of the first n integers:
Chapter 11 Induction This chapter covers mathematical induction. 11.1 Introduction to induction At the start of the term, we saw the following formula for computing the sum of the first n integers: Claim
More informationCh. 12 Higher Degree Equations Rational Root
Ch. 12 Higher Degree Equations Rational Root Sec 1. Synthetic Substitution ~ Division of Polynomials This first section was covered in the chapter on polynomial operations. I m reprinting it here because
More informationWhat if the characteristic equation has complex roots?
MA 360 Lecture 18 - Summary of Recurrence Relations (cont. and Binomial Stuff Thursday, November 13, 01. Objectives: Examples of Recurrence relation solutions, Pascal s triangle. A quadratic equation What
More informationPolynomials; Add/Subtract
Chapter 7 Polynomials Polynomials; Add/Subtract Polynomials sounds tough enough. But, if you look at it close enough you ll notice that students have worked with polynomial expressions such as 6x 2 + 5x
More informationProportional Division Exposition by William Gasarch
1 Introduction Proportional Division Exposition by William Gasarch Whenever we say something like Alice has a piece worth 1/ we mean worth 1/ TO HER. Lets say we want Alice, Bob, Carol, to split a cake
More informationCS1800: Sequences & Sums. Professor Kevin Gold
CS1800: Sequences & Sums Professor Kevin Gold Moving Toward Analysis of Algorithms Today s tools help in the analysis of algorithms. We ll cover tools for deciding what equation best fits a sequence of
More informationSolving with Absolute Value
Solving with Absolute Value Who knew two little lines could cause so much trouble? Ask someone to solve the equation 3x 2 = 7 and they ll say No problem! Add just two little lines, and ask them to solve
More informationWinter Camp 2009 Number Theory Tips and Tricks
Winter Camp 2009 Number Theory Tips and Tricks David Arthur darthur@gmail.com 1 Introduction This handout is about some of the key techniques for solving number theory problems, especially Diophantine
More informationMATH 2710: NOTES FOR ANALYSIS
MATH 270: NOTES FOR ANALYSIS The main ideas we will learn from analysis center around the idea of a limit. Limits occurs in several settings. We will start with finite limits of sequences, then cover infinite
More informationMI 4 Mathematical Induction Name. Mathematical Induction
Mathematical Induction It turns out that the most efficient solution to the Towers of Hanoi problem with n disks takes n 1 moves. If this isn t the formula you determined, make sure to check your data
More informationCS Communication Complexity: Applications and New Directions
CS 2429 - Communication Complexity: Applications and New Directions Lecturer: Toniann Pitassi 1 Introduction In this course we will define the basic two-party model of communication, as introduced in the
More informationLecture 10 Oct. 3, 2017
CS 388R: Randomized Algorithms Fall 2017 Lecture 10 Oct. 3, 2017 Prof. Eric Price Scribe: Jianwei Chen, Josh Vekhter NOTE: THESE NOTES HAVE NOT BEEN EDITED OR CHECKED FOR CORRECTNESS 1 Overview In the
More informationMathematical Induction
Mathematical Induction Let s motivate our discussion by considering an example first. What happens when we add the first n positive odd integers? The table below shows what results for the first few values
More informationLesson 21 Not So Dramatic Quadratics
STUDENT MANUAL ALGEBRA II / LESSON 21 Lesson 21 Not So Dramatic Quadratics Quadratic equations are probably one of the most popular types of equations that you ll see in algebra. A quadratic equation has
More informationLecture 7: Fingerprinting. David Woodruff Carnegie Mellon University
Lecture 7: Fingerprinting David Woodruff Carnegie Mellon University How to Pick a Random Prime How to pick a random prime in the range {1, 2,, M}? How to pick a random integer X? Pick a uniformly random
More informationSums of Squares (FNS 195-S) Fall 2014
Sums of Squares (FNS 195-S) Fall 014 Record of What We Did Drew Armstrong Vectors When we tried to apply Cartesian coordinates in 3 dimensions we ran into some difficulty tryiing to describe lines and
More informationHAMPSHIRE COLLEGE: YOU CAN T GET THERE FROM HERE : WHY YOU CAN T TRISECT AN ANGLE, DOUBLE THE CUBE, OR SQUARE THE CIRCLE. Contents. 1.
HAMPSHIRE COLLEGE: YOU CAN T GET THERE FROM HERE : WHY YOU CAN T TRISECT AN ANGLE, DOUBLE THE CUBE, OR SQUARE THE CIRCLE RAVI VAKIL Contents 1. Introduction 1 2. Impossibility proofs, and 2 2 3. Real fields
More information5.2 Infinite Series Brian E. Veitch
5. Infinite Series Since many quantities show up that cannot be computed exactly, we need some way of representing it (or approximating it). One way is to sum an infinite series. Recall that a n is the
More informationMATH 3012 N Homework Chapter 9
MATH 01 N Homework Chapter 9 February, 017 The recurrence r n+ = r n+1 + r n can be expressed with advancement operators as A A )r n = 0 The quadratic can then be factored using the quadratic formula,
More informationQuiz 07a. Integers Modulo 12
MA 3260 Lecture 07 - Binary Operations Friday, September 28, 2018. Objectives: Continue with binary operations. Quiz 07a We have a machine that is set to run for x hours, turn itself off for 3 hours, and
More informationWhere do pseudo-random generators come from?
Computer Science 2426F Fall, 2018 St. George Campus University of Toronto Notes #6 (for Lecture 9) Where do pseudo-random generators come from? Later we will define One-way Functions: functions that are
More informationMITOCW MIT18_02SCF10Rec_61_300k
MITOCW MIT18_02SCF10Rec_61_300k JOEL LEWIS: Hi. Welcome back to recitation. In lecture, you've been learning about the divergence theorem, also known as Gauss's theorem, and flux, and all that good stuff.
More informationTheoretical Cryptography, Lecture 10
Theoretical Cryptography, Lecture 0 Instructor: Manuel Blum Scribe: Ryan Williams Feb 20, 2006 Introduction Today we will look at: The String Equality problem, revisited What does a random permutation
More informationGenerating Functions
8.30 lecture notes March, 0 Generating Functions Lecturer: Michel Goemans We are going to discuss enumeration problems, and how to solve them using a powerful tool: generating functions. What is an enumeration
More informationPolynomial Operations
Chapter 7 Polynomial Operations Sec. 1 Polynomials; Add/Subtract Polynomials sounds tough enough. But, if you look at it close enough you ll notice that students have worked with polynomial expressions
More information15-451/651: Design & Analysis of Algorithms September 13, 2018 Lecture #6: Streaming Algorithms last changed: August 30, 2018
15-451/651: Design & Analysis of Algorithms September 13, 2018 Lecture #6: Streaming Algorithms last changed: August 30, 2018 Today we ll talk about a topic that is both very old (as far as computer science
More information2 A 3-Person Discrete Envy-Free Protocol
Envy-Free Discrete Protocols Exposition by William Gasarch 1 Introduction Whenever we say something like Alice has a piece worth α we mean it s worth α TO HER. The term biggest piece means most valuable
More informationCSC 5170: Theory of Computational Complexity Lecture 4 The Chinese University of Hong Kong 1 February 2010
CSC 5170: Theory of Computational Complexity Lecture 4 The Chinese University of Hong Kong 1 February 2010 Computational complexity studies the amount of resources necessary to perform given computations.
More informationP-adic numbers. Rich Schwartz. October 24, 2014
P-adic numbers Rich Schwartz October 24, 2014 1 The Arithmetic of Remainders In class we have talked a fair amount about doing arithmetic with remainders and now I m going to explain what it means in a
More informationWelcome to Math Video Lessons. Stanley Ocken. Department of Mathematics The City College of New York Fall 2013
Welcome to Math 19500 Video Lessons Prof. Department of Mathematics The City College of New York Fall 2013 An important feature of the following Beamer slide presentations is that you, the reader, move
More informationInverses and Elementary Matrices
Inverses and Elementary Matrices 1-12-2013 Matrix inversion gives a method for solving some systems of equations Suppose a 11 x 1 +a 12 x 2 + +a 1n x n = b 1 a 21 x 1 +a 22 x 2 + +a 2n x n = b 2 a n1 x
More informationCOLLEGE ALGEBRA. Paul Dawkins
COLLEGE ALGEBRA Paul Dawkins Table of Contents Preface... iii Outline... iv Preliminaries... 7 Introduction... 7 Integer Exponents... 8 Rational Exponents...5 Radicals... Polynomials...30 Factoring Polynomials...36
More informationTalk Science Professional Development
Talk Science Professional Development Transcript for Grade 5 Scientist Case: The Water to Ice Investigations 1. The Water to Ice Investigations Through the Eyes of a Scientist We met Dr. Hugh Gallagher
More informationMath101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2:
Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2: 03 17 08 3 All about lines 3.1 The Rectangular Coordinate System Know how to plot points in the rectangular coordinate system. Know the
More informationRecitation 4: Quantifiers and basic proofs
Math 299 Recitation 4: Quantifiers and basic proofs 1. Quantifiers in sentences are one of the linguistic constructs that are hard for computers to handle in general. Here is a nice pair of example dialogues:
More informationCHAPTER 1. Review of Algebra
CHAPTER 1 Review of Algebra Much of the material in this chapter is revision from GCSE maths (although some of the exercises are harder). Some of it particularly the work on logarithms may be new if you
More informationComputing the Entropy of a Stream
Computing the Entropy of a Stream To appear in SODA 2007 Graham Cormode graham@research.att.com Amit Chakrabarti Dartmouth College Andrew McGregor U. Penn / UCSD Outline Introduction Entropy Upper Bound
More informationLecture 6: Finite Fields
CCS Discrete Math I Professor: Padraic Bartlett Lecture 6: Finite Fields Week 6 UCSB 2014 It ain t what they call you, it s what you answer to. W. C. Fields 1 Fields In the next two weeks, we re going
More informationbase 2 4 The EXPONENT tells you how many times to write the base as a factor. Evaluate the following expressions in standard notation.
EXPONENTIALS Exponential is a number written with an exponent. The rules for exponents make computing with very large or very small numbers easier. Students will come across exponentials in geometric sequences
More informationGalois Theory Overview/Example Part 1: Extension Fields. Overview:
Galois Theory Overview/Example Part 1: Extension Fields I ll start by outlining very generally the way Galois theory works. Then, I will work through an example that will illustrate the Fundamental Theorem
More informationComplex Numbers in Trigonometry
Complex Numbers in Trigonometry Page 1 Complex Numbers in Trigonometry Author Vincent Huang The final version- with better LaTeX, more contest problems, and some new topics. Credit to Binomial-Theorem
More informationGreat Theoretical Ideas in Computer Science. Lecture 7: Introduction to Computational Complexity
15-251 Great Theoretical Ideas in Computer Science Lecture 7: Introduction to Computational Complexity September 20th, 2016 What have we done so far? What will we do next? What have we done so far? > Introduction
More informationExploring Graphs of Polynomial Functions
Name Period Exploring Graphs of Polynomial Functions Instructions: You will be responsible for completing this packet by the end of the period. You will have to read instructions for this activity. Please
More informationBig-oh stuff. You should know this definition by heart and be able to give it,
Big-oh stuff Definition. if asked. You should know this definition by heart and be able to give it, Let f and g both be functions from R + to R +. Then f is O(g) (pronounced big-oh ) if and only if there
More information1 Randomized Computation
CS 6743 Lecture 17 1 Fall 2007 1 Randomized Computation Why is randomness useful? Imagine you have a stack of bank notes, with very few counterfeit ones. You want to choose a genuine bank note to pay at
More informationNo Solution Equations Let s look at the following equation: 2 +3=2 +7
5.4 Solving Equations with Infinite or No Solutions So far we have looked at equations where there is exactly one solution. It is possible to have more than solution in other types of equations that are
More informationPYTHAGOREAN TRIPLES KEITH CONRAD
PYTHAGOREAN TRIPLES KEITH CONRAD 1. Introduction A Pythagorean triple is a triple of positive integers (a, b, c) where a + b = c. Examples include (3, 4, 5), (5, 1, 13), and (8, 15, 17). Below is an ancient
More informationMath Lecture 3 Notes
Math 1010 - Lecture 3 Notes Dylan Zwick Fall 2009 1 Operations with Real Numbers In our last lecture we covered some basic operations with real numbers like addition, subtraction and multiplication. This
More informationWORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}
WORKSHEET ON NUMBERS, MATH 215 FALL 18(WHYTE) We start our study of numbers with the integers: Z = {..., 2, 1, 0, 1, 2, 3,... } and their subset of natural numbers: N = {1, 2, 3,...} For now we will not
More information6: Polynomials and Polynomial Functions
6: Polynomials and Polynomial Functions 6-1: Polynomial Functions Okay you know what a variable is A term is a product of constants and powers of variables (for example: x ; 5xy ) For now, let's restrict
More informationSquaring and Unsquaring
PROBLEM STRINGS LESSON 8.1 Squaring and Unsquaring At a Glance (6 6)* ( 6 6)* (1 1)* ( 1 1)* = 64 17 = 64 + 15 = 64 ( + 3) = 49 ( 7) = 5 ( + ) + 1= 8 *optional problems Objectives The goal of this string
More informationErrata List for Rational Points on Elliptic Curves by Joseph H. Silverman and John Tate Version 1.3a July 5, 1994; revised by JEC, 1998
Errata List for Rational Points on Elliptic Curves by Joseph H. Silverman and John Tate Version 1.3a July 5, 1994; revised by JEC, 1998 The authors would like to thank the following individuals for their
More informationWriting proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction
Writing proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction written by Sarah Peluse, revised by Evangelie Zachos and Lisa Sauermann September 27, 2016 1 Introduction
More informationLanguages, regular languages, finite automata
Notes on Computer Theory Last updated: January, 2018 Languages, regular languages, finite automata Content largely taken from Richards [1] and Sipser [2] 1 Languages An alphabet is a finite set of characters,
More informationDescriptive Statistics (And a little bit on rounding and significant digits)
Descriptive Statistics (And a little bit on rounding and significant digits) Now that we know what our data look like, we d like to be able to describe it numerically. In other words, how can we represent
More informationMath (P)Review Part I:
Lecture 1: Math (P)Review Part I: Linear Algebra Computer Graphics CMU 15-462/15-662, Fall 2017 Homework 0.0 (Due Monday!) Exercises will be a bit harder / more rigorous than what you will do for the rest
More informationDEVELOPING MATH INTUITION
C HAPTER 1 DEVELOPING MATH INTUITION Our initial exposure to an idea shapes our intuition. And our intuition impacts how much we enjoy a subject. What do I mean? Suppose we want to define a cat : Caveman
More informationMath-3. Lesson 3-1 Finding Zeroes of NOT nice 3rd Degree Polynomials
Math- Lesson - Finding Zeroes of NOT nice rd Degree Polynomials f ( ) 4 5 8 Is this one of the nice rd degree polynomials? a) Sum or difference of two cubes: y 8 5 y 7 b) rd degree with no constant term.
More informationEquations and Colorings: Rado s Theorem Exposition by William Gasarch
1 Introduction Equations Colorings: Rado s Theorem Exposition by William Gasarch Everything in this paper was proven by Rado [2] (but see also [1]) Do you think the following is TRUE or FALSE? For any
More informationCalculus II. Calculus II tends to be a very difficult course for many students. There are many reasons for this.
Preface Here are my online notes for my Calculus II course that I teach here at Lamar University. Despite the fact that these are my class notes they should be accessible to anyone wanting to learn Calculus
More informationLecture 2 September 4, 2014
CS 224: Advanced Algorithms Fall 2014 Prof. Jelani Nelson Lecture 2 September 4, 2014 Scribe: David Liu 1 Overview In the last lecture we introduced the word RAM model and covered veb trees to solve the
More informationMATH 243E Test #3 Solutions
MATH 4E Test # Solutions () Find a recurrence relation for the number of bit strings of length n that contain a pair of consecutive 0s. You do not need to solve this recurrence relation. (Hint: Consider
More informationMost General computer?
Turing Machines Most General computer? DFAs are simple model of computation. Accept only the regular languages. Is there a kind of computer that can accept any language, or compute any function? Recall
More informationIntro to Maths for CS: Powers and Surds
Intro to Maths for CS: Powers and Surds Joshua Knowles School of Computer Science, University of Birmingham Term 1, 2015-16 (Slides by John Barnden) Textbook Parts (7th Ed) Programme F.1, section on Powers
More informationTHE DIVISION THEOREM IN Z AND R[T ]
THE DIVISION THEOREM IN Z AND R[T ] KEITH CONRAD 1. Introduction In both Z and R[T ], we can carry out a process of division with remainder. Theorem 1.1. For any integers a and b, with b nonzero, there
More informationMA1131 Lecture 15 (2 & 3/12/2010) 77. dx dx v + udv dx. (uv) = v du dx dx + dx dx dx
MA3 Lecture 5 ( & 3//00) 77 0.3. Integration by parts If we integrate both sides of the proct rule we get d (uv) dx = dx or uv = d (uv) = dx dx v + udv dx v dx dx + v dx dx + u dv dx dx u dv dx dx This
More informationSingle-Predicate Derivations
Single-Predicate Derivations Let s do some derivations. Start with an easy one: Practice #1: Fb, Gb Ⱶ (ꓱx)(Fx Gx) Imagine that I have a frog named Bob. The above inference might go like this: Bob is friendly.
More informationConfidence intervals
Confidence intervals We now want to take what we ve learned about sampling distributions and standard errors and construct confidence intervals. What are confidence intervals? Simply an interval for which
More informationMATH CSE20 Homework 5 Due Monday November 4
MATH CSE20 Homework 5 Due Monday November 4 Assigned reading: NT Section 1 (1) Prove the statement if true, otherwise find a counterexample. (a) For all natural numbers x and y, x + y is odd if one of
More informationRandomness. What next?
Randomness What next? Random Walk Attribution These slides were prepared for the New Jersey Governor s School course The Math Behind the Machine taught in the summer of 2012 by Grant Schoenebeck Large
More informationExample. How to Guess What to Prove
How to Guess What to Prove Example Sometimes formulating P (n) is straightforward; sometimes it s not. This is what to do: Compute the result in some specific cases Conjecture a generalization based on
More informationProblem 1. k zero bits. n bits. Block Cipher. Block Cipher. Block Cipher. Block Cipher. removed
Problem 1 n bits k zero bits IV Block Block Block Block removed January 27, 2011 Practical Aspects of Modern Cryptography 2 Problem 1 IV Inverse Inverse Inverse Inverse Missing bits January 27, 2011 Practical
More informationMath 3361-Modern Algebra Lecture 08 9/26/ Cardinality
Math 336-Modern Algebra Lecture 08 9/26/4. Cardinality I started talking about cardinality last time, and you did some stuff with it in the Homework, so let s continue. I said that two sets have the same
More informationNatural deduction for truth-functional logic
Natural deduction for truth-functional logic Phil 160 - Boston University Why natural deduction? After all, we just found this nice method of truth-tables, which can be used to determine the validity or
More informationDisproof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Disproof Fall / 16
Disproof MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Disproof Fall 2014 1 / 16 Outline 1 s 2 Disproving Universal Statements: Counterexamples 3 Disproving Existence
More informationA Quick Algebra Review
1. Simplifying Epressions. Solving Equations 3. Problem Solving 4. Inequalities 5. Absolute Values 6. Linear Equations 7. Systems of Equations 8. Laws of Eponents 9. Quadratics 10. Rationals 11. Radicals
More informationLecture 20: conp and Friends, Oracles in Complexity Theory
6.045 Lecture 20: conp and Friends, Oracles in Complexity Theory 1 Definition: conp = { L L NP } What does a conp computation look like? In NP algorithms, we can use a guess instruction in pseudocode:
More information1 Maintaining a Dictionary
15-451/651: Design & Analysis of Algorithms February 1, 2016 Lecture #7: Hashing last changed: January 29, 2016 Hashing is a great practical tool, with an interesting and subtle theory too. In addition
More informationEigenvalues & Eigenvectors
Eigenvalues & Eigenvectors Page 1 Eigenvalues are a very important concept in linear algebra, and one that comes up in other mathematics courses as well. The word eigen is German for inherent or characteristic,
More informationQUADRATICS 3.2 Breaking Symmetry: Factoring
QUADRATICS 3. Breaking Symmetry: Factoring James Tanton SETTING THE SCENE Recall that we started our story of symmetry with a rectangle of area 36. Then you would say that the picture is wrong and that
More informationCOLLEGE ALGEBRA. Solving Equations and Inequalities. Paul Dawkins
COLLEGE ALGEBRA Solving Equations and Inequalities Paul Dawkins Table of Contents Preface... ii Solving Equations and Inequalities... 3 Introduction... 3 s and Sets... 4 Linear Equations... 8 Application
More informationNote-Taking Guides. How to use these documents for success
1 Note-Taking Guides How to use these documents for success Print all the pages for the module. Open the first lesson on the computer. Fill in the guide as you read. Do the practice problems on notebook
More informationQuadratic Equations Part I
Quadratic Equations Part I Before proceeding with this section we should note that the topic of solving quadratic equations will be covered in two sections. This is done for the benefit of those viewing
More informationPEANO AXIOMS FOR THE NATURAL NUMBERS AND PROOFS BY INDUCTION. The Peano axioms
PEANO AXIOMS FOR THE NATURAL NUMBERS AND PROOFS BY INDUCTION The Peano axioms The following are the axioms for the natural numbers N. You might think of N as the set of integers {0, 1, 2,...}, but it turns
More informationSection 3.7: Solving Radical Equations
Objective: Solve equations with radicals and check for extraneous solutions. In this section, we solve equations that have roots in the problem. As you might expect, to clear a root we can raise both sides
More informationNotice that we are switching from the subtraction to adding the negative of the following term
MTH95 Day 6 Sections 5.3 & 7.1 Section 5.3 Polynomials and Polynomial Functions Definitions: Term Constant Factor Coefficient Polynomial Monomial Binomial Trinomial Degree of a term Degree of a Polynomial
More informationIntegration of Rational Functions by Partial Fractions
Title Integration of Rational Functions by MATH 1700 MATH 1700 1 / 11 Readings Readings Readings: Section 7.4 MATH 1700 2 / 11 Rational functions A rational function is one of the form where P and Q are
More information