Professional Documents
Culture Documents
Algorithm & Time and Space Complexity
Algorithm & Time and Space Complexity
Algorithm & Time and Space Complexity
============
Algorithm :
Characteristics of Algorithm
----------------------------
1) Input
2) Output
3) Finiteness (limited steps)
4) Definiteness
5) Effectiveness
=====================================================
==================================
#sudo code
==================================
Time Complexity :
=====================================================
Time and Space Complexity depands on
Hardware
OS
Processor
(also on us that how much space we are alocating
for our program in a case of space complexity)
=====================================================
4*4 - non-linear (it incrase x to x^2)
4+4+4+4 - Linear (it increse x to x)
=====================================================
=====================================================
Datastructure operations
-------------------------
-->Creation
-->Tranversing
-->Searching
-->Insertion
-->Deletion
-->Sorting
-->Merging
=====================================================
======================================================