Please enable JavaScript.
Coggle requires JavaScript to display documents.
How Write and Analyze Algorithm - Coggle Diagram
How Write and Analyze Algorithm
1. How : to Write Algorithm
No use of any proper santax
3. How to Analyse Simple Algorithm.
Time
f(n)
O(1), O(n), O(n^2), O(nlog(n))
O => Big O or
Order
Single Statement result into unit time addition
Programmatically they may consume more than unit memory or time ...
var = a
2 + b
2
1 unit time use
4 time of time with different time consume each
Space
S(n)
Every variable result into single Words as we don't know about weather it is float, int or other dtype
2. Criteria for Analysing Algorithm
Register
Power
Network/ Bandwidth
Time
Space