subject

Problem 1 In one of the national parks the park administration wants to set up warning signs to inform tourists that they should check themselves for ticks after their hike. The park has a number of recommended routes, each of which touch some points of interest (POI). Different routes may contain the same POI. The signs will be placed at the POIs. The park wants to put up as few signs as possible, but in such a way that each route contains at least one sign. There are a total of n POIs and m routes.

(a) (5 points) Assume that you are given a "black-box" machine that can answer certain questions instantaneously. You can post to it the routes (as POI sequences) and a number k, and then the machine will output "yes" if there is a set of k locations for the signs so that each route contains some. Otherwise it returns "no". (It will not tell you the exact locations though.) Show an algorithm that can use polynomial number of calls to this machine and finds the minimum number k of signs required.

(b) (10 points) In class, you have learned about a problem called the set cover problem. Show that the sign placement problem is equivalent to the set cover problem, in the following way. Give a reduction of the sign placement problem to the set cover problem, and also a reduction from of the set cover problem to the sign placement problem.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 21:50
Description: write function lastfirst() that takes one argument—a list of strings of the format "lastname, firstname" —and returns a list consisting of two lists: (a) a list of all the last names (b) a list of all the first names
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior to sending the first ping request
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
What is the next step if your volume does not work on computer
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
File i/o activity objective: the objective of this activity is to practice working with text files in c#. for this activity, you may do all code in the main class. instructions: create an app that will read integers from an input file name numbers.txt that will consist of one integer per record. example: 4 8 25 101 determine which numbers are even and which are odd. write the even numbers to a file named even.txt and the odd numbers to a file named odd.txt.
Answers: 3
You know the right answer?
Problem 1 In one of the national parks the park administration wants to set up warning signs to info...
Questions
question
Mathematics, 27.04.2021 23:10
question
Mathematics, 27.04.2021 23:10
question
Mathematics, 27.04.2021 23:10
question
Mathematics, 27.04.2021 23:10
question
Mathematics, 27.04.2021 23:10
question
Mathematics, 27.04.2021 23:10
Questions on the website: 13722367