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

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



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.