Mathematics for Computer Science MIT 6.042J/18.062J

Slides:



Advertisements
Similar presentations
Learning Objectives Explain the mechanics of compounding, and bringing the value of money back to the present. Understand annuities. Determine the future.
Advertisements

SEQUENCES and INFINITE SERIES
Number Sequences Lecture 5 (chapter 4.1 of the book and chapter 9 of the notes) ? overhang.
Calculating Stripping Ratios for Irregular Geometries ©Dr. B. C. Paul Spring 2003.
Number Sequences Lecture 7: Sep 28 (chapter 4.1 of the book and chapter 9 of the notes) ? overhang.
CSC2110 Discrete Mathematics Tutorial 4 Number Sequence Hackson Leung.
Personal and Financial Opportunity Costs Whenever you make a choice, you have to give up, or trade off, some of your other options. See Question #1, page.
Notes Over 11.3 Geometric Sequences
Number Sequences Lecture 7: Sep 29 ? overhang. This Lecture We will study some simple number sequences and their properties. The topics include: Representation.
Copyright © 2011 Pearson Education, Inc. Slide A geometric sequence (or geometric progression) is a sequence in which each term after the first.
Number Sequences ? overhang. This Lecture We will study some simple number sequences and their properties. The topics include: Representation of a sequence.
Alternating Series.
 S = future worth  P = principal  r = annual rate  t = time in years  m = number of compoundings per year Compound Interest and Sequences if compounded.
Other Means. The Geometric Mean The Harmonic Mean.
Math 104 Calculus I Part 6 INFINITE SERIES. Series of Constants We’ve looked at limits and sequences. Now, we look at a specific kind of sequential limit,
Where do Harmonic Series show up in nature? What is the steepest angle that a sand dune can achieve? 11: :50.
Number Sequences Lecture 7: Sep 27 (chapter 4.1 of the book and chapter of the notes) ? overhang.
9.4 Day 2 Limit Comparison Test
13. Section 10.3 Convergence Tests. Section 10.3 Convergence Tests EQ – What are other tests for convergence?
Calculating interest You can calculate the time value of your savings by figuring out how much interest you will earn. Principal – the original amount.
MBA – 401:5 Accounting for Decision Makers (MBA 401) Lecture Title No. 5 Time Value of Money Document map: No. MBA401/5/PPT Version: #1 Status:
Chapter 9 – Engineering Economic Analysis
CS 2210 (22C:19) Discrete Structures Sequence and Sums
Fundamentals of Finance
Geometric Sequences and Series
Definition of Geometric Sequence
The Concept of Present Value
Lecture 25 – Power Series Def: The power series centered at x = a:
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Estimating the Mass Number:
The Concept of Present Value
CS 2210:0001 Discrete Structures Sequence and Sums
Mathematics for Computer Science MIT 6.042J/18.062J
Mathematics for Computer Science MIT 6.042J/18.062J
Applications of Sequences and Series.
Computational Processes
Mathematics for Computer Science MIT 6.042J/18.062J
Asymptotics & Stirling’s Approximation
Computational Processes II
Asymptotics & Stirling’s Approximation
Mathematics for Computer Science MIT 6.042J/18.062J
Testing Infinite Series – Summary 11/30/12
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Mathematics for Computer Science MIT 6.042J/18.062J
Test Corrections You may correct your test. You will get back 1/3 of the points you lost if you submit correct answers. This work is to be done on your.
and Structural Induction II
Chapter 1.2 Opportunity Costs Financial Strategies
Mathematics for Computer Science MIT 6.042J/18.062J
and Structural Induction II
CS 2210:0001 Discrete Structures Sequence and Sums
By Muhammad Shahid Iqbal
and Structural Induction
and Structural Induction II
Calculus II (MAT 146) Dr. Day Monday, April 9, 2018
Mathematics for Computer Science MIT 6.042J/18.062J
and Structural Induction
and Structural Induction
Computational Processes II
Asymptotics & Stirling’s Approximation
Mathematics for Computer Science MIT 6.042J/18.062J
Asymptotics & Stirling’s Approximation
Truth and Proof Math vs. Reality Propositions & Predicates
5.6 Sum of Geometric Series (1/4)
Asymptotics & Stirling’s Approximation
Mathematical Explorations
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
AP Calculus BC 9.1 Power Series, p. 472.
and Structural Induction
Section 4 The Definite Integral
Presentation transcript:

Mathematics for Computer Science MIT 6.042J/18.062J Sums, Products & Asymptotics Copyright © Albert Meyer, 2002. Prof. Albert Meyer & Dr. Radhika Nagpal

C. F. Gauss Picture source: http://www-groups.dcs.st-and.ac.uk/~history/PictDisplay/Gauss.html

Sum for children 89 + 102 + 115 + 128 + 141 + 154 + ··· 193 + ··· 89 + 102 + 115 + 128 + 141 + 154 + ··· 193 + ··· 232 + ··· 323 + ··· + 401

Sum for children Nine-year old Gauss (so the story goes) saw that each number was 13 greater than the previous one.

Sum for children A ::= 89 + (89+13) + (89+2·13) + … + (89+24·13) + 89+(89+24·13)

first + last A = · #terms 2 Sum for children 2A = [89+ (89+24·13)]·25

A = Average · #terms Sum for children 2A = [89+ (89+24·13)]·25 first last #terms A = Average · #terms

Sum for children Example: 1 + 2 + … + (n-1) + n =

Geometric Series

Geometric Series

Geometric Series G-xG= 1 - xn+1

Geometric Series G-xG= 1- xn+1

Geometric Series G-xG= 1- xn+1 n+1

The future value of $$. Annuities I will promise to pay you $100 in exactly one year, if you will pay me $X now.

1.03 X  100. Annuities My bank will pay me 3% interest. If I deposit your $X for a year, I can’t lose if 1.03 X  100.

Annuities I can’t lose if you pay me: X = $100/1.03 ≈ $97.09

Annuities 97.09¢ today is worth $1.00 in a year $1.00 in a year is worth $1/1.03 today $n in a year is worth $nr today, where r = 1/1.03.

Annuities $n in two years is worth $nr2 today $n in k years is worth $nr k today

Annuities I will pay you $100/year for 10 years If you will pay me $Y now. I can’t lose if you pay me 100r + 100r2 + 100r3 + … + 100r10 =100r(1+ r + … + r9) = 100r(1-r10)/(1-r) = $853.02

In-Class Problem Problems 1 & 2

Book Stacking Rosen Rosen Rosen Rosen Rosen Rosen table

Book Stacking How far out? ?

Book Stacking One book center of mass of book 1 2

Book Stacking One book center of mass of book

Book Stacking One book center of mass of book

n books

n books center of mass

n books Need center of mass over table

n books center of mass of the whole stack overhang

n+1 books  ∆overhang center of mass of all n+1 books at table edge of top n books at edge of book n+1  ∆overhang

 overhang = Horizontal distance from n-book to n+1-book centers-of-mass

Choose origin so center of n-stack at x = 0. Now center of n+1st book is at x = 1/2, and x-coordinate for center of n+1-stack is:

n+1 books  center of mass of all n+1 books at table edge of top n books at edge of book n+1 

Bn ::= overhang of n books B1 = 1/2 Bn+1 = Bn + 1/2(n+1) Book stacking summary Bn ::= overhang of n books B1 = 1/2 Bn+1 = Bn + 1/2(n+1) Bn = 1/2(1 + 1/2 + … + 1/n)

nth Harmonic number Bn = Hn/2

Integral Method Estimate Hn : 1 x+1 0 1 2 3 4 5 6 7 8 1 1 2 1 3 1 2 1 0 1 2 3 4 5 6 7 8

overhang can be any desired size. Book stacking So Hn   as n , and overhang can be any desired size.

Book stacking Overhang 3: need Bn  3 Hn  6 Integral bound: ln (n+1)  6 So can do with n  e6-1 = 403 books Actually calculate Hn : 227 books are enough.

Crossing a Desert How big a desert can the truck cross? Gas depot

Dn ::= max distance on n tank

1 tank 1 tank truck D1= max distance on 1 tank = 1

n+1 tanks x 1-2x truck 1-2x 1-2x 1-x

n+1 tanks x 1-2x 1-2x n 1-2x 1-x

n+1 tanks x (1-2x)n + (1-x)

(1-2x)n + (1-x)

(1-2x)n + (1-x) If (1-2x)n + (1-x) = n,

(1-2x)n + (1-x) If (1-2x)n + (1-x) = n, then use n tank strategy from position x.

(1-2x)n + (1-x) If (1-2x)n + (1-x) = n, then use n tank strategy from position x. Dn+1 = Dn + x

(1-2x)n + (1-x) = n 1 2n+1 x = 1 2n+1 Dn+1 = Dn +

Can cross any desert!

In-Class Problem Problem 3