# FUNDAMENTALS OF COMPUTER

## COMPUTER PROGRAMMING FUNDAMENTALS

### WHAT IS PROGRAMMING

 Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
efficient algorithms are good, we generally measure efficiency of an algorithm based on
 A TIME B RHYTHM C PATTERN D SPACE
Explanation:

Detailed explanation-1: -The two main measures for the efficiency of an algorithm are time complexity and space complexity, but they cannot be compared directly. So, time and space complexity is considered for algorithmic efficiency. An algorithm must be analyzed to determine the resource usage of the algorithm.

Detailed explanation-2: -Time and space complexity are the two main measures for calculating algorithm efficiency, determining how many resources are needed on a machine to process it. Where time measures how long it takes to process the algorithm, space measures how much memory is used.

Detailed explanation-3: -The efficiency of an algorithm is mainly defined by two factors i.e. space and time. A good algorithm is one that is taking less time and less space, but this is not possible all the time. There is a trade-off between time and space. If you want to reduce the time, then space might increase.

Detailed explanation-4: -An algorithm is considered efficient if its resource consumption, also known as computational cost, is at or below some acceptable level. Roughly speaking, ‘acceptable’ means: it will run in a reasonable amount of time or space on an available computer, typically as a function of the size of the input.

There is 1 question to complete.