CIS 675: Algorthms – Spring 2019
Homework 3

Version 1   (1 February 2019)


Abbreviations


Reading


Problems

You many make use of the rsa.hs code to help with calculations.

Notation: A[i..j] names the subarray A[i], A[i+1], … A[j].

  1. (10 points) DPV Problem 1.33

  2. (20 points) DPV Problem 1.36

  3. (12 points) DPV Problem 1.45(b).

  4. (36 points) DPV Problem 2.5, parts a, b, c, d, e, and i.

    Obvious hint, use the [Master Theorem]. However, for part i, the Master Theorem will work; instead use a simple induction argument with T(0) = 1.

  5. (10 points) DPV Problem 2.12

  6. (12 points) PG Problem 337.

    Hint: There is an infinite recursion that is possible.


Reference