Quiz 1, Monday 1/28/19 Chapters 1,2 and 3 HW assignments 1-5.

Slides:



Advertisements
Similar presentations
Chapter 8 Vocabulary. Section 8.1 Vocabulary Sequences An infinite sequence is a function whose domain is the set of positive integers. The function.
Advertisements

MCA 202: Discrete Mathematics Instructor Neelima Gupta
(a) an ordered list of objects.
MTH 252 Integral Calculus Chapter 6 – Integration Section 6.4 – The Definition of Area as a Limit; Sigma Notation Copyright © 2005 by Ron Wallace, all.
25 June 2015Comp 122, Spring 2004 Asymptotic Notation, Review of Functions & Summations.
Updates HW#1 has been delayed until next MONDAY. There were two errors in the assignment Merge sort runs in Θ(n log n). Insertion sort runs in Θ(n2).
Every slope is a derivative. Velocity = slope of the tangent line to a position vs. time graph Acceleration = slope of the velocity vs. time graph How.
Sequences and Series (T) Students will know the form of an Arithmetic sequence.  Arithmetic Sequence: There exists a common difference (d) between each.
Number Sequences Lecture 7: Sep 29 ? overhang. This Lecture We will study some simple number sequences and their properties. The topics include: Representation.
The Integral chapter 5 The Indefinite Integral Substitution The Definite Integral As a Sum The Definite Integral As Area The Definite Integral: The Fundamental.
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.
2.4 – Real Zeros of Polynomial Functions
CMPT 438 Algorithms Chapter 3 Asymptotic Notations.
9.4 Part 1 Convergence of a Series. The first requirement of convergence is that the terms must approach zero. n th term test for divergence diverges.
By Sheldon, Megan, Jimmy, and Grant..  Sequence- list of numbers that usually form a pattern.  Each number in the list is called a term.  Finite sequence.
Geometric Sequences and Series Section Objectives Recognize, write, and find nth terms of geometric sequences Find the nth partial sums of geometric.
Mathematical Background and Linked Lists. 2 Iterative Algorithm for Sum Find the sum of the first n integers stored in an array v : sum (v[], n) temp_sum.
13.6 Sigma Notation. Objectives : 1. Expand sequences from Sigma Notation 2. Express using Sigma Notation 3. Evaluate sums using Sigma Notation Vocabulary.
Arithmetic and Geometric Series: Lesson 43. LESSON OBJECTIVE: 1.Find sums of arithmetic and geometric series. 2.Use Sigma Notation. 3.Find specific terms.
Section 9.2 – Series and Convergence. Goals of Chapter 9.
Appendix A: Summations Motivation: Evaluating and/or bounding sums are frequently needed in the solution of recurrences Two types of evaluation problems:
RIEMANN INTEGRATION. INTRODUCTION PARTITIONS NORM OF A PARTITION.
Arithmetic Series 19 May Summations Summation – the sum of the terms in a sequence {2, 4, 6, 8} → = 20 Represented by a capital Sigma.
12 INFINITE SEQUENCES AND SERIES. In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series.
Summations COSC 3101, PROF. J. ELDER 2 Recall: Insertion Sort.
DO NOW: Write each expression as a sum of powers of x:
4.2 Area Definition of Sigma Notation = 14.
1 Review for Quiz 1. 2 Summations 3 Binomial expansion.
Appendix A: Summations Two types of summation problems in algorithms: 1) Prove by induction that formula is correct 2) Find the function that the sum equals.
Chapter 4: Solution of recurrence relationships Techniques: Substitution: proof by induction Tree analysis: graphical representation Master theorem: Recipe.
Lesson 5-2 The Definite Integral. Ice Breaker See handout questions 1 and 2.
4.1 Antiderivatives 1 Definition: The antiderivative of a function f is a function F such that F’=f. Note: Antiderivative is not unique! Example: Show.
10.1 Sequences Tues Feb 16 Do Now Find the next three terms 1, -½, ¼, -1/8, …
Lesson 5-2R Riemann Sums. Objectives Understand Riemann Sums.
“In the fall of 1972 President Nixon announced that the rate of increase of inflation was decreasing. This was the first time a sitting president used.
Assignment 1: due 1/13/16 Geometric sum Prove by induction on integers that.
Problem of the Day The graph of a function f is shown above.Which of the following statements about f is false? A) f is continuous at x = a B) f has a.
10.3 Convergence of Series with Positive Terms Do Now Evaluate.
Copyright © Cengage Learning. All rights reserved The Integral Test and Estimates of Sums.
Analysis of Algorithms CS 477/677 Instructor: Monica Nicolescu Lecture 2.
4-2 AREA AP CALCULUS – MS. BATTAGLIA. SIGMA NOTATION The sum of n terms a 1, a 2, a 3,…, a n is written as where i is the index of summation, a i is the.
SECTION 4-3-B Area under the Curve. Def: The area under a curve bounded by f(x) and the x-axis and the lines x = a and x = b is given by Where and n is.
INFINITE SEQUENCES AND SERIES In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series and.
Application of the Integral
Asymptotic Complexity
CSCE 411 Design and Analysis of Algorithms
The sum of the infinite and finite geometric sequence
Riemann Sums and the Definite Integral
Copyright © Cengage Learning. All rights reserved.
The Integral Test; p-Series
Introduction to Algorithms Analysis
Copyright © Cengage Learning. All rights reserved.
Should know some common ones:
Representation of Functions by Power Series (9.9)
Homework Lesson 8.3 Page #1-17 (EOO), (ODD),
Summation Formulas Constant Series.
Riemann Sums and Integrals
Introduction to Algorithms
Copyright © Cengage Learning. All rights reserved.
AREA Section 4.2.
Summations Alexandra Stefan.
Chapter 11: Further Topics in Algebra
Assignment 1: due 1/9/19 Geometric sum: Prove by induction on integers that Give a structured proof using the technique if S(n-1) then S(n). Include the.
11.3a: Positive-Term Series
Chapter 9: Selection of Order Statistics
Chapter 3 Growth of Functions
Chapter 10 Review.
AREA Section 4.2.
11.4 Mathematical Induction
Presentation transcript:

Quiz 1, Monday 1/28/19 Chapters 1,2 and 3 HW assignments 1-5

Appendix A: Summations Sk=1 to n f(k) Two types of summation problems in algorithms: For a given lower limit, find the function of the upper limit that the sum is equal to. a) prove by induction on integers b) transform a sum we know into the one we need 2) Find an asymptotic bound for very large values of the upper limit

Example: induction on integers prove Setup to use “if S(n-1) then S(n)” inductive hypothesis application

Change of summation index Example from analysis of insertion sort: use to evaluate Let k=j-1 then

Integration and differentiation can be used to evaluate a sum using one you know derivative: d{ f(x)}/dx =  df/dx integral: dx {f(x)} =  dx f(x) Example: use geometric series To show k=0 to ∞ k xk = x/(1 – x)2 when 0< |x| < 1

Homework Assignment 6: due 1/25/19 ex A.1-3 p 1149 use derviatives on the geometric series to show that

Bounding sums bound sum by bounding every term Show that (n/2)2 < Sk=1 to n k < n2

Bound by integration: monotone increasing summand Shaded area is integral of continuous function f(x) Sum equals area of “upper sum” rectangles Same f(x) different limits on integration Sum equals area of “lower sum” rectangles

Note the difference for monotone increasing and decreasing summand Method not applicable if summand is not monotone increasing or decreasing

Use bounding by integrals for informal proof that Sk=1 to n k-1 = Q(ln(n)) called the “harmonic” sum

Homework Assignment 7: due 1/30/19 1) Use integration to show that is bounded from above by a constant . 2)Find asymptotic upper and lower bounds on by bounding every term. Make your lower bound tighter than w(n).

Important sums to remember Arithmetic k=1 to n k = n(n+1)/2 = Q(n2) Geometric k=0 to n xk = (xn+1 – 1)/(x – 1) when x  1 Harmonic k=1 to n (1/k) = ln(n) + O(1) Geometric series k=0 to ∞ xk = 1/(1 – x) when |x| < 1