Question
Atul walks 4 km at a speed of 2 km/h, runs 10 km at a
speed of 6 km/h and goes by bus for another 45 km. The speed of the bus is 30 km/h. Find the average speed of Atul.Solution
ATQ, Let the time of journey by walk, run and by bus be t1, t2, and t3 respectively, Total distance travelled by Atul = 4 + 10 + 45 = 59 km Total time taken by Atul = 2 + (5/3) + (3/2) = (31/6) By using the formula of Average speed, Average speed of Atul =
Average speed of Atul =Â 11(13/31) km/h
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?