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 is an algorithm?

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

Share

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

What this article shares with you is about what the algorithm is. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

The algorithm refers to the accurate and complete description of the problem-solving scheme, and it is a series of clear instructions to solve the problem. 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.

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:

Finiteness

(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

Input item

(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 term

(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).

The above is what the algorithm is, the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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