Open In App

UGC-NET | UGC NET CS 2015 Dec – III | Question 16

Like Article
Like
Save
Share
Report

In Activity – Selection problem, each activity i has a start time si and a finish time fi where si ≤ fi. Activities i and j are compatible if:

(A) si ≥ fj
(B) sj ≥ fi
(C) si ≥ fj or sj ≥ fi
(D) si ≥ fj and sj ≥ fi or


Answer: (C)

Explanation: Two activities are compatible if their starting time and finish time does not overlap i.e. their execution must not overlap and starting time of one process must be greater then or equal to second process.
i.e. si ≥ fj or sj ≥ fi.
So, option (C) is correct.

Quiz of this Question


Last Updated : 11 Jun, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads