answersLogoWhite

0

What is algorithm and define its complexity?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

In mathematics and computer science, an algorithm is an effective method expressed as a finite list of well-defined instructions for calculating a function Algorithms are used for calculation, data processing, and automated reasoning.

By complexityAlgorithms can be classified by the amount of time they need to complete compared to their input size. There is a wide variety: some algorithms complete in linear time relative to input size, some do so in an exponential amount of time or even worse, and some never halt. Additionally, some problems may have multiple algorithms of differing complexity, while other problems might have no algorithms or no known efficient algorithms. There are also mappings from some problems to other problems. Owing to this, it was found to be more suitable to classify the problems themselves instead of the algorithms into equivalence classes based on the complexity of the best possible algorithms for them.

Burgin (2005, p. 24) uses a generalized definition of algorithms that relaxes the common requirement that the output of the algorithm that computes a function must be determined after a finite number of steps. He defines a super-recursive class of algorithms as "a class of algorithms in which it is possible to compute functions not computable by any Turing machine" (Burgin 2005, p. 107). This is closely related to the study of methods of hypercomputation.

veer thakur

chandigarh

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is algorithm and define its complexity?
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.


Define algorithm and explain its criteria?

algorithm criteria


Describe the various notations used to define the effiency of An algorithm?

notations used to define the efficiency of An algorithm


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)