What are the properties of an algorithm?



What are the properties of an algorithm?..

Answer / Shobhit Johri

An algorithm is a step-by-step procedure to solve a problem. It has the following properties: 1) Input - The data or initial state that defines the problem, 2) Output - The final result or solution, 3) Definiteness - Each step must be well-defined and unambiguous, 4) Finiteness - The algorithm must terminate after a finite number of steps, 5) Reliability - If the algorithm follows its defined steps without error, it will always produce the same output for a given input, 6) Uniqueness - Every algorithm has one unique solution path.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

How to excel in data structures and algorithms?

1 Answers  


If you have to store one lakh objects, what will be a better option- a hash map or an array list?

1 Answers   DELL,


What are the Advantages and disadvantages of Array?

1 Answers  


What are the types of linked list?

1 Answers  


Give a good data structure for having n queues ( n not fixed) in a finite memory segment. You can have some data-structure separate for each queue. Try to use at least 90% of the memory space.

1 Answers  


Does treemap allow duplicate keys?

1 Answers  


List the data structures which are used in rdbms, network data modal, and hierarchical data model.

1 Answers  


Can constructor be static?

1 Answers  


What does isempty() member method determines?

1 Answers  


What is array traversing?

1 Answers  


Is arraylist heterogeneous?

1 Answers  


Does treemap sort automatically?

1 Answers  


Categories