Bit-Rate
April 14, 2024Question 6921 – UGC NET CS 2015 Dec – paper-3
April 14, 2024Question 6920 – UGC NET CS 2015 Dec – paper-3
In Activity – Selection problem, each activity ai has a start time si and a finish time fi where si ≤ fi. Activities ai and aj are compatible if:
Correct Answer: C
Question 16 Explanation:
Each activity ai has a start time si and a finish time fi where 0 ≤ si < fi < ∞. If selected, activity ai takes place during the half-open time interval [ si , fi ]. Activities ai and aj are compatible if the intervals [ si , fi ] and [ sj , fj ] do not overlap. That is, ai and aj are compatible if si ≥ fj or sj ≥ fi. In the activity-selection problem, we wish to select a maximum-size subset of mutually compatible activities.
si ≥ fj
sj ≥ fi
si ≥ fj or sj ≥ fi
si ≥ fj and sj ≥ fi