Solving recurrence by changing variables

Click For Summary
SUMMARY

The discussion focuses on solving the recurrence relation T(n) = 2T(√n) + log n by changing variables. The substitution log n = m leads to the transformation T(2^m) = 2T(2^(m/2)) + m. The user seeks to express the equation in terms of k by defining S(k) = T(2^m), resulting in the equation S(k) = 2S(k/2) + m. The key challenge is to establish the relationship between k and m to facilitate this transformation.

PREREQUISITES
  • Understanding of recurrence relations in algorithm analysis
  • Familiarity with logarithmic functions and their properties
  • Knowledge of variable substitution techniques in mathematical expressions
  • Basic concepts of algorithm complexity and Big O notation
NEXT STEPS
  • Research the Master Theorem for analyzing recurrence relations
  • Study variable substitution methods in solving recurrences
  • Learn about the implications of logarithmic transformations in algorithm analysis
  • Explore advanced recurrence solving techniques such as the Akra-Bazzi method
USEFUL FOR

Mathematicians, computer scientists, and software engineers interested in algorithm analysis and optimization techniques for solving complex recurrence relations.

22990atinesh
Messages
143
Reaction score
1
Consider the below recurrence
##T(n) = 2 T(\sqrt(n)) + \log n##
substituting ##\log n = m \implies n = 2^m##
##T(2^m) = 2 T(2^{\frac{m}{2}}) + m##
substituting ##S(k) = T(2^m)## I'm getting below equation
##S(k) = 2 S(\frac{k}{2}) + m##
How can I change 'm' to 'k' in above equation.
 
Technology news on Phys.org
22990atinesh said:
Consider the below recurrence
##T(n) = 2 T(\sqrt(n)) + \log n##
substituting ##\log n = m \implies n = 2^m##
##T(2^m) = 2 T(2^{\frac{m}{2}}) + m##
substituting ##S(k) = T(2^m)## I'm getting below equation
##S(k) = 2 S(\frac{k}{2}) + m##
How can I change 'm' to 'k' in above equation.
You need to define the relation between ##k## and ##m## when setting ##S(k) = T(2^m)##.
You could define ##S## by ##S(m)=T(2^m)##.
Then you get ##S(m)=2S(\frac{m}{2}) + m##.
 
  • Like
Likes   Reactions: 22990atinesh

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
Replies
2
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
31
Views
4K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
Replies
6
Views
1K