Trouble with Recurrence Relations?

In summary, the person is trying to solve a recurrence relation but is having difficulty generalizing the last part. They are looking for help and appreciate any help given.
  • #1
deedex11
1
0
1. I am trying to practice solving recurrence relations but get stuck when it comes to generalizing the last part of them and would be grateful if someone could offer some help. I'm not very good with series which is why I may be having some problems with them. Here are a few examples if its easier for you to explain with an example (these aren't homework questions, just random ones takes from a book):



2. t(n) = 5t(n/2) + n
t(n) = t(n/2) + 3logn
t(n) = 2t(n/2) + n^2




3. for the first one i tried to unroll it and have come up with 5^nt(1) + (5^n)/n(nlogn) + n. but this could be totally wrong. any help appreciated!
 
Physics news on Phys.org
  • #2
welcome to pf!

hi deedex11! welcome to pf! :smile:

(try using the X2 icon just above the Reply box :wink:)
deedex11 said:
t(n) = 5t(n/2) + n

this is a weird recurrence relation since it doesn't go from n to n + 1 :frown:

you need to make it do that!

so, for each odd whole number A, there's a sequence {A2m}, and the sequences for different As don't overlap, so you'll solve each sequence separately, with its own independent initial condition (and constant)

in other words, solve t(A2m) = 5t(A2m-1) + A2m :wink:
 
Last edited:
  • #3


tiny-tim said:
hi deedex11! welcome to pf! :smile:

(try using the X2 icon just above the Reply box :wink:)


this is a weird recurrence relation since it doesn't go from n to n + 1 :frown:

you need to make it do that!

so, for each odd whole number A, there's a sequence {A2m}, and the sequences for different As don't overlap, so you'll solve each sequence separately, with its own independent initial condition (and constant)

in other words, solve t(A2m) = 5t(A2m-1) + A2m :wink:

I don't see how the T(n/2) makes this odd; especially considering the fact that it seems as though he is more concerned with an asymptotic analysis than an actual answer. The relation in question can be "solved" using the Master Theorem.
 

1. What is a recurrence relation?

A recurrence relation is a mathematical equation or formula that describes a sequence of numbers or values, where each term is defined in terms of previous terms in the sequence.

2. How do you solve a recurrence relation?

The most common method for solving a recurrence relation is through iteration or using a recurrence tree. Another approach is to use generating functions, which can convert the recurrence relation into a polynomial equation.

3. What are the main challenges in dealing with recurrence relations?

The main challenges in dealing with recurrence relations are finding closed-form solutions, understanding the behavior of the sequence for large values, and determining the initial conditions or base cases.

4. Can recurrence relations be used in other fields besides mathematics?

Yes, recurrence relations can be used in many fields, including computer science, physics, biology, and economics. They can be used to model and analyze complex systems and phenomena.

5. How do you know when to use a recurrence relation in problem-solving?

Recurrence relations are commonly used when a problem involves a sequence of values that can be defined in terms of previous values. They are also useful when there is a recursive or iterative algorithm involved in finding a solution.

Similar threads

Replies
8
Views
993
  • Calculus and Beyond Homework Help
Replies
1
Views
216
  • Calculus and Beyond Homework Help
Replies
2
Views
911
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
258
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
  • Calculus and Beyond Homework Help
Replies
12
Views
2K
  • Calculus and Beyond Homework Help
Replies
8
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
Back
Top