Design and Analysis of Algorithms MCQs | Page - 4

Dear candidates you will find MCQ questions of Design and Analysis of Algorithms here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

M

Mr. Dubey • 52.61K Points
Coach

Q. What is the result of the recurrences which fall under third case of Master’s theorem (let the recurrence be given by T(n)=aT(n/b)+f(n) and f(n)=nc?

(A) none of the below
(B) t(n) = o(nc log n)
(C) t(n) = o(f(n))
(D) t(n) = o(n2)
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. We can solve any recurrence by using Master’s theorem.

(A) true
(B) false
(C) ---
(D) ---
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Under what case of Master’s theorem will the recurrence relation of merge sort fall?

(A) 1
(B) 2
(C) 3
(D) it cannot be solved using master’s theorem
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Under what case of Master’s theorem will the recurrence relation of stooge sort fall?

(A) 1
(B) 2
(C) 3
(D) it cannot be solved using master’s theorem
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Which case of master’s theorem can be extended further?

(A) 1
(B) 2
(C) 3
(D) no case can be extended
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. What is the result of the recurrences which fall under the extended second case of Master’s theorem (let the recurrence be given by T(n)=aT(n/b)+f(n) and f(n)=nc(log n)k?

(A) none of the below
(B) t(n) = o(nc log n)
(C) t(n)= o(nc (log n)k+1
(D) t(n) = o(n2)
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Under what case of Master’s theorem will the recurrence relation of binary search fall?

(A) 1
(B) 2
(C) 3
(D) it cannot be solved using master’s theorem
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. 7 T (n/2) + 1/n

(A) t(n) = o(n)
(B) t(n) = o(log n)
(C) t(n) = o(n2log n)
(D) cannot be solved using master’s theorem
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. What is the worst case time complexity of KMP algorithm for pattern searching (m = length of text, n = length of pattern)?

(A) o(n)
(B) o(n*m)
(C) o(m)
(D) o(log n)
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. What is the time complexity of Z algorithm for pattern searching (m = length of text, n = length of pattern)?

(A) o(n + m)
(B) o(m)
(C) o(n)
(D) o(m * n)
View Answer Discuss Share

Jump to

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.

Image