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, 21.06.2019 14:10
In a flashdisk wich icon can you use to open files in computer
Answers: 1
question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
How would you cite different books by the same author on the works cited page? moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. –––. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. –––. folk songs and ballads. salem: poetry press, 1999. print.
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
What is not a type of text format that will automatically be converted by outlook into a hyperlink?
Answers: 1
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, 14.07.2019 22:30