CS161 Handout 05 Summer 2013 July 10, 2013 Mathematical Terms and Identities

Similar documents
CS166 Handout 02 Spring 2018 April 3, 2018 Mathematical Terms and Identities

It is always the case that unions, intersections, complements, and set differences are preserved by the inverse image of a function.

Mathematical Foundation. CSE 6331 Algorithms Steve Lai

CS 330 Discussion - Probability

Lecture 2 February 8, 2016

Axioms of Measure Theory

CEE 522 Autumn Uncertainty Concepts for Geotechnical Engineering

Chapter 0. Review of set theory. 0.1 Sets

Lecture 10: Mathematical Preliminaries

Math 2784 (or 2794W) University of Connecticut

The Growth of Functions. Theoretical Supplement

TEACHER CERTIFICATION STUDY GUIDE

Convergence of random variables. (telegram style notes) P.J.C. Spreij

Ch3. Asymptotic Notation

n=1 a n is the sequence (s n ) n 1 n=1 a n converges to s. We write a n = s, n=1 n=1 a n

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22

Lecture Notes for CS 313H, Fall 2011

Curve Sketching Handout #5 Topic Interpretation Rational Functions

Lecture Notes for Analysis Class

Random Variables, Sampling and Estimation

Unit 6: Sequences and Series

A Proof of Birkhoff s Ergodic Theorem

Basic Sets. Functions. MTH299 - Examples. Example 1. Let S = {1, {2, 3}, 4}. Indicate whether each statement is true or false. (a) S = 4. (e) 2 S.

1. By using truth tables prove that, for all statements P and Q, the statement

Infinite Sequences and Series

Analysis of Algorithms. Introduction. Contents

Let us give one more example of MLE. Example 3. The uniform distribution U[0, θ] on the interval [0, θ] has p.d.f.

MAS111 Convergence and Continuity

Topic 1 2: Sequences and Series. A sequence is an ordered list of numbers, e.g. 1, 2, 4, 8, 16, or

NANYANG TECHNOLOGICAL UNIVERSITY SYLLABUS FOR ENTRANCE EXAMINATION FOR INTERNATIONAL STUDENTS AO-LEVEL MATHEMATICS

Chapter 5. Inequalities. 5.1 The Markov and Chebyshev inequalities

HOMEWORK 2 SOLUTIONS

FUNDAMENTALS OF REAL ANALYSIS by

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

Lecture 12: November 13, 2018

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 15

On Random Line Segments in the Unit Square

10.1 Sequences. n term. We will deal a. a n or a n n. ( 1) n ( 1) n 1 2 ( 1) a =, 0 0,,,,, ln n. n an 2. n term.

An Introduction to Randomized Algorithms

Review Problems 1. ICME and MS&E Refresher Course September 19, 2011 B = C = AB = A = A 2 = A 3... C 2 = C 3 = =

2.4 Sequences, Sequences of Sets

Randomized Algorithms I, Spring 2018, Department of Computer Science, University of Helsinki Homework 1: Solutions (Discussed January 25, 2018)

Definition An infinite sequence of numbers is an ordered set of real numbers.

In number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play.

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3

Math 61CM - Solutions to homework 3

Wrap of Number Theory & Midterm Review. Recall: Fundamental Theorem of Arithmetic

Discrete Mathematics for CS Spring 2005 Clancy/Wagner Notes 21. Some Important Distributions

Analysis of Algorithms. Growth of Functions

Algorithm Analysis. Algorithms that are equally correct can vary in their utilization of computational resources

Problem Set 2 Solutions

PUTNAM TRAINING INEQUALITIES

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

COMP26120: More on the Complexity of Recursive Programs (2018/19) Lucas Cordeiro

Math 113 Exam 3 Practice

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +

Definition 4.2. (a) A sequence {x n } in a Banach space X is a basis for X if. unique scalars a n (x) such that x = n. a n (x) x n. (4.

Skip Lists. Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015 S 3 S S 1

Basics of Probability Theory (for Theory of Computation courses)

A recurrence equation is just a recursive function definition. It defines a function at one input in terms of its value on smaller inputs.

ENGI Series Page 6-01

It is often useful to approximate complicated functions using simpler ones. We consider the task of approximating a function by a polynomial.

STAT Homework 1 - Solutions

Exercises 1 Sets and functions

Design and Analysis of Algorithms

CHAPTER 5. Theory and Solution Using Matrix Techniques

PRACTICE FINAL/STUDY GUIDE SOLUTIONS

Abstract. Keywords: conjecture; divisor function; divisor summatory function; prime numbers; Dirichlet's divisor problem

If a subset E of R contains no open interval, is it of zero measure? For instance, is the set of irrationals in [0, 1] is of measure zero?

Lecture 2: April 3, 2013

5 Birkhoff s Ergodic Theorem

Find a formula for the exponential function whose graph is given , 1 2,16 1, 6

Sigma notation. 2.1 Introduction

Trial division, Pollard s p 1, Pollard s ρ, and Fermat s method. Christopher Koch 1. April 8, 2014

MA131 - Analysis 1. Workbook 3 Sequences II

Zeros of Polynomials

As stated by Laplace, Probability is common sense reduced to calculation.

CHAPTER 1 SEQUENCES AND INFINITE SERIES

EE 4TM4: Digital Communications II Probability Theory

MAT1026 Calculus II Basic Convergence Tests for Series

SUMMARY OF SEQUENCES AND SERIES

4.1 Sigma Notation and Riemann Sums

} is said to be a Cauchy sequence provided the following condition is true.

4.1 SIGMA NOTATION AND RIEMANN SUMS

MATHEMATICS. The assessment objectives of the Compulsory Part are to test the candidates :

CS 270 Algorithms. Oliver Kullmann. Growth of Functions. Divide-and- Conquer Min-Max- Problem. Tutorial. Reading from CLRS for week 2

Sequences. A Sequence is a list of numbers written in order.

1 Lecture 2: Sequence, Series and power series (8/14/2012)

Notation List. For Cambridge International Mathematics Qualifications. For use from 2020

INEQUALITIES BJORN POONEN

CALCULUS BASIC SUMMER REVIEW

This section is optional.

Math 525: Lecture 5. January 18, 2018

Quick Review of Probability

Lecture 6: Coupon Collector s problem

Topic 8: Expected Values

Quick Review of Probability

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Review for Test 3 Math 1552, Integral Calculus Sections 8.8,

Transcription:

CS161 Hadout 05 Summer 2013 July 10, 2013 Mathematical Terms ad Idetities Thaks to Ady Nguye ad Julie Tibshirai for their advice o this hadout. This hadout covers mathematical otatio ad idetities that may be useful over the course of CS161. Feel free to refer to this hadout for referece o a variety of topics. If you have ay suggestios o how to improve this hadout, please let us kow! Set Theory The set N cosists of all atural umbers. That is, N = { 0, 1, 2, 3, } The set Z cosists of all itegers: Z = {, -3, -2, -1, 0, 1, 2, 3, } The set R cosists of all real umbers. The set Ø is the empty set cosistig of o elemets. If x belogs to set S, we write x S. If x does ot belog to S, we write x S. The uio of two sets S ₁ ad S ₂ is deoted S ₁ S ₂. Their itersectio is deoted ece is deoted S ₁ S ₂ or S ₁ \ S ₂, ad symmetric differece is deoted S ₁ Δ S ₂. If S ₁ is a subset of S ₂, we write S ₁ S ₂, differ- S ₁ S ₂. If S ₁ is a strict subset of S ₂, we deote this by S ₁ S ₂. The power set of a set S (deoted ( S)) is the set of all subsets of S. The Cartesia product of two sets S ₁ ad First-Order Logic S ₂ is the set S ₁ S ₂ = { ( The egatios of the basic propositioal coectives are as follows: (p (p ( p) p q) p q q) p q (p q) p q (p q) p q The egatios of the ad quatifiers are as follows: The statemet iff abbreviates if ad oly if. x. φ x. φ x. φ x. φ a, b) a S ₁ b S ₂ }

2 / 5 Summatios The sum of the first atural umbers (0 + 1 + 2 + + 1) is give by i= () 2 The sum of the first terms of the arithmetic series a, a + b, a + 2b,, a + ( 1)b is (a+i b)=a i =0 b () 1+b i=a+ 2 The sum of the first terms of the geometric series 1, r, r 2, r 3,, r -1 is give by As a useful special case, whe r = 2, we have r i = r 1 r 1 2 i =2 1 I the case that r < 1, the sum of all ifiite terms of the geometric series is give by r i = 1 1 r The followig summatio ofte arises i the aalysis of algorithms: whe r < 1: i r i = r (1 r) 2 Iequalities The followig idetities are useful for maipulatig iequalities: If A B ad B C, the A C If A B ad C 0, the CA CB If A B ad C 0, the CA CB If A B ad C D, the A + C B + D If A, B Z, the A B iff A < B + 1 If f is ay mootoically icreasig fuctio ad A B, the f(a) f(b) If f is ay mootoically decreasig fuctio ad A B, the f(a) f(b) The followig iequalities are ofte useful i algorithmic aalysis: e x 1 + x x 1 x 2... x x 1 + x 2 +...+x

3 / 5 Floors ad Ceiligs The floor fuctio x returs the largest iteger less tha or equal to x. The ceilig fuctio x returs the smallest iteger greater tha or equal to x. These fuctios obey the rules x x < x + 1 ad x 1 < x x ad x Z x Z Additioally, x + = x + ad x + = x + for ay Z. Asymptotic Notatio Let f, g : N N. The f() = O(g()) iff ₀ N. c R. N. ( ₀ f() cg()) f() = Ω(g()) iff ₀ N. c > 0 R. N. ( ₀ f() cg()) f() = Θ(g()) iff f() = O(g()) f() = Ω(g()) To show that f ad g are ot asymptotically related, you ca use these equivalet defiitios: f() O(g()) iff ₀ N. c R. N. ( ₀ f() > cg()) f() Ω(g()) iff ₀ N. c > 0 R. N. ( ₀ f() < cg()) The followig rules apply for O otatio: f() Θ(g()) iff f() O(g()) f() Ω(g()) If f() = O(g()) ad g() = O(h()), the f() = O(h()) (also Ω, Θ, o, ω) If f ₁( ) = O(g()) ad f ₂( ) = O(g()), the f ₁( ) + f ₂( ) = O(g()) (also Ω, Θ, o, ω) If f ₁( ) = O(g ₁( )) ad f ₂( ) = O(g ₂( )), the f ₁( )f ₂( ) = O(g ₁( )g ₂( )) (also Ω, Θ, o, ω) We ca use o ad ω otatios to deote strict bouds o growth rates: f ()=o(g ()) iff lim f () =0 f ()=ω(g ()) iff lim g () Polyomials, expoets, ad logarithms are related as follows: f () g() = Ay polyomial of degree k with positive leadig coefficiet is Θ( k ) log b = o( k ) for ay k > 0 k = o(b ) for ay b > 1 b = o(c ) for ay 1 < b < c I a graph, deotes the umber of odes ( V ) ad m deotes the umber of edges ( E ). I ay graph, m = O( 2 ). I a dese graph, m = Θ( 2 ); a sparse graph is oe where m = o( 2 ). A graph algorithm rus i liear time if it rus i time O(m + ).

4 / 5 Logarithms ad Expoets Logarithms ad expoets are iverses of oe aother: b log b x =log b b x =x The chage-of-base formula for logarithms states that log b a= log c a log c b Sums ad differeces of logarithms traslate ito logarithms of products ad quotiets: The power rule for logarithms states log b xy=log b x+log b y log b ( x/ y)=log b x log b y I some cases, expoets may be iterchaged: log b x y = y log b x (a b ) c =a bc =(a c ) b We ca chage the base of a expoet usig the fact that logarithms ad expoets are iverses: Probability If E ₁ ad E₂ are mutually exclusive evets, the a c =b clog ba P(E₁) + P(E₂) = P(E₁ E₂) For ay evets E ₁, E ₂, E ₃,, icludig overlappig evets, the uio boud states that P ( i=1 E i) P ( E i ) i=1 The probability of E give F is deoted P(E F) ad is give by The chai rule for coditioal probability is P (E F )= P (E F ) P (F ) P(E ₙ Eₙ - ₁ E ₁) = P(E ₙ Eₙ - ₁ E ₁) P( Eₙ - ₁ Eₙ - ₂ E ₁) P(E ₁) Two evets E ₁ ad E ₂ are called idepedet iff P(E ₁ E ₂) = P(E ₁) P(E ₂) For ay evet E, the complemet of that evet (deoted E) represets the evet that E does ot occur. E ad E are mutually exclusive, ad P(E) + P(E) = 1

5 / 5 Expected Value The expected value of a discrete radom variable X is defied as E [ X ]= (i P ( X =i)) The expected value operator is liear: for ay a, b E[aX + b] = ae[x] + b R ad ay radom variable X: More geerally, if X ₁, X ₂, X ₃, Xₙ are ay radom variables, icludig depedet variables: E [ i =1 If X ad Y are idepedet radom variables, the X i ]= E[ X i ] i=1 E[XY] = E[X]E[Y] Useful Probability Equalities ad Iequalities A idicator radom variable is a radom variable X where For ay idicator variable, E[X] = P(F). X ={ 1 if evet F occurs 0 otherwise Markov's iequality states that for ay radom variable X ad costat c, that If X ₁, X ₂,, Xₙ are radom variables, the P ( X c E[ X ]) 1 c P (max{ X 1, X 2,..., X } k)=p ( X 1 k X 2 k... X k) P (mi { X 1, X 2,..., X } k)=p ( X 1 k X 2 k... X k) O expectatio, repeatedly flippig a biased coi that comes up heads with probability p requires 1 / p trials before the coi will come up heads. Harmoic Numbers The th harmoic umber, deoted Hₙ, is give by H = i =1 The harmoic umbers are close i value to l : for ay 1, we have Ad so H ₙ = Θ(log ) 1 i l ( + 1) Hₙ l + 1