Question
T (n) = 8T(n/2) + Cn, if n > 1
= b, if n =1
Where b and c are constants.
The order of the algorithm corresponding to above recurrence relation is:
a.
n
b.
n^2
c.
n lg n
d.
n^3
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Consider the recurrence relation: T (n) = 8T(n/2) + Cn, if n > 1 = b, if n =1 Where b and c are constants. The order of the algorithm corresponding to above...
Similar Questions
Discover Related MCQs
Q. The worst case time complexity of AVL tree is better in comparison to binary search tree for
View solution
Q. Which of the following are two special functions that are meant for handling exception, that occur during exception handling itself ?
View solution
Q. Given an empty stack, after performing push (1), push (2), Pop, push (3), push (4), Pop, Pop, push(5), Pop, what is the value of the top of the stack ?
View solution
Q. The total number of spanning trees that can be drawn using five labelled vertices is:
View solution
Q. Suppose there are logn sorted lists of n logn elements each. The time complexity of producing a sorted list of all these elements is (use heap data structure)
View solution
Q. The Object Modelling Technique (OMT) uses the following three kinds of model to describe a system
View solution
Q. An example of a dictionary-based coding technique is
View solution
Q. A algorithm is guaranteed to find an optimal solution if
View solution
Q. What is the value of the postfix expression ?
abc d + - * (where a = 8 , b = 4 , c = 2 and d = 5)
View solution
Q. If the queue is implemented with a linked list, keeping track of a front pointer and a rear pointer, which of these pointers will change during an insertion into a non-empty queue?
View solution
Q. ___________ is often used to prove the correctness of a recursive function.
View solution
Q. For any B-tree of minimum degree t ≥ 2, every node other than the root must have atleast keys and every node can have at most ____ keys.
View solution
Q. Given two sorted list of size 'm' and 'n' respectively. The number of comparison needed in the worst case by the merge sort algorithm will be
View solution
Q. Match the following with respect to programming languages
a. Structured Language i. JAVA
b. Non-structured Language ii. BASIC
c. Object Oriented Programming Language iii. PASCAL
D. Interpreted Programming Language iv. FORTRAN
codes:
a b c d
View solution
Q. The compiler converts all operands up to the type of the largest operand is called
View solution
Q. _____________ comparisons are necessary in the worst case to find both the maximum and minimum of n numbers.
View solution
Q. Let A and B be two n x n matrices,The efficient algorithm to multiply the two matrices , has the time complexity
View solution
Q. Assuming there are n keys and each key is in the range [0, m - 1]. The run time of bucket sort is
View solution
Q. You have to sort a list L, consisting of a sorted list followed by a few 'random' elements. Which of the following sorting method would be most suitable for such a task?
View solution
Q. A full binary tree with n leaves contains
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Data Structures and Algorithms? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!