Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the characteristics of computer algorithms?

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

The editor will share with you what are the characteristics of computer algorithms. I hope you will get something after reading this article. Let's discuss it together.

The five characteristics of the computer algorithm are: 1, finite, the algorithm must be able to terminate after the execution of a limited number of steps; 2, accuracy, each step of the algorithm must be accurately defined; 3, input items, an algorithm has 0 or more inputs; 4, output items, an algorithm has one or more outputs; 5, feasibility, each calculation step can be completed in a limited time.

Algorithm (Algorithm) refers to the accurate and complete description of the problem-solving scheme, is a series of clear instructions to solve the problem, and the algorithm represents the strategy mechanism to describe the problem-solving in a systematic way. In other words, for a certain standard input, the required output can be obtained in a limited time. If an algorithm is flawed or is not suitable for a problem, executing the algorithm will not solve the problem. Different algorithms may use different time, space or efficiency to accomplish the same task. The advantages and disadvantages of an algorithm can be measured by space complexity and time complexity.

The instruction in the algorithm describes a calculation that starts with an initial state and (possibly empty) initial input, goes through a series of limited and clearly defined states, and finally produces an output and stops at a final state. The transition from one state to another is not necessarily certain. Some algorithms, including randomization algorithms, include some random inputs.

An algorithm should have the following five important characteristics:

Finite (Finiteness)

The finiteness of the algorithm means that the algorithm must be able to terminate after a limited number of steps.

Accuracy (Definiteness)

Each step of the algorithm must be accurately defined

Entry (Input)

An algorithm has 0 or more inputs to depict the initial condition of the Operand. The so-called zero input means that the algorithm itself determines the initial conditions.

Output item (Output)

An algorithm has one or more outputs to reflect the results of processing the input data. An algorithm without output is meaningless.

Feasibility (Effectiveness)

Any calculation step performed in the algorithm can be decomposed into basic executable operation steps, that is, each calculation step can be completed in a limited time (also known as validity).

After reading this article, I believe you have a certain understanding of "what are the characteristics of computer algorithms". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for your reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report