

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This assignment was given by Manju Nripendra at West Bengal State University for Theory of Complexity and Algorithms course. It includes: Greedy, Algorithms, Fractional, Knapsack, Problem, Interval, Scheduling, Art, Gallery, Guarding
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Greedy algorithms
a (14, 3) b (5, 1) c (10, 6) d (12, 4) e (8, 2) f (10, 4) g (16, 8) h (9, 9)
Solve the Fractional Knapsack Problem for this set of items, where the maximum total allowed weight is Wmax = 15.
(a) Solve the Interval Scheduling Problem for this collection of tasks (i.e. find the maximum number of tasks that can be scheduled on a single machine, and give a set of compatible tasks that achieves this maximum). (b) Solve the Task Scheduling Problem for this collection of tasks (i.e. find the minimum number of machines required to complete all tasks, and give a schedule for doing so).
where paintings are hung in the hallway. Suppose that a single guard can protect all the paintings within distance at most 1 of his or her position (on both sides).
Design an algorithm for finding a placement of the guards that uses the minimum number of guards to guard all the paintings with positions in X.