CSCI 2405
Spring 2018
Practice Questions for Exam 3

  1. Suppose that

     f(n) ≈ 3T(n/2) + n

    Give a closed form expression for f(n) that is correct to within a constant factor.

    Answer

  2. Suppose that

     f(n) ≈ 4T(n/2) + n2

    Give a closed form expression for f(n) that is correct to within a constant factor.

    Answer

  3. Suppose that

     f(n) ≈ 3T(n/2) + n2

    Give a closed form expression for f(n) that is correct to within a constant factor.

    Answer

  4. Suppose that {an} (n ≥ 0) is a sequence where, for n > 1,

    an = 5an−1 − 6an−2

    Give the general form of a closed-form solution for an.

    Answer

  5. Suppose that {an} (n ≥ 0) is a sequence where, for n > 1,

    an = 4an−1 − 4an−2

    Give the general form of a closed-form solution for an.

    Answer

  6. Suppose that {an} (n ≥ 0) is a sequence where, a0 = 2 and, for n > 0,

    an = 3an−1

    Give an exact closed-form solution for an.

    Answer

  7. Suppose that {an} (n ≥ 0) is a sequence where, a0 = 2 and, for n > 0,

    an = 3an−1 + n

    Give an exact closed-form solution for an.

    Answer