ICS 266, Spring 1996, Homework Set 4

Due Thursday, May 30, in class


  1. Incremental and randomized incremental algorithms. A trapezoidal decomposition of a polygon is formed by drawing a vertical line segment up and down through each vertex of the polygon, extending until it reaches the polygon boundary. The trapezoidal decomposition of a line arrangement is formed by performing this process in each cell of the arrangement.

  2. Linear programming and LP-type problems.

    Recall that an LP-type problem is defined by a set S and a function f mapping subsets of S to some totally ordered space, satisfying the following two properties:

    A basis of the problem is a set B such that for any proper subset A, f(A) < f(B). The dimension of the problem is the size of the largest basis. The answer to a problem consists of the value of f(S), or equivalently max_B f(B) where the maximization occurs over all bases. In class we saw randomized algorithms for solving such problems using a number of basis evaluations linear in |S| and exponential in the dimension.

  3. Dynamic programming.
    [Corman, Leiserson, and Rivest, "Introduction to Algorithms", problem 16-1, p. 324.]

    The Euclidean traveling-salesman problem is the problem of determining the shortest closed tour that connects a given set of n points in the plane. The general problem is NP-complete. J. L. Bentley has suggested the problem by restricting our attention to bitonic tours, that is, tours that start at the leftmost point, go strictly left to right to the rightmost point, and then go strictly right to left back to the starting point. (Equivalently, any vertical line should cross the tour at most twice.)

    Describe an O(n^2)-time algorithm for determining an optimal bitonic tour. You may assume that no two points have the same x-coordinate. (Hint: Scan left to right, maintaining optimal possibilities for the two parts of the tour.)


ICS 266, David Eppstein, Dept. Information & Computer Science, UC Irvine
Last update: 21 May 1996, 10:56:45 PDT