Question
A company needs to schedule a maximum number of meetings in a single conference room. Each meeting `i` has a start time `s_i` and an finish time `f_i`. Once a meeting starts, it must run to completion. Consider the following greedy strategy: 1. Sort all meetings by their start times in ascending order. 2. Select the first meeting. 3. From the remaining meetings, select the next meeting that starts after the previously selected meeting finishes. 4. Repeat until no more meetings can be selected. Given the meetings: `(s,
A company needs to schedule a maximum number of meetings in a single conference room. Each meeting `i` has a start time `s_i` and an finish time `f_i`. Once a meeting starts, it must run to completion. Consider the following greedy strategy: 1. Sort all meetings by their start times in ascending order. 2. Select the first meeting. 3. From the remaining meetings, select the next meeting that starts after the previously selected meeting finishes. 4. Repeat until no more meetings can be selected. Given the meetings: `(s,
f)` `M1: (1, 4)` `M2: (3, 5)` `M3: (0, 6)` `M4: (5, 7)` `M5: (8, 9)` `M6: (5, 9)` Which set of meetings will be selected by the described greedy strategy?
More IT DBMS Questions
- A program needs to process elements from a `Queue` until it becomes empty. Which control flow structure is most suitable for this task?
- Which SQL command permanently removes a table's entire structure along with all of its data from the database?
- Consider the following pseudo-code: ``` function calculate(arr): sum = 0 for i from 0 to length(arr) - 1: if arr[i] ...
- Which of the following is a significant disadvantage of using a traditional file system compared to an RDBMS?
- What is the primary purpose of a "Trigger" in a database?
- Transaction T1 holds a lock on Row A and requests a lock on Row B. Transaction T2 holds a lock on Row B and requests a lock on Row A. Both use strict Two-P...
- Wait-Die and Wound-Wait are strategies for:
- A relational database management system needs to store millions of employee records on disk and support fast search, insertion, deletion, and range queries...
- Which SQL clause is used to group rows based on one or more columns?
- A software defect that causes a program to produce incorrect output without crashing or displaying an error message is typically classified as a:
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)