7.2 KiB
Test Yourself
Page 296
- The notation
\sum_{k = m}^{n}{a_k}is read "_____."
The summation from k equals m to n of a sub k.
- The expanded form of
\sum_{k = m}^{n}{a_k}is _____.
a_m + a_{m + 1} + a_{m + 2} + \dots + a_n
- The value of
a_1 + a_2 + a_3 + \dots + a_nwhenn = 2is "_____."
a_1 + a_2
- The notation
\prod_{k = m}^{n}{a_k}is read "_____."
The product from k equals m to n of a sub k.
- If
nis a positive integer, thenn! =_____.
n \cdot (n - 1) \dots \cdot 3 \cdot 2 \cdot 1
\sum_{k = m}^{n}{a_k} + c\sum_{k = m}^{n}{b_k} =_____.
\sum_{k = m}^{n}{a_k + cb_k}
\left(\prod_{k = m}^{n}{a_k}\right)\left(\prod_{k = m}^{n}{b_k}\right) =_____.
\prod_{k = m}^{n}{a_kb_k}
Test Yourself
Page 309
- Mathematical induction is a method for proving that a property defined for
integers
nis true for all values ofnthat are _____.
greater than or equal to some initial value.
- Let
P(n)be a property defined for integersnand consider constructing a proof by mathematical induction for the statement "P(n) is true for alln \geq a."
a. In the basis step one must show _____.
that P(a) is true.
b. In the inductive step one supposes that _____ for a particular but
arbitrarily chosen value of an integer k \geq a. This supposition is called
the _____. One then has to show that _____.
P(k) is true; inductive hypothesis; P(k + 1) is true.
Test Yourself
Page 320
- Mathematical induction differs from the kind of induction used in the natural sciences because it is actually a form of _____ reasoning.
deductive
- Mathematical induction can be used to _____ conjectures that have been made using inductive reasoning.
prove
Test Yourself
Page 333
- In a proof by strong mathematical induction the basis step may require
checking a property
P(n)for more _____ value ofn.
than one
- Suppose that in the basis step for a proof by strong mathematical induction
the property
P(n)was checked for every integernfromathroughb. Then in the inductive step one assumes that for any integerk \geq b, the propertyP(n)is true for all values ofifrom _____ through _____ and one shows that _____ is true.
a; k; P(k + 1)
- According to the well-ordering principle for the integers, if a set
Sof integers contains at least _____ and if there is some integer that is less than or equal to every _____, then _____.
one integer; integer in S; S contains a least element.
Test Yourself
Page 346
- A pre-condition for an algorithm is _____ and a post-condition for an algorithm is _____.
a predicate that describes the initial state of the input variables of the algorithm; a predicate that describes the final state of the output variables for the algorithm
- A loop is defined as correct with respect to its pre- and post-conditions if, and only if, whenever the algorithm variables satisfy the pre-condition for the loop and the loop terminates after a finite number of steps, then _____.
the algorithm variables satisfy the post-condition for the loop
- For each iteration of a loop, if a loop invariant is true before iteration of the loop, then _____.
it is true after iteration of the loop
- Given a while loop with guard
Gand a predicateI(n)if the following four properties are true, then the loop is correct with respect to its pre- and post-conditions:
(a) The pre-condition for the loop implies that _____ before the first iteration of the loop.
I(0) is true
(b) For every integer k \geq 0, if the guard G and the predicate I(k) are
both true before an iteration of the loop, then _____.
I(k + 1) is true after the iteration of the loop
c After a finite number of iterations of the loop, _____.
the guard G becomes false
(d) If N is the least number of iterations after which G is false and I(N)
is true, then the values of the algorithm variables will be as specified _____.
in the post-condition of the loop.
Test Yourself
Page 359
- A recursive definition for a sequence consists of a _____ and _____.
recurrence relation; initial conditions
- A recurrence relation is an equation that defines each later term of a sequence by reference to _____ in the sequence.
earlier terms
- Initial conditions for a recursive definition of a sequence consist of one or more of the _____ of the sequence.
values of the first few terms
- To solve a problem recursively means to divide the problem into smaller subproblems of the same type as the initial problem, to suppose _____, and to figure out how to use the supposition to _____.
that the smaller subproblems have already been solved; solve the initial problem
- A crucial step for solving a problem recursively is to define a _____ in terms of which the recurrence relation and initial conditions can be specified.
sequence
Page 372
Test Yourself
- To use iteration to find an explicit formula for a recursively defined sequence, start with the _____ and use successive substitution into the _____ to look for a numerical pattern.
initial conditions; recurrence relation
- At every step of the iteration process, it is important to eliminate _____.
parentheses
- If a single number, say
a, is added to itselfktimes in one of the steps of the iteration, replace the sum by the expression _____.
k \cdot a
- If a single number, say
a, is multiplied by itselfktimes in one of the steps of the iteration, replace the product by the expression _____.
a^k
- A general arithmetic sequence
a_0, a_1, a_2, \dotswith initial valuea_0and fixed constant summanddsatisfies the recurrence relation _____ and has the explicit formula _____.
a_k = a_{k - 1} + d; a_n = a_0 + dn
- A general geometric sequence
a_0, a_1, a_2, \dotswith initial valuea_0and fixed constant multiplierrsatisfies the recurrence relation _____ and has the explicit formula _____.
a_k = ra_{k - 1}; a_n = r^na_0
- When an explicit formula for a recursively defined sequence has been obtained by iteration, its correctness can be checked by _____.
mathematical induction
Page 385
Test Yourself
-
A second-order linear homogeneous recurrence relation with constant coefficients is a recurrence relation of the form _____ for every integer
k \geq_____, where _____. -
Given a recurrence relation of the form
a_k = Aa_{k - 1} + Ba_{k - 2}for every integerk \geq 2, the characteristic equation of the relation is _____. -
If a sequence
a_1, a_2, a_3, \dotsis defined by a second-order linear homogeneous recurrence relation with constant coefficients and the characteristic equation for the relation has two distinct rootsrands(which could be complex numbers), then the sequence is given by an explicit formula of the form _____. -
If a sequence
a_1, a_2, a_3, \dotsis defined by a second-order linear homogeneous recurrence relation with constant coefficients and the characteristic equation for the relation has only a single rootr, then the sequence is given by an explicit formula of the form _____.