Processor and memory
Complexity and capacity
Time and space
Data and space
Counting microseconds
Counting the number of key operations
Counting the number of statements
Counting the kilobytes of algorithm
Counting the maximum memory needed by the algorithm
Counting the minimum memory needed by the algorithm
Counting the average memory needed by the algorithm
Counting the maximum disk space needed by the algorithm
Best case
Worst case
Average case
Null case
Item is somewhere in the middle of the array
Item is not in the array at all
Item is the last element in the array
Item is the last element in the array or is not there at all
When Item is somewhere in the middle of the array
When Item is not in the array at all
When Item is the last element in the array
When Item is the last element in the array or is not there at all
Much more complicated to analyze than that of worst case
Much more simpler to analyze than that of worst case
Sometimes more complicated and some other times simpler than that of worst case
None or above
O(n)
O(log n)
O(n2)
O(n log n)
O(n)
O(log )
O(n2)
O(n log n)
O(n)
O(log n)
O(n2)
O(n log n)
O(n)
O(log n)
O(n2)
O(n log n)
Internal change
Inter-module change
Side effect
Side-module update
Arrays
Linked lists
Both of above
None of above
Trees
Graphs
Arrays
None of above
Sorting
Merging
Inserting
Traversal
Traversal
Search
Sort
None of above
For relatively permanent collections of data
For the size of the structure and the data in the structure are constantly changing
For both of above situation
For none of above situation
For relatively permanent collections of data
for the size of the structure and the data in the structure are constantly changing
For both of above situation
For none of above situation
The name of array
the data type of array
The first data from the set to be stored
The index set of the array
By this way computer can keep track only the address of the first element and the addresses of other elements can be calculated
the architecture of computer memory does not allow arrays to store other than serially
Both of above
None of above