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 a database with a foreign key constraint defined using "ON DELETE CASCADE," what happens when a row in the parent (referenced) table is deleted?
- Relation R(Student, Course, Hobby) stores every course a student takes and every hobby they have, independently of each other, producing a full cross-produ...
- Bitmap indexes are most efficient when:
- What will be the output of the following Python code: a=[1,2,3,4,5,6] print(a[-1],a[-1:],a[:-1])
- What is the maximum number of processes that can be in the Ready state?
- Distributed transactions typically use which protocol for atomicity?
- The command to test reachability of a host in Linux is:
- What is context switching?
- When implementing a `Graph` traversal algorithm like Depth-First Search (DFS) recursively, what is the primary control flow mechanism that manages the orde...
- A relation R(A, B, C, D, E) has candidate key {A, C}, with functional dependencies A -> B, BC -> D, and D -> E holding. What is the highest normal form tha...
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)