• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Algorithms | Analysis of Algorithms | Question 17

Let s be a sorted array of n integers. Let t(n) denote the time taken for the most efficient algorithm to determined if there are two elements with sum less than 1000 in s. which of the following statements is true? (GATE CS 2000)
a) t (n) is 0 (1)
b) n < t (n) < n[Tex] {log_2 n} [/Tex]
c) n log 2 n < t (n) < [Tex]{n \\choose 2} [/Tex]
d) t (n) = [Tex]{n \\choose 2} [/Tex]

(A)

a

(B)

b

(C)

c

(D)

d

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments