Trouble with Recurrence Relations?

Click For Summary
SUMMARY

This discussion focuses on solving recurrence relations, specifically the examples t(n) = 5t(n/2) + n, t(n) = t(n/2) + 3logn, and t(n) = 2t(n/2) + n^2. Participants emphasize the importance of transforming the recurrence to fit a standard form for analysis, suggesting the use of the Master Theorem for asymptotic analysis. The conversation highlights the necessity of addressing odd sequences separately and establishing independent initial conditions for accurate solutions.

PREREQUISITES
  • Understanding of recurrence relations
  • Familiarity with the Master Theorem for asymptotic analysis
  • Basic knowledge of logarithmic functions
  • Experience with series and sequences
NEXT STEPS
  • Study the Master Theorem in detail for solving recurrence relations
  • Practice transforming recurrence relations into standard forms
  • Explore techniques for unrolling recurrences
  • Learn about asymptotic notation and its applications
USEFUL FOR

Students and educators in computer science, mathematicians focusing on algorithm analysis, and anyone looking to deepen their understanding of recurrence relations and their solutions.

deedex11
Messages
1
Reaction score
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
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:


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.
 

Similar threads

Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K