Answering the First Question i.e. 7.
Solution :
Given a set of n activities with their start time Si and Finish time Fi for the ith activity, in order to find maximise set for mutually compatible activities, following steps need to be followed: -
Step 1: Sort all the activities given in the activity set based on their finishing time in the ascending time.
Step 2: Pick the first Activity in the activity set after sorting.
Step 3: Note done its finish time as F and execute the activity that has been taken until its finite time.
Step 4: Pick the next activity in the sequence if the start time of the activity say S>=F.
Step 5: Repeat the Step 3 and Step 4 until no activities left in activity set.
7. Given a set of n activities with start time and finish time F; of an...