Chapter 1.1
Chapter 1.1
Linked List
Tree
Graph
1. Time Complexity
2. Space Complexity
Space Complexity
Its the amount of memory space required by the algorithm, during the course of its execution.
Space complexity must be taken seriously for multi-user systems and in situations where
limited memory is available.
An algorithm generally requires space for following components :
Instruction Space : Its the space required to store the executable version of the program.
This space is fixed, but varies depending upon the number of lines of code in the
program.
Data Space : Its the space required to store all the constants and variables value.
Environment Space : Its the space required to store the environment information needed
Time Complexity
Time Complexity is a way to represent the amount of time needed by the program to run to
completion. We will study this in details in our section.
2. Big Omega denotes "more than or the same as" <expression> iterations.