Algorithms

Question 8

where O(n) stands for order n is:

A
O(n)
B
O(n2)
C
O(n3)
D
O(3n2)
E
O(1.5n2)
F
B, C, D and E
Question 8 Explanation: 

⇒ In this ‘n’ is constant. So, n is added to n times itself which is O(n2).
Hence, (a) is wrong. And rest (B), (C), (D), (E) are correct.
Correct Answer: F
Question 8 Explanation: 

⇒ In this ‘n’ is constant. So, n is added to n times itself which is O(n2).
Hence, (a) is wrong. And rest (B), (C), (D), (E) are correct.

Leave a Reply

Your email address will not be published. Required fields are marked *

error: <b>Alert: </b>Content selection is disabled!!
GATE 1993
February 13, 2024
Question 14316 – Algorithms
February 13, 2024
GATE 1993
February 13, 2024
Question 14316 – Algorithms
February 13, 2024