subject
Computers and Technology, 05.12.2019 00:31 SithLeo

Describe an efficient algorithm that, given a set {x1, } of points on the real line, determines the smallest set of unit-length closed intervals that contains all of the given points. (a unit length interval just means any closed interval with length 1. i. e., an interval [a, b] where b − a = 1.)

a. briefly describe a greedy algorithm for the unit length interval problem.

b. state and prove a "swapping lemma" for your greedy algorithm.

c. write a proof that uses your swapping lemma to show that your greedy algorithm does indeed produce a set of intervals that contain all of the points {x1, } with the fewest number of intervals.

note: you must show that no smaller set of intervals exists that contain all of the points. do not appeal to any general principles. you must incorporate your swapping lemma above in the proof.

argue that your algorithm is correct.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
You install teamviewer on your workstation at home so that you can ac ess it when on the road. how can you be assured that unknown users cant access your computer through team viewer?
Answers: 2
question
Computers and Technology, 23.06.2019 01:00
Let r be a robotic arm with a fixed base and seven links. the last joint of r is a prismatic joint, the other ones are revolute joints. give a set of parameters that determines a placement of r. what is the dimension of the configuration space resulting from your choice of parameters?
Answers: 3
question
Computers and Technology, 23.06.2019 05:00
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
The managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an .
Answers: 3
You know the right answer?
Describe an efficient algorithm that, given a set {x1, } of points on the real line, determines the...
Questions
question
Mathematics, 09.04.2020 19:43
question
English, 09.04.2020 19:43
question
Mathematics, 09.04.2020 19:43
Questions on the website: 13722360