The document discusses the time complexity of a recursive function T(n) defined by the relation T(n)=2T(n/2)+constant. It explains the structure of a binary tree where each level i contains 2^i nodes, leading to a total time complexity of O(n). The height of the tree is log base 2 of n, and the total time taken is approximately proportional to n.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views1 page
Notes 1
The document discusses the time complexity of a recursive function T(n) defined by the relation T(n)=2T(n/2)+constant. It explains the structure of a binary tree where each level i contains 2^i nodes, leading to a total time complexity of O(n). The height of the tree is log base 2 of n, and the total time taken is approximately proportional to n.