Question
Programming and Data Structure Question on Data Structures
Apply the master theorem on T(n)=8T.(2n)+n3
A
O(n2)
B
O(n3)
C
O(n3log2n),
D
O(nlog2n),
Answer
O(n3)
Explanation
Solution
The correct option is(B): O(n3)
Apply the master theorem on T(n)=8T.(2n)+n3
O(n2)
O(n3)
O(n3log2n),
O(nlog2n),
O(n3)
The correct option is(B): O(n3)