subject

In this question we will look at theInterval schedulingproblem. The problem consists of a set of tasks. Each of these tasks need to be executed in aspecific time interval. Two tasks are set to be compatible if their time intervals do notoverlap. The goal is to find the maximum set of compatible tasks so that as many taskspossible can be executed. For example consider the case of just three tasksTask start time end time Task 1 1 10 Task 2 2 5Task 3 7 9 Here the set consisting of Task 2 and Task 3 is the set consisting of marimum number of compatible tasks. It is maximum because if we select Task 1, then we cannot select either Task 2 or Task 3 as both of them have overlapping intervals with Task 1. Consider a greedy algorithm which always selects the shortest appointment first. Provide an example in tabular form with at least 5 tasks where this algorithm fails. List the order in which the algorithm selects the intervals, and also write down a larger subset of non-overlapping intervals than the subset output by the greedy algorithm.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:00, ajayfurlow
Which option should u select to ignore all tracked changes in a document
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, mimithurmond03
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
image
Computers and Technology, 23.06.2019 21:30, quintonps12
Which of the following includes the three primary network access technologies? dsl, cable modem, broadband lan, wan, man voip, uc, iptv tcp/ip, ftp, dhcp
Answers: 2
image
Computers and Technology, 24.06.2019 13:30, tami5
Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. the program should output the average high, average low, and the highest and lowest temper- atures for the year. your program must consist of the following functions: a. function getdata: this function reads and stores data in the two- dimensional array. b. function averagehigh: this function calculates and returns the average high temperature for the year. c. function averagelow: this function calculates and returns the aver- age low temperature for the year. d. function indexhightemp: this function returns the index of the highest high temperature in the array. e. function indexlowtemp: this function retur
Answers: 3
You know the right answer?
In this question we will look at theInterval schedulingproblem. The problem consists of a set of tas...

Questions in other subjects:

Konu
Biology, 01.11.2019 02:31
Konu
Biology, 01.11.2019 02:31