You may work in pairs or purely individually for this assignment.

Similar documents
Recurrence Relations

Math 475, Problem Set #12: Answers

Chapter 4. Fourier Series

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

CSI 2101 Discrete Structures Winter Homework Assignment #4 (100 points, weight 5%) Due: Thursday, April 5, at 1:00pm (in lecture)

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

M A T H F A L L CORRECTION. Algebra I 1 4 / 1 0 / U N I V E R S I T Y O F T O R O N T O

CHAPTER 5. Theory and Solution Using Matrix Techniques

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

Solutions to Final Exam

Chapter 6. Advanced Counting Techniques

Properties and Tests of Zeros of Polynomial Functions

Solution of Linear Constant-Coefficient Difference Equations

Summary: CORRELATION & LINEAR REGRESSION. GC. Students are advised to refer to lecture notes for the GC operations to obtain scatter diagram.

SEQUENCES AND SERIES

NUMERICAL METHODS FOR SOLVING EQUATIONS

Time-Domain Representations of LTI Systems

Problem 4: Evaluate ( k ) by negating (actually un-negating) its upper index. Binomial coefficient

Subject: Differential Equations & Mathematical Modeling -III. Lesson: Power series solutions of Differential Equations. about ordinary points

COS 341 Discrete Mathematics. Exponential Generating Functions and Recurrence Relations

Linear Differential Equations of Higher Order Basic Theory: Initial-Value Problems d y d y dy

Engineering Analysis ( & ) Lec(7) CH 2 Higher Order Linear ODEs

Zeros of Polynomials

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 +

CS / MCS 401 Homework 3 grader solutions

ANOTHER GENERALIZED FIBONACCI SEQUENCE 1. INTRODUCTION

An Introduction to Randomized Algorithms

6.3 Testing Series With Positive Terms

UNIVERSITY OF CALIFORNIA - SANTA CRUZ DEPARTMENT OF PHYSICS PHYS 116C. Problem Set 4. Benjamin Stahl. November 6, 2014

CHAPTER 10 INFINITE SEQUENCES AND SERIES

SEQUENCE AND SERIES NCERT

SNAP Centre Workshop. Basic Algebraic Manipulation

Section 1 of Unit 03 (Pure Mathematics 3) Algebra

Continuous Functions

[ 11 ] z of degree 2 as both degree 2 each. The degree of a polynomial in n variables is the maximum of the degrees of its terms.

Average-Case Analysis of QuickSort

XT - MATHS Grade 12. Date: 2010/06/29. Subject: Series and Sequences 1: Arithmetic Total Marks: 84 = 2 = 2 1. FALSE 10.

Section 6.4: Series. Section 6.4 Series 413

Proof of Fermat s Last Theorem by Algebra Identities and Linear Algebra

ARITHMETIC PROGRESSIONS

CALCULATION OF FIBONACCI VECTORS

REVISION SHEET FP1 (MEI) ALGEBRA. Identities In mathematics, an identity is a statement which is true for all values of the variables it contains.

Eigenvalues and Eigenvectors

Linear Regression Demystified

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018

LESSON 2: SIMPLIFYING RADICALS

MIDTERM 3 CALCULUS 2. Monday, December 3, :15 PM to 6:45 PM. Name PRACTICE EXAM SOLUTIONS

CS:3330 (Prof. Pemmaraju ): Assignment #1 Solutions. (b) For n = 3, we will have 3 men and 3 women with preferences as follows: m 1 : w 3 > w 1 > w 2

PHY4905: Nearly-Free Electron Model (NFE)

BHW #13 1/ Cooper. ENGR 323 Probabilistic Analysis Beautiful Homework # 13

PAPER : IIT-JAM 2010

Math 155 (Lecture 3)

SOLUTION SET VI FOR FALL [(n + 2)(n + 1)a n+2 a n 1 ]x n = 0,

Sigma notation. 2.1 Introduction

Algebra of Least Squares

NEW FAST CONVERGENT SEQUENCES OF EULER-MASCHERONI TYPE

P. Z. Chinn Department of Mathematics, Humboldt State University, Arcata, CA

POWER SERIES SOLUTION OF FIRST ORDER MATRIX DIFFERENTIAL EQUATIONS

CHAPTER I: Vector Spaces

Precalculus MATH Sections 3.1, 3.2, 3.3. Exponential, Logistic and Logarithmic Functions

MATH 304: MIDTERM EXAM SOLUTIONS

Modified Decomposition Method by Adomian and. Rach for Solving Nonlinear Volterra Integro- Differential Equations

MATH 10550, EXAM 3 SOLUTIONS

Mathematics 116 HWK 21 Solutions 8.2 p580

REVISION SHEET FP1 (MEI) ALGEBRA. Identities In mathematics, an identity is a statement which is true for all values of the variables it contains.

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

SOLUTIONS TO EXAM 3. Solution: Note that this defines two convergent geometric series with respective radii r 1 = 2/5 < 1 and r 2 = 1/5 < 1.

4.3 Growth Rates of Solutions to Recurrences

Some examples of vector spaces

Mathematics review for CSCI 303 Spring Department of Computer Science College of William & Mary Robert Michael Lewis

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

MAT1026 Calculus II Basic Convergence Tests for Series

Theorem: Let A n n. In this case that A does reduce to I, we search for A 1 as the solution matrix X to the matrix equation A X = I i.e.

Integer Linear Programming

3sin A 1 2sin B. 3π x is a solution. 1. If A and B are acute positive angles satisfying the equation 3sin A 2sin B 1 and 3sin 2A 2sin 2B 0, then A 2B

8. Applications To Linear Differential Equations

The Binomial Theorem

Essential Question How can you recognize an arithmetic sequence from its graph?

Polynomials with Rational Roots that Differ by a Non-zero Constant. Generalities

End-of-Year Contest. ERHS Math Club. May 5, 2009

Chapter 2. Periodic points of toral. automorphisms. 2.1 General introduction

3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,

September 2012 C1 Note. C1 Notes (Edexcel) Copyright - For AS, A2 notes and IGCSE / GCSE worksheets 1

Calculus 2 - D. Yuen Final Exam Review (Version 11/22/2017. Please report any possible typos.)

We are mainly going to be concerned with power series in x, such as. (x)} converges - that is, lims N n

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

Lecture 6 Chi Square Distribution (χ 2 ) and Least Squares Fitting

3.2 Properties of Division 3.3 Zeros of Polynomials 3.4 Complex and Rational Zeros of Polynomials

Ma 4121: Introduction to Lebesgue Integration Solutions to Homework Assignment 5

Iterative Techniques for Solving Ax b -(3.8). Assume that the system has a unique solution. Let x be the solution. Then x A 1 b.

ENGI Series Page 6-01

Test One (Answer Key)

Matrices and vectors

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

The Binomial Theorem

Generating Functions. 1 Operations on generating functions

Math 25 Solutions to practice problems

Hoggatt and King [lo] defined a complete sequence of natural numbers

Transcription:

CS 04 Problem Solvig i Computer Sciece OOC Assigmet 6: Recurreces You may work i pairs or purely idividually for this assigmet. Prepare your aswers to the followig questios i a plai ASCII text file or MS Word documet. Submit your file to the Curator system by the posted deadlie for this assigmet. No late submissios will be accepted. If you work i pairs, list the ames ad email PIDs of both members at the begiig of the file, ad submit your solutio uder oly oe PID. No other formats will be graded. For this assigmet, you may (ad are ecouraged to) work i pairs; if you do so, you must also write your solutios i such a way that it is clear how each member cotributed to derivig the solutio. You will submit your aswers to the Curator System (www.cs.vt.edu/curator) uder the headig OOC06.. [60 poits] Solve each of the followig recurrece relatios: a =, a = 3a + 4 for > 0 a) 0 This is a ohomogeeous liear recurrece; apply the result from the first sectio of the mathematical otes to see that the solutio will be give by: 4 4 4 4 a = 3 + + + + + 3 3 3 3 3 Note: with referece to the otes, the coefficiets of the liear relatioship are costats, 3 ad 4, respectively. Now we eed to simplify this result: a 4 4 4 4 = 3 + + + + + 3 3 3 3 3 = + + + + + 3 3 4 3 4 3 4 3 4 3 ( ) = 3 + 4 3 + 3 + 3 + + Now we eed a basic algebraic idetity: Ad so: for all. a 3 = 3 + 4 3 = 3 + 3 = + 3

CS 04 Problem Solvig i Computer Sciece b =, b =, b = 3b + 4 b for > b) 0 OOC Assigmet 6: Recurreces This is a homogeeous recurrece with costat coefficiets; apply the result from the secod sectio of the mathematical otes. The characteristic equatio is: τ = 3τ + 4 Solvig this, we get the distict roots - ad 4, ad therefore the geeral solutio of the recurrece will be of the form: b = α ( ) + β 4 Now we must fid values for the coefficiets, α ad β, so that the iitial coditios are also satisfied: 0 0 b0 = α ( ) + β 4 = α+ β = so β = α Ad: Substitutig yields: So, the specific solutio is: for all. b α β α β = ( ) + 4 = + 4 = α+ 4( α) = 5α = 3 α = 3 / 5, β = / 5 3 b = ( ) + 4 5 5

CS 04 Problem Solvig i Computer Sciece =, =, = for > c c c c c c) 0 OOC Assigmet 6: Recurreces This is also a homogeeous recurrece with costat coefficiets; apply the result from the secod sectio of the mathematical otes. The characteristic equatio is: τ = τ Solvig this, we get the repeated roots ad, ad therefore the geeral solutio of the recurrece will be of the form: c = α + β = α+ β Now we must fid values for the coefficiets, α ad β, so that the iitial coditios are also satisfied: c = α = ad c = α+ β = + β =, so β = 0 0 So, the specific solutio is: for all. c = 3

CS 04 Problem Solvig i Computer Sciece =, =, = + for > d d d d d d) 0 OOC Assigmet 6: Recurreces This is also a homogeeous recurrece with costat coefficiets; apply the result from the secod sectio of the mathematical otes. The characteristic equatio is: τ = τ + Solvig this, we get the distict roots: ± 4+ 8 τ = = ± 3 Therefore the geeral solutio of the recurrece will be of the form: ( 3) β( 3) d = α + + Now we must fid values for the coefficiets, α ad β, so that the iitial coditios are also satisfied: From this, we see that: d d 0 = α+ β = ( 3) β( 3) ( 3) ( α)( 3) = α + + = α + + = 3α + + 3= 3 3 α = ad β = + 3 3 So, the specific solutio is: for all. d ( 3) ( 3) 3 3+ = + + 3 3 = + + 3 3 ( 3) ( 3) + + 4

CS 04 Problem Solvig i Computer Sciece OOC Assigmet 6: Recurreces. [0 poits] Suppose that you deposit $000 i a savigs accout o Jauary, 03, ad that you deposit a additioal $00 i to the accout o each subsequet Jauary. The bak pays a fixed aual rate of 5%, deposited at the ed of each year. I other words, o December 3 of each year, the bak deposits 5% of the value of the accout o the precedig Jauary (icludig your ew deposit of $00). Fid a recurrece relatio for the value of the accout, P, after years. The solve that recurrece relatio to obtai a o-recursive formula for P. The calculate P 0. We are give directly that P 0 = 000. Ad, from the descriptio of how the accout is updated we see that: P =.05P + 00, for This is a liear recurrece with costat coefficiets, similar to questio a. Applyig the same techique, we obtai: P 00 00 00 00 = (.05) 000+ + + + +.05.05.05 3.05 3 ( ) = 000(.05) + 00.05 +.05 +.05 + +.05 = 000(.05) + 00.05 = 000(.05) + 000(.05) 000 = 3000(.05) 000 From this, we ca calculate that 0 P 0 = 3000(.05) 000= 5959.89. 5

CS 04 Problem Solvig i Computer Sciece OOC Assigmet 6: Recurreces 3. [0 poits] Fid, but do ot solve, a recurrece relatio for the umber of differet ways to make a stack of chips, usig red, white, ad blue chips, such that o two red chips are adjacet i the stack. LetS be the umber of ways form a stack of chips that does ot cotai two adjacet red chips. Trivially, S 0 = 0, ad S = 3 sice there are three ways to form a -chip stack, ad oe of those ca possibly cotai two adjacet red chips: R B W Now, what's S? We ca easily eumerate the 8 possibilities: W B R B W W B R R R W W W B B B Now, is there a patter? Yes. We ca take ay stack of chip ad exted it to a stack of chips by addig either a B or a W chip to the top, without violatig the rules. Ad, we ca take ay stack of 0 chips ad exted it to a stack of chips by addig either of the followig combiatios to the top, without violatig the rules ad without duplicatig ay of the -chip stacks we created i the first maer: R R W B Note that whe we exted a stack of - chips, the result always has a red chip o top, ad whe we exted a stack of - chips, the result ever has a red chip o top. Hece, we ca create two valid stacks of chips from every valid stack of - chips, ad create two valid stacks of chips from every valid stack of - chips, without creatig ay duplicates. So, we get the followig recurrece: S = 0 = 3 = a + a > 6