-1

I need to give T(n) in asymptotic notation for the following recursions:

T(n) = 2T(n/2) + *big_omega(n)
T(n) = T(n-1) + *big_omega(n)

And possibly explain the reasoning? Thanks

HJGBAUM
  • 297
  • 5
  • 16

1 Answers1

0

Use master theorem

1) n = O(n^log_n(n)) -> Case 1

Use unrolling

2) T(n) = T(n-1) + O(n)

T(n-1) = T(n-2) + O(n-1) -> T(n) = T(n-2) + O(n-1) + O(n)

...

try to form a form a non recursive formula

Jeremy Fisher
  • 2,510
  • 7
  • 30
  • 59