CSCI 3650
Spring 2019
Homework Assignment 2

Due: Wednesday, February 6 at the beginning of class.

  1. From the book: 4.1-4 [page 74]

  2. From the book: 4.2-4 [page 82]

  3. From the book: 4.2-5 [page 82]

  4. From the book: 4.2-7 [page 83]

  5. From the book: 33.1-5 [page 1020]. Do not assume that the input polygon is simple.

    1. Show that Professor Amundsen's algorithm does not correctly tell whether a given polygon is convex by giving a counterexample.

    2. Show how to modify the algorithm so that it always gives the correct answer.

  6. From the book: 33-1(a) [page 1044]. Convex layers.

  7. To within a constant factor, how much time does the following algorithm take, in terms of n?

      twoToTheN(n)
        if n == 1
          return 0
        else
          return twoToTheN(n-1) + twoToTheN(n-1)
    

  8. From the book: 30.2-1 [page 914]