Question

7. Given a set of n activities with start time and finish time F; of an i activity. Find the maximum size set of mutually com

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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.

Add a comment
Know the answer?
Add Answer to:
7. Given a set of n activities with start time and finish time F; of an...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT