Design & Analysis of Algorithms COMP 482 / ELEC 420 John Greiner.

Slides:



Advertisements
Similar presentations
한양대학교 정보보호 및 알고리즘 연구실 이재준 담당교수님 : 박희진 교수님
Advertisements

Introduction to Algorithms
BY Lecturer: Aisha Dawood. The notations we use to describe the asymptotic running time of an algorithm are defined in terms of functions whose domains.
Slide 1 Insert your own content. Slide 2 Insert your own content.
Combining Like Terms. Only combine terms that are exactly the same!! Whats the same mean? –If numbers have a variable, then you can combine only ones.
October 17, 2005 Copyright© Erik D. Demaine and Charles E. Leiserson L2.1 Introduction to Algorithms 6.046J/18.401J LECTURE9 Randomly built binary.
Introduction to Algorithms 6.046J/18.401J
Introduction to Algorithms 6.046J/18.401J
0 - 0.
Computational Complexity, Choosing Data Structures Svetlin Nakov Telerik Corporation
Recurrences : 1 Chapter 3. Growth of function Chapter 4. Recurrences.
10.4 The Divergence and Integral Test Math 6B Calculus II.
§ 4.4 The Natural Logarithm Function.
5.9 + = 10 a)3.6 b)4.1 c)5.3 Question 1: Good Answer!! Well Done!! = 10 Question 1:
Logarithmic Functions
Logarithmic Equations
Algebra II Honors—Day 69. Warmup Solve and check: Find the next four terms of this arithmetic sequence: 207, 194, 181,... Find the indicated term of this.
Limits (Algebraic) Calculus Fall, What can we do with limits?
Addition 1’s to 20.
Test B, 100 Subtraction Facts
Bottoms Up Factoring. Start with the X-box 3-9 Product Sum
Lecture 16 Complexity of Functions CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Master Theorem Chen Dan Dong Feb. 19, 2013
Analysis of Algorithms
Logarithmic Equations Unknown Exponents Unknown Number Solving Logarithmic Equations Natural Logarithms.
25 June 2015Comp 122, Spring 2004 Asymptotic Notation, Review of Functions & Summations.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2001 Lectures 2, 3 Chapters 1, 2 Fri. 9/7/01 – Mon. 9/10/01.
Design & Analysis of Algorithms COMP 482 / ELEC 420 John Greiner.
1 Logarithms Definition If y = a x then x = log a y For log 10 x use the log button. For log e x use the ln button.
7.2The Natural Logarithmic and Exponential Function Math 6B Calculus II.
Aim: How do we solve exponential and logarithmic equations ? Do Now: Solve each equation: a. log 10 x 2 = 6 b. ln x = –3 Homework: Handout.
Asymptotic Notations Iterative Algorithms and their analysis
CS 3343: Analysis of Algorithms
A summary of the algebra concepts. Sequences and Series Some sequences are arithmetic because there is a common difference between terms. We call the.
Math 71B 11.1 – Sequences and Summation Notation 1.
Mathematical Preliminaries The Factorial Function Permutations Logarithms Summations Recurrence Relations Algorithm Analysis.
CMPT 438 Algorithms Chapter 3 Asymptotic Notations.
Algorithms Merge Sort Solving Recurrences The Master Theorem.
Analysis of Algorithms: Methods and Examples CSE 2320 – Algorithms and Data Structures Vassilis Athitsos University of Texas at Arlington 1.
Tonga Institute of Higher Education Design and Analysis of Algorithms IT 254 Lecture 2: Mathematical Foundations.
Arithmetic and Geometric Series: Lesson 43. LESSON OBJECTIVE: 1.Find sums of arithmetic and geometric series. 2.Use Sigma Notation. 3.Find specific terms.
1 o-notation For a given function g(n), we denote by o(g(n)) the set of functions: o(g(n)) = {f(n): for any positive constant c > 0, there exists a constant.
Arithmetic Series 19 May Summations Summation – the sum of the terms in a sequence {2, 4, 6, 8} → = 20 Represented by a capital Sigma.
NATURAL LOGARITHMS. The Constant: e e is a constant very similar to π. Π = … e = … Because it is a fixed number we can find e 2.
Design & Analysis of Algorithms COMP 482 / ELEC 420 John Greiner
12.8 Exponential and Logarithmic Equations and Problem Solving Math, Statistics & Physics 1.
Copyright © 2011 Pearson, Inc. 9.5 Series Goals: Use sigma notation to find the finite sums of terms in arithmetic and geometric sequences. Find sums of.
Logarithmic Functions. Examples Properties Examples.
LOGARITHMIC AND EXPONENTIAL EQUATIONS LOGARITHMIC AND EXPONENTIAL EQUATIONS SECTION 4.6.
Asymptotic Complexity
Introduction to Algorithms: Asymptotic Notation
The sum of the infinite and finite geometric sequence
CS 3343: Analysis of Algorithms
The symbol for summation is the Greek letter Sigma, S.
Accel PRecalc Unit #4: Sequences & Series Lesson #3: Finite Geometric Sequences and Series
Packet #15 Exponential and Logarithmic Equations
Finite Differences.
Sigma Notation.
The Natural Logarithmic Function: Integration (Section 5-2)
CS 3343: Analysis of Algorithms
Should know some common ones:
Advanced Analysis of Algorithms
4.3 – Differentiation of Exponential and Logarithmic Functions
Quiz 1, Monday 1/28/19 Chapters 1,2 and 3 HW assignments 1-5.
9.5 Series.
DAY 32 AGENDA: Back on Track!! This class registers at 9:55.
Advanced Analysis of Algorithms
Series.
Exponential functions
Presentation transcript:

Design & Analysis of Algorithms COMP 482 / ELEC 420 John Greiner

Math Background: Review & Beyond 1.Asymptotic notation 2.Math used in asymptotics 3.Recurrences 4.Probabilistic analysis 2 To do: [CLRS] A, B, 3.2 #1

Comparisons Some useful algebra:a<b, c<d implies… -b < -a 1/b < 1/a– Unless a,b have different signs! a+c < b+c ac 0 a+c b-d ! a n 0 3

Floor & Ceilings 4 a>0 integer a integer a>0, b 1

Logarithm Notation lg n = log 2 nln n = log e n lg k n = (lg n) k lg lg n = lg (lg n) lg n + k = (lg n) + k lg (0) n = nlg (i+1) n = lg lg (i) n lg* n = min {i 0 | lg (i) n 1} How many times can you take the logarithm before its 1? 5

Exponentials & Logarithms 6 a>0 O(log a x) = O(log b x) = O(log x) x=a c=b

Summations 7 Arithmetic ? Harmonic ? if |x| < 1 ? Geometric if x 1 ? Telescoping ? Solve as telescoping sum: ?

Summations – Combining with Calculus 8 if |x| < 1 Have: Differentiate:if |x| < 1Algebra:if |x| < 1

Bounding Summations: Upper Bound 9 ?

Bounding Summations: Lower Bound 10 ?

Logarithms 11

Bounding Summations by Integrals … 4 Recall: ln 1 = 0

Factorials n! = ω(2 n ) n! = o(n n ) log n! = Θ(n log n) 13

Permutations & Combinations 14 # of k-combinations of an n-set = # of permutations of an n-set = n!