Week 3: Sequence and Summations Flashcards

1
Q

sequences

A
  • a function from a subset of the integers
  • usually set {0, 1, 2..} or {1, 2, 3…} to a set S
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

notation an (n is subscript)

A
  • denotes the image of the integer n
  • an is called a term of the sequence
  • an is equal to f(n), where f is a function from {0, 1, 2…..} to S
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

finite sequence

A

a sequence that has an end

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

infinite sequence

A

a sequence that goes on to the nth degree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

geometric progression

A
  • the sequence of the form: a, ar, ar^2, ar^n….. where the initial term a and common ration r are real numbers
  • sum of terms: (r^n - 1) / r- 1 when n is not 1
  • ex. an = (1/2) ^n
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

arithmetic progression

A
  • a sequence of the form a, a+d, a+2d, … a+dn
  • where the initial term a and the common difference d are real numbers
  • sum is n/2[2a + (n-1)d]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

recurrence relation

A
  • for the sequence {an} is an equation that expresses an in terms of one or more of the previous terms of the sequence
  • ex. an = a(n-1) + 3
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

initial conditions of a sequence

A
  • specify the terms for a sequence that preceded the first term where the recurrence relation takes effect
  • ex. a0 = 5
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

sequence is a solution of a recurrence relation if..

A

-its terms satisfy the recurrence relation
- ex. an = a(n-1) + 3, a0=5, has solution {5, 8, 11, 14….}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

fibonacci numbers

A
  • sequence that appears in lots of things, sun of previous two terms
  • ex. 1, 1, 2, 3, 45, 8, 13, 21, 34…
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

definition of the Fibonacci sequence

A
  • initial condition: f0=0, f1=1
  • recurrence relation: fn = f(n-1) + f(n-2)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

forward substitution method

A
  • start with the first term and increment up until you get the desired answer
  • ex. relation an = a(n-1) + 3 fro n=2,3,4…
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

backward substitution method

A
  • start with the last term and work backwards, substituting calculated values to find the sum of the entire series
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

index of a summation

A
  • for k = m Σ n (ak) = am + am+1 + ..an
  • the variable k is the index of the summation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

upper limit

A
  • for k = m Σ n (ak) = am + am+1 + ..an
  • the index takes on all the integer values ending at upper limit end (n)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

lower limit

A
  • for k = m Σ n (ak) = am + am+1 + ..an
  • the index takes on all the integer values start wit the Lower limit m
17
Q

important sums in CS

A

see list, MAKE physical flashcards

18
Q

manipulation of summations

A

see list, MAKE physical flashcards

19
Q

geometric series

A

i = 0 Σ n-1 (r^i) = (r^n - 1) / r-1 (for r is not equal to 1)

20
Q

product notation

A
  • k=m π n (ak) = am * a(m+1) * .. an
  • ex. k=1 π 5 (s^k) = 2^15
21
Q

closed form solution

A
  • the closed form solution does not involve any terms of the sequence ak
  • ex. an = 1 / (2^n)
22
Q

product notation

A

n
π a_k
k=m
= a_m × a_m+1×…×a_n
-starts at k=m and takes multiplies each term up to n