Question
Solve for x:- 5(x − 2)/3 = 3(x +
4)/2Solution
ATQ, 5(x − 2)/3 = 3(x + 4)/2 Multiply both sides by 6 (LCM of 3 and 2): 6 × [5(x − 2)/3] = 6 × [3(x + 4)/2] Left: 6 × 5(x − 2)/3 = 2 × 5(x − 2) = 10(x − 2) Right: 6 × 3(x + 4)/2 = 3 × 3(x + 4) = 9(x + 4) So, 10(x − 2) = 9(x + 4) 10x − 20 = 9x + 36 10x − 9x = 36 + 20 x = 56
What is the time complexity of inserting an element in a heap?
Which architecture allows multiple processors to share memory and work simultaneously?
The time complexity of computing the all-pairs shortest paths in a dense graph with V vertices using Floyd–Warshall is:
Which data structure is used for implementing recursive function calls?
Which algorithm uses a “divide and conquer” strategy?
Which sorting algorithm has an average-case time complexity of O(n log n) and is known for its efficiency, often using a divide-and-conquer approach?
In dynamic programming, which principle ensures correctness by solving overlapping subproblems and storing results?
Which of the following is a critical concern for securing critical infrastructure?
Which algorithm guarantees minimum spanning tree and will produce a different tree depending on tie-breaking?
Consider the following Python code snippet for binary search:
def binary_search(arr, target):
low = 0
...