A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. Let T(n) be the function defined by T(n) = 1 and T(n) = 2T (n/2) + n, which of the following is TRUE ?
a. T(n) = O(n)
b. T(n) = O(log2n)
c. T(n) = O(n)
d. T(n) = O(n2)
Answer:T(n) = O(n)
vishnu :(June 23, 2018) It's simple the recurrence of merge sort algorithm hence ans will be nlogn.
You have given wrong ans.
Click to Add Comment

Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions:

View All Questions on: Discrete Structures