Solving for specific variable when solving a recurrence equation

Click For Summary
SUMMARY

The discussion centers on solving the recurrence equation T(n) = T((n-1)/2) + 2C, where C is a constant. The user attempts to express T(n) in terms of k, leading to the equation n-k = 2^k. However, they encounter difficulties in isolating k due to the complexity introduced by the n-k term. A suggestion is made to re-evaluate the unrolling process, resulting in a modified equation T(n) = T((n-2^k+1)/2^k) + 2kC, which may provide a clearer path to solving for k.

PREREQUISITES
  • Understanding of recurrence relations and their applications
  • Familiarity with logarithmic functions, specifically log base 2
  • Knowledge of mathematical induction and proof techniques
  • Experience with algorithm analysis and complexity
NEXT STEPS
  • Explore advanced techniques in solving recurrence relations
  • Study the Master Theorem for analyzing algorithm complexity
  • Learn about generating functions as a method for solving recurrences
  • Investigate the implications of variable transformations in recurrence equations
USEFUL FOR

Mathematicians, computer scientists, and software engineers who are involved in algorithm design, particularly those focusing on recurrence relations and their solutions.

ATroelstein
Messages
15
Reaction score
0
I have the following recurrence equation, where C is just some constant:
$$
T(n) = 0, n = 1\\
T(n) = T(\frac{n-1}{2}) + 2C, n > 1
$$

Using a top-down approach to unrolling the equation to find the pattern, I get:

$$
T(n) = T(\frac{n-k}{2^{k}}) + 2kC
$$

Now I want to solve for k and associate it with n to finish solving the equation without k in it. In order to get:

$$
T(\frac{n-k}{2^{k}}) = T(1)
$$

Then:

$$
n-k = 2^{k}
$$

The problem I am running into is that I'm having trouble solving this for k. I have worked through many other examples where:

$$
n = 2^{k}
$$

and then I know:

$$
k = log_2 n
$$

But having the n-k is making it difficult for me to solve for k. Thanks in advance.
 
Physics news on Phys.org
ATroelstein said:
Using a top-down approach to unrolling the equation to find the pattern, I get:

$$
T(n) = T(\frac{n-k}{2^{k}}) + 2kC
$$

Hi ATroelstein! :)

The equation you're trying to solve is not very solvable.

But perhaps you could redo the unrolling of the equation and get:
$$
T(n) = T\left(\frac{n-2^k+1}{2^k}\right) + 2kC
$$
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 29 ·
Replies
29
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K