answersLogoWhite

0


Best Answer

Complexity of an algorithm is the study of how long a program will take to run, depending on the size of its input & long of loops made inside the code

Specifically, the complexity of an algorithm is a measure of how long it takes to complete (give an answer) relative to increasing sizes of input data. Thus, complexity is not concerned with how long it took the algorithm to run using X amount of data. Rather, it is concerned with the relationship in runtime when using X amount of data, 2X amounts of data, 10X amounts of data, etc. While complexity usually refers to execution time, it can also be applied to other resource usage (for example, memory allocation). In all cases, complexity is concerned with the relationship between the rate of increase in resource consumption and the rate of increase of the size of the data set being worked on.

Complexity is closely related to the concepts of scalingand efficiency, but is NOT an exact equivalence to either.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

nkksdkckskjdjkcComputer scientists have devoted a great deal of effort to measuring computer program "complexity", since many large software systems can be used for 10, 15, or even 20 years. If complexities could somehow be identified, then programmers could adjust maintenance procedures accordingly. What is needed is some method of pinpointing the characteristics of a computer program that are difficult to maintain and measuring the degree of the presence (or lack of it). Such a method could be used in preparing "quality specifications" for programs that are to be written; checking specification compliance of programs after they have been written, but before they are delivered; making proper design trade-offs between development and maintenance costs; and selecting a particular type of software.

Descriptors: software development | programming languages | maintenance | documentation | specifications | quality control

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

The complexity of an algorithm tells you how well the algorithm will scale when applied to different sized problem sets.

Time complexity will allow you to estimate how much longer it will take.

Space complexity will allow you to estimate how much more storage space will be required.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is meant by the complexity of an algorithm?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Calculate the Time and Space complexity for the Algorithm to add 10 numbers?

The algorithm will have both a constant time complexity and a constant space complexity: O(1)


What is complsexity of an algorithm?

Complexity of an algorithm is a measure of how long an algorithm would take to complete given


What are the two main measures for the efficiency of an algorithm?

Time complexity and space complexity.


What is are the time complexity or space complexity of DES algorithm?

time complexity is 2^57..and space complexity is 2^(n+1).


What is the time complexity of Dijkstra's algorithm?

Dijkstra's original algorithm (published in 1959) has a time-complexity of O(N*N), where N is the number of nodes.


What will be the time complexity of LCS algorithm?

o(nm)


What is time complexity of an algorithm?

Time complexity is a function which value depend on the input and algorithm of a program and give us idea about how long it would take to execute the program


Average complexity of heap short algorithm?

The average heap short complexity is O(log n)


How is time complexity of an algorithm calculated?

The usual definition of an algorithm's time complexity is called Big O Notation. If an algorithm has a value of O(1), it is a fixed time algorithm, the best possible type of algorithm for speed. As you approach O(∞) (a.k.a. infinite loop), the algorithm takes progressively longer to complete (an algorithm of O(∞) would never complete).


Time complexity of backtraCking algorithm?

O 2^(n)


What is the complexity of Floyd-warshall algorithm?

O(|v|^3)


What are the two crucial factors that are used to evaluate the behavior of any implemented algorithm?

Time complexity and space complexity. More specifically, how well an algorithm will scale when given larger inputs.