मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता १२

What are the factors that influence time and space complexity? - Computer Science

Advertisements
Advertisements

प्रश्न

What are the factors that influence time and space complexity?

थोडक्यात उत्तर

उत्तर

Time Complexity:
The Time complexity of an algorithm is given by the number of steps taken by the algorithm to complete the process.

Space Complexity:
The space complexity of an algorithm is the amount of memory required to run to its completion. The space required by an algorithm is equal to the sum of the following two components:

A fixed part is defined as the total space required to store certain data and variables for an algorithm. For example, simple variables and constants used in an algorithm. A variable part is defined as the total space required by variables, which sizes depend on the problem and its iteration. For example: recursion used to calculate the factorial of a given value n.

shaalaa.com
Complexity of an Algorithm
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 4: Algorithmic Strategies - Evaluation [पृष्ठ ४४]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
पाठ 4 Algorithmic Strategies
Evaluation | Q 3. | पृष्ठ ४४

संबंधित प्रश्‍न

Discuss Algorithmic complexity and its types.


Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×