Question
They also lay claim to being the only brothers to finish
first and second in the same race. (Q.21-25) Read each sentence to find out whether there is any error in it. The error, if any, will be in one part of the sentence. If there is no error, mark the answer 5.Solution
No error
Which algorithm is used to detect cycles in a directed graph?
Which algorithm uses a “divide and conquer” strategy?
What is the primary goal of Cyber Security?
Which sorting algorithm is best suited for a nearly sorted array, exhibiting O(N) time complexity in its best case?
Which algorithm guarantees the shortest path in a graph with negative weights but no negative cycles?
Which of the following is true for the time complexity of binary search?
Consider a directed acyclic graph (DAG). The problem of finding the longest path in a DAG (with edge weights) can be solved in:
Which data structure is used in BFS (Breadth-First Search)?
The time complexity of the best case for QuickSort is:
Which algorithm finds the longest common subsequence (LCS) of two sequences?