Analysis of Algorithms: Methods and Examples CSE 2320 – Algorithms and Data Structures Vassilis Athitsos University of Texas at Arlington 1.

Slides:



Advertisements
Similar presentations
Solving Systems Using Substitution or Elimination Circuit #1 Solve each system using substitution or elimination.
Advertisements

Chapter 8 Vocabulary. Section 8.1 Vocabulary Sequences An infinite sequence is a function whose domain is the set of positive integers. The function.
The sum of the infinite and finite geometric sequence
Solving Systems of three equations with three variables Using substitution or elimination.
Special Sums Useful Series. 7/16/2013 Special Sums 2 Notation Manipulation Consider sequences { a n } and constant c Factoring Summation Notation ∑ k=1.
9.2 Arithmetic Sequence and Partial Sum Common Difference Finite Sum.
11.4 Geometric Sequences Geometric Sequences and Series geometric sequence If we start with a number, a 1, and repeatedly multiply it by some constant,
Sequences and Series A sequence is an ordered list of numbers where each term is obtained according to a fixed rule. A series, or progression, is a sum.
Homework Questions.
Arithmetic Sequences and Series
THE BEST CLASS EVER…ERRR…. PRE-CALCULUS Chapter 13 Final Exam Review.
NONLINEAR SYSTEMS, CONIC SECTIONS, SEQUENCES, AND SERIES College Algebra.
MAC 1140 Unit 4 Test Review. 1. Give the order of the following matrix:.
Math 71B 11.1 – Sequences and Summation Notation 1.
SEQUENCES AND SERIES Arithmetic. Definition A series is an indicated sum of the terms of a sequence.  Finite Sequence: 2, 6, 10, 14  Finite Series:2.
Notes 9.4 – Sequences and Series. I. Sequences A.) A progression of numbers in a pattern. 1.) FINITE – A set number of terms 2.) INFINITE – Continues.
Review of Sequences and Series.  Find the explicit and recursive formulas for the sequence:  -4, 1, 6, 11, 16, ….
Geometric Sequences and Series Section Objectives Recognize, write, and find nth terms of geometric sequences Find the nth partial sums of geometric.
Aim: Summation Notation Course: Alg. 2 & Trig. Do Now: Aim: What is this symbol It’s Greek to me! Find the sum of the geometric series.
13.6 Sigma Notation. Objectives : 1. Expand sequences from Sigma Notation 2. Express using Sigma Notation 3. Evaluate sums using Sigma Notation Vocabulary.
Notes Over 11.1 Sequences and Series A sequence is a set of consecutive integers. A finite sequence contains a last term Infinite sequences continue without.
Pg. 395/589 Homework Pg. 601#1, 3, 5, 7, 8, 21, 23, 26, 29, 33 #43x = 1#60see old notes #11, -1, 1, -1, …, -1#21, 3, 5, 7, …, 19 #32, 3/2, 4/3, 5/4, …,
Sequences Math 4 MM4A9: Students will use sequences and series.
Warm up 1. Find the sum of : 2. Find the tenth term of the sequence if an = n2 +1: =
Sequences & Series Section 13.1 & Sequences A sequence is an ordered list of numbers, called terms. The terms are often arranged in a pattern.
Arithmetic Series 19 May Summations Summation – the sum of the terms in a sequence {2, 4, 6, 8} → = 20 Represented by a capital Sigma.
Example Solution For each geometric sequence, find the common ratio. a)  2,  12,  72,  432,... b) 50, 10, 2, 0.4, 0.08,... SequenceCommon Ratio.
8.3 Geometric Sequences and Series Objectives: -Students will recognize, write, and find the nth terms of geometric sequences. -Students will find the.
Section 5.3 Solving Systems of Equations Using the Elimination Method There are two methods to solve systems of equations: The Substitution Method The.
Do Now (3x + y) – (2x + y) 4(2x + 3y) – (8x – y)
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.
Geometric Series. In a geometric sequence, the ratio between consecutive terms is constant. The ratio is called the common ratio. Ex. 5, 15, 45, 135,...
{ 12.3 Geometric Sequence and Series SWBAT evaluate a finite geometric series SWBAT evaluate infinite geometric series, if it exists.
Y=3x+1 y 5x + 2 =13 Solution: (, ) Solve: Do you have an equation already solved for y or x?
Sequences & Series: Arithmetic, Geometric, Infinite!
Analysis of Algorithms: Methods and Examples CSE 2320 – Algorithms and Data Structures Alexandra Stefan Based on presentations by Vassilis Athitsos and.
Review of Sequences and Series
9.3 Geometric Sequences and Series. 9.3 Geometric Sequences A sequence is geometric if the ratios of consecutive terms are the same. This common ratio.
12.3 – Analyze Geometric Sequences and Series. Geometric Sequence: Ratio of any term to the previous term is constant Common Ratio: Ratio each term is.
Analysis of Algorithms: Methods and Examples CSE 2320 – Algorithms and Data Structures Vassilis Athitsos Modified by Alexandra Stefan University of Texas.
Copyright © 2007 Pearson Education, Inc. Slide Geometric Series A geometric series is the sum of the terms of a geometric sequence. Sum of the.
Unit 4: Sequences & Series 1Integrated Math 3Shire-Swift.
Design and Analysis of Algorithms
6) x + 2y = 2 x – 4y = 14.
11.3 Geometric Sequences & Series
The sum of the infinite and finite geometric sequence
Solve the problem progression and series
Geometric Sequences and Series (Section 8-3)
Accel PRecalc Unit #4: Sequences & Series Lesson #3: Finite Geometric Sequences and Series
MTH1170 Series.
Objectives Understand the difference between a finite and infinite series. Write and evaluate an arithmetic series.
Tuesday, March 6 Essential Questions
Finite Differences.
Section 9.1 Sequences and Series.
Geometric Sequence The ratio of a term to it’s previous term is constant. This means you multiply by the same number to get each term. This number that.
12.3 Geometric Sequences & Series
10.2 Arithmetic Sequences and Series
Geometric Sequences.
Chapter 12 Review Each point your team earns is extra points added to your score on the upcoming test.
Recurrences (Method 4) Alexandra Stefan.
Notes Over 11.1 Sequences and Series
8.3 Analyzing Geometric Sequences and Series
Geometric Sequence The ratio of a term to it’s previous term is constant. This means you multiply by the same number to get each term. This number that.
9.5 Series.
Geometric Sequences and series
Geometric Sequences and Series
Warm Up Use summation notation to write the series for the specified number of terms …; n = 7.
Series.
Chapter 9 Section 1 (Series and Sequences)
Geometric Sequences and Series
Presentation transcript:

Analysis of Algorithms: Methods and Examples CSE 2320 – Algorithms and Data Structures Vassilis Athitsos University of Texas at Arlington 1

Using Limits 2

Using Limits: An Example 3

4

5

Big-Oh Transitivity 6

7

Big-Oh Hierarchy 8

Using Substitutions 9

10

Summations 11

Geometric Series A geometric series is a sequence C k of numbers, such that C k = D * C k-1, where D is a constant. How can we express C 1 in terms of C 0 ? – C 1 = D * C 0 How can we express C 2 in terms of C 0 ? – C 2 = D * C 1 = D 2 * C 0 How can we express C k in terms of C 0 ? – C k = D k * C 0 So, to define a geometric series, we just need two parameters: D and C 0. 12

Summation of Geometric Series 13

Summation of Geometric Series 14

Summation of Geometric Series 15

Approximation by Integrals 16

Solving Recurrences: Example 1 Suppose that we have an algorithm that at each step: – takes O(N 2 ) time to go over N items. – eliminates one item and then calls itself with the remaining data. How do we write this recurrence? 17

Solving Recurrences: Example 1 18

Solving Recurrences: Example 1 19

Solving Recurrences: Example 2 Suppose that we have an algorithm that at each step: – takes O(log(N)) time to go over N items. – eliminates one item and then calls itself with the remaining data. How do we write this recurrence? 20

Solving Recurrences: Example 2 21

Solving Recurrences: Example 2 22

Solving Recurrences: Example 3 Suppose that we have an algorithm that at each step: – takes O(1) time to go over N items. – calls itself 3 times on data of size N-1. – takes O(1) time to combine the results. How do we write this recurrence? 23

Solving Recurrences: Example 3 24 finite summation

Solving Recurrences: Example 3 25

Solving Recurrences: Example 4 Suppose that we have an algorithm that at each step: – calls itself N times on data of size N/2. – takes O(1) time to combine the results. How do we write this recurrence? 26

Solving Recurrences: Example 4 27

Solving Recurrences: Example 4 28

Solving Recurrences: Example 4 29

Solving Recurrences: Example 4 30

Solving Recurrences: Example 4 31

Solving Recurrences: Example 4 32

Big-Oh Notation: Example Problem 33

Big-Oh Notation: Example Problem 34