[WPI] [cs2223] [cs2223 text] [News] [Syllabus] [Exams]
Go to Solution
The number of additions performed an algorithm when working with an array of size n obeys this equation;
What is the order of the algorithm O(An)?
The mathematical constant e can be expressed as an infinite series:
The denominators are just the factorials of the integers:
Let En represent the error which results from truncating the series to length n. For example the third element in the sequence is:
2a). Write an expression for En which does not contain e. It can, however, contain summations.
2b) Write a recurrence relation for En. You don't have to solve it, but you do have to show your mathematical derivation.
Pascal's triangle plays an important role in understanding binomial relations. Each element is formed from the sum of the numbers above it and the one to the upper left if it. We want to calculate Cn, which tells how many numbers are contained in a Pascale triangle with n rows. This example shows that C5, =15.
3a) Write a recurrence relation for Cn.
3b) We guess that the solution to the recurrence relation is
. Prove or disprove whether this guess is correct.
[cs2223 text] [News] [Syllabus] [Exams] |