Hw3(8) - CS 573 Graduate Algorithms Fall 2008 Homework 3 Due at 11:59:59pm Wednesday Groups of up to three students may submit a single common

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

View Full Document Right Arrow Icon
CS 573: Graduate Algorithms, Fall 2008 Homework 3 Due at 11:59:59pm, Wednesday, October 22, 2008 Groups of up to three students may submit a single, common solution. Please neatly print (or typeset) the full name, NetID, and the HW0 alias (if any) of every group member on the first page of your submission. 1. Consider an n × n grid, some of whose cells are marked. A monotone path through the grid starts at the top-left cell, moves only right or down at each step, and ends at the bottom-right cell. We want to compute the minimum number of monotone paths that cover all marked cells. The input to our problem is an array M [ 1.. n ,1. . n ] of booleans, where M [ i , j ] = T RUE if and only if cell ( i , j ) is marked. One of your friends suggests the following greedy strategy: Find (somehow) one “good” path π that covers the maximum number of marked cells. Unmark the cells covered by π . If any cells are still marked, recursively cover them. Does this greedy strategy always compute an optimal solution? If yes, give a proof. If no, give a
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/14/2011 for the course ECON 101 taught by Professor Smith during the Spring '11 term at West Virginia University Institute of Technology.

Page1 / 2

Hw3(8) - CS 573 Graduate Algorithms Fall 2008 Homework 3 Due at 11:59:59pm Wednesday Groups of up to three students may submit a single common

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online