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
- In an Object-Oriented program, which control flow construct is primarily used to handle unexpected events or errors that occur during program execution, su...
- Which of the following is not part of the process control block (PCB)?
- What is the purpose of 'indexing' in a database?
- A file of 10,000 fixed-length records of 128 bytes each is stored sorted on its key in disk blocks of 1024 bytes (unspanned). How many block accesses are n...
- Under READ COMMITTED isolation, Transaction T1 executes a query 'SELECT * FROM Accounts WHERE balance > 50000' and gets 5 rows. Before T1 re-executes the i...
- Which type of DBMS model organizes data in tables with rows and columns?
- A relation has 5 attributes in total, and the single attribute {A} forms its only candidate key. What is the maximum number of possible superkeys (includin...
- Which SQL statement is used to remove all rows from a table without logging individual row deletions?
- Shadow paging in recovery eliminates the need for:
- In ER modelling, a relationship in which the same entity type participates more than once, playing different roles in each occurrence (for example, an 'Emp...
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)