search
HomeCommon Problemwhat is algorithm

what is algorithm

Jul 23, 2019 am 09:47 AM
algorithm

Algorithm refers to an accurate and complete description of a problem-solving solution. It is a series of clear instructions for solving a problem. The algorithm represents a systematic method to describe the strategic mechanism for solving the problem; the instructions in the algorithm describe a calculation. , when it runs, it can start from an initial state and initial input, go through a series of limited and clearly defined states, and finally produce output and stop at a final state.

what is algorithm

#In layman's terms, it means being able to obtain the required output within a limited time for a certain standard of input. (Recommended learning: PHP Video Tutorial)

If an algorithm is defective or not suitable for a certain problem, executing this algorithm will not solve the problem. Different algorithms may use different time, space, or efficiency to complete the same task. The quality of an algorithm can be measured by its space complexity and time complexity.

The instructions in an algorithm describe a computation that, when run, can start from an initial state and a (possibly empty) initial input, go through a limited and clearly defined series of states, and finally produce an output and Stop at a final state. The transition from one state to another is not necessarily deterministic. Some algorithms, including randomized algorithms, contain random inputs.

Features

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 executing a limited number of steps;

Accuracy

(Definiteness )

Each step of the algorithm must be clearly defined;

Input

(Input)

An algorithm has 0 or more inputs to describe the initial situation of the operation object. The so-called 0 inputs mean that the algorithm itself sets the initial conditions;

Output items

( Output)

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

Feasibility

(Effectiveness)

Any computational step performed in the algorithm can be Decompose it into basic executable operation steps, that is, each calculation step can be completed within a limited time (also called effectiveness).

For more PHP-related technical articles, please visit the PHP Graphic Tutorial column to learn!

The above is the detailed content of what is algorithm. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)