time complexity of sorting algorithms in data structure
Answers
Answered by
2
Time complexity of an algorithm is generally estimated by counting the number of operations performed by the algorithm.
Time complexity of an algorithm means the amount of time taken by partucular algorithm to run as a function for representing the input.The time complexity of an algorithm is expressed by "big O notation".
For any algorithm time complexity can be of any type worst case or average case depends on the time taken by that algorithm to complete that task.
Answered by
2
Answer:
Time Complexities of all Sorting Algorithms
Efficiency of an algorithm depends on two parameters:
1. Time Complexity
2. Space Complexity
Time Complexity: Time Complexity is defined as the number of times a particular instruction set is executed rather than the total time is taken. It is because the total time taken also depends on some external factors like the compiler used, processor’s speed, etc.
Space Complexity: Space Complexity is the total memory space required by the program for its execution.
Similar questions