Question
A rectangular park is 50 m long and 40 m wide. A path of
uniform width is built inside the park along the boundary. The area of the path is 344 m². Find the width of the path.Solution
ATQ, Let width of path = x m Inner rectangle = (50 − 2x) by (40 − 2x) Total area = 2000 m² Area of path = 2000 − (50 − 2x)(40 − 2x) = 344 (50 − 2x)(40 − 2x) = 2000 − 344 = 1656 Expand: (as earlier) (50 − 2x)(40 − 2x) = 2000 − 100x − 80x + 4x² = 4x² − 180x + 2000 So: 4x² − 180x + 2000 = 1656 4x² − 180x + 344 = 0 Divide by 4: x² − 45x + 86 = 0 Check x = 2: 4 − 90 + 86 = 0 ⇒ x = 2 is a root. So width of path = 2 m.
In a binary search tree (BST), what is true about the left child of a node?
A directed acyclic graph (DAG) has 10 vertices and 15 edges. What is the maximum possible number of topological orderings?
Which of the following is true about the time complexity of Merge Sort?
Which of the following algorithms is best suited for finding the shortest path in a weighted graph where some edges may have negative weights but no neg...
Worst case is the worst case time complexity of Prim’s algorithm if adjacency matrix is used?
In a Min-Heap, the root node is:
The minimum number of edges in a connected graph with n vertices is:
A sorting algorithm is considered "stable" if it maintains the relative order of records with equal keys. Which of the following algorithms is generally...
What is the time complexity of searching in a balanced binary search tree?
Which algorithm finds the longest common subsequence (LCS) of two sequences?