Mapa mental
Time complexity-TC concepts
Conteúdo do mapa
Time complexity-TC concepts
always consider worst case
Asymptotic notations
- Big O
- rules to calculate
- ignore constant multiplier
- ignore lower powers
- indicate upper bound-worst case
- T(n) <=c f(n), n>N, T(n) -- O(f(n))
- TC function is less than or = to upper bound
- mostly used
- rules to calculate
- Big omega
- indicate lower bound
- TC function is greater than or = to lower bound
- T(n)>= c f(n),n>N, T(n) -- omega f(n)
- Big theta
- bounded above and below
- c1. g(n) <= T(n) <=c2 .f(n), n>N, T(n)-- theta f(n)
- Big O
basic rules
- rule of sums
- when 2 for loop one after another
- rule of product
- when 2 nested for loops
- rule of sums
time v/s space complexity trade off
O(1)
- running time independent of input size
order of efficiency
- O(1) > O(log n) > O(n) > O(n log n) > O(n ^2 ) > O(n ^3 )>O(2^n)
method of induction for solving problems
Masters theorm
Informações
- Descrição
- Mapa Mental sobre Time complexity-TC concepts, criado por abhay jagetiya em 21-06-2021.
- Criado por
- abhay jagetiya
- Visualizações
- 0
- Avaliação