Question
The first step in the greedy Activity Selection problem
is to sort the activities. Which criterion is used for sorting to ensure the greedy choice property holds?Solution
• Concept: The Activity Selection Problem is a classic greedy algorithm problem where the goal is to select the maximum number of non-overlapping activities from a given set. • Explanation of Correct Answer (D): Sort by increasing order of finish times. o The greedy strategy for the Activity Selection Problem is to always pick the activity that finishes earliest among the remaining compatible activities. To implement this efficiently, the activities are first sorted by their finish times in ascending order. This allows the algorithm to iterate through the sorted activities and pick the first one that doesn't overlap with the previously selected activity, guaranteeing an optimal solution.
In the following question a proverb/idiom us given. Select the option that best describes the meaning of the given proverb/idiom.
 let the ca...
Downhill sports can easily cost you an apple of your eye without even seeing a mountain.
Crocodile tears
  An idiom is used in three sentences. You need to choose the right option that covers the correct usage amongst these three sentences.
At ...
Of the four options given, choose the most appropriate one.
We are on talks with several Indian companies for setting up a joint venture to provide the full range of post-guarantee maintenance and repair services...
Select the most appropriate meaning of the given idiom.
 At your beck and call
Select the idiom/phrase that most accurately and contextually replaces the bolded segment.
After three failed start-ups, Arjun reluctantly ab...
- In each of the following questions, an idiomatic expression/proverb has been given in bold– followed by four alternatives. Choose the one which best expr...
Select the most appropriate meaning of the bold idiom in the given sentence.
My aunt has the gift of the gab and can socialize in any group. <...