Computer Sciences > GATE 2026 SET-2 > Algorithms
Consider an array π΄ of integers of size π. The indices of π΄ run from 1 to π. An
algorithm is to be designed to check whether π΄ satisfies the condition given below.
βπ,πβ{1,β¦,πβ1} such that π>π,(π΄[π+1]βπ΄[π])> (π΄[π+1]βπ΄[π])
Which one of the following gives the worst case time complexity of the fastest algorithm that can be designed for the problem?
βπ,πβ{1,β¦,πβ1} such that π>π,(π΄[π+1]βπ΄[π])> (π΄[π+1]βπ΄[π])
Which one of the following gives the worst case time complexity of the fastest algorithm that can be designed for the problem?
Correct : a
Similar Questions
Match the following
(P) Primβs algorithm for minimum spanning tree
(i) Backtracking
(Q) Floyd-Warshall algorithm fo...
Consider the following table
Algorithms
Design Paradigms
(P) Kruskal
(i) Divide and Conquer...
Consider functions Function 1 and Function 2 expressed in pseudocode as follows:
Let f1(n) and f2(n) denote the number of times the statement "x = x + 1" is...
Total Unique Visitors
Loading......