Time factor when determining the efficiency of an algorithm is measured by
Answers
Answered by
1
Answer:
it is measured by counting key operation
Answered by
0
The time factor while determining the efficiency of an algorithm depends mainly on the amount of operations.
Explanation:
An algorithm is alleged to be efficient if it takes less time and space hence running at an appropriate amount of resources and value. The time taken by an algorithm to run efficiently depends on the quantity of operations that are being meted out by the algorithm and not the quantity of statements in this algorithm.For example, there are two algorithms one contains a loop running for a non-zero number of times and another one includes a simple 'print' statement. Both of them have an almost similar number of statements but the quantity of operations within the loop is over within the 'print' algorithm. Hence, the time taken by the primary algorithm is more.Similar questions
Physics,
6 months ago
Hindi,
6 months ago
Social Sciences,
6 months ago
Chemistry,
1 year ago
English,
1 year ago