# hw3 - Computer Science 130B Winter 2007 Homework#3 Due 4pm...

This preview shows pages 1–2. Sign up to view the full content.

Computer Science 130B Winter 2007 Homework #3 Due: 4pm, February 23th, Friday Problem 1 Consider a square lattice structure. A square lattice of size n 2 is a directed labeled graph G = ( V, E ), where | V | = n 2 . Vertices in a lattice are arranged in a grid pattern, i.e., each vertex has a unique address ( i, j ), where 1 i n , and 1 j n . There are two types of edges in a lattice: horizontal and vertical. Horizontal edges go from vertex ( i, j ) to vertex ( i, j +1), for 1 i n , and 1 j n - 1, while vertical edges go from vertex ( i, j ) to vertex ( i + 1 , j ), for 1 i n - 1, and 1 j n . Label of an edge indicates the cost of traversing the particular edge. The goal here is to find a directed path of 2 × ( n - 1) edges ( n - 1 vertical and n - 1 horizontal) leading from vertex (1,1) to vertex ( n, n ) such that the total cost of the path is minimized. a. Explain why divide-and-conquer method is not feasible in finding the optimal path.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern