Question
Aβ and βBβ together can complete a work in 10 days
while βAβ takes 15 days to complete the same work alone. If βCβ is 20% more efficient than βBβ, then find the time taken by βCβ alone to complete the whole work.Solution
Let the total work = 30 units Efficiency of (A + B) = 30/10 = 3 units/day Efficiency of βAβ = 30/15 = 2 unit/day Therefore, efficiency of βBβ = 3 β 2 = 1 units/day Efficiency of βCβ = 1.2 Γ 1 = 1.2 units/day Required time taken = 30/1.2 = 25 days
Which algorithm is used for computing Max-Flow in a network?
Given the following code snippet, which operation is performed on the binary tree to produce the output: 4, 2, 5, 1, 3 ?
class Node {Β Β Β Β Β in...Which data structure is most suitable for implementing a priority queue with logarithmic time complexity for insertion and deletion?
Tarjanβs algorithm is used to find:
In C++, which access specifier makes members accessible only from within the class itself and from friend functions/classes?
What is the worst-case time complexity for inserting an element into a hash table that uses separate chaining for collision resolution?
In a graph, what is the maximum number of edges in a simple undirected graph with 'n' vertices?
Time complexity of heap sort is:
Which of the following is true about triggers in a relational database?
What is the primary purpose of an abstract class?