Traditional Culture Encyclopedia - Traditional festivals - Common tools for representing algorithms
Common tools for representing algorithms
1. algorithm can be described in many different ways, such as natural language, pseudocode, flow chart, or programming language (such as C, C++).
2. It is an excellent method to express the idea of the algorithm with graphics in the flow chart, because a thousand words are not worth a picture. Flowchart has been applied in assembly language and early BASIC language environment. There is also a related PAD diagram, which is very suitable for PASCAL or C language.
3. The spatial complexity of the algorithm refers to the spatial resources that the algorithm needs to consume. Its calculation and representation method is similar to time complexity, which is generally expressed by the asymptotic nature of complexity. Compared with time complexity, the analysis of spatial complexity is much simpler.
Flowchart is the only graphical tool used to represent the algorithm.
The traditional flowchart is shown in the following figure: Detailed explanation of the flowchart: (1) defines three variables, namely I (for loop counting), m (for saving a relatively large value) and a (for inputting a value). (2) Assign a value to the loop variable I.
Flowchart: It is an excellent method to express the idea of algorithm with graphics, because a thousand words are not worth a picture. Flowchart has been applied in assembly language and early BASIC language environment. There is also a related PAD diagram, which is very suitable for PASCAL or C language.
Flowchart is a graphical representation of information flow, viewpoint flow or component flow through the system. In an enterprise, the flow chart is mainly used to illustrate a certain process. This process can be a process flow on the production line or a necessary management process to complete a task.
Flowchart is one of the main tools for algorithm description. AlgorithmDescription refers to a detailed description of the designed algorithm in a way of communicating with people.
Flowchart Flowchart: It is an excellent method to express the idea of the algorithm with graphics, because a thousand words are not worth a picture. Flowchart has been used in assembly language and early BASIC language environment, but it gradually died out because of its randomness and many side effects.
Common tools for describing algorithms
1, Flowchart Flowchart is a good tool to describe code. By using the flow chart, the three basic structural components in the process of order execution-sequence structure, selection structure, circulation structure, etc. It can be well expressed.
2, prismatic. Process is a logical operation process to meet specific needs. Flowchart is a random chart with no standard and no fixed drawing method. Flowcharts can only be drawn according to things.
3. There are many tools to describe the algorithm, such as natural language, traditional flow chart, N-S flow chart, pseudo code and so on. The algorithm is well understood in natural language. It is especially suitable for describing the algorithm of front-end sequence program structure.
4. Flowchart is one of the main tools for algorithm description. AlgorithmDescription refers to a detailed description of the designed algorithm in a way of communicating with people.
5, relative to the computer's "artificial" language, such as programming language. Pseudo-code is an algorithm description language. The purpose of using pseudocode is to make the described algorithm easy to implement in any programming language (Pascal, C, Java, etc.). ).
6. Flowchart is a common way to describe the data structure of algorithm; Answer choice c; Data structure is a way for computers to store and organize data. A data structure refers to a collection of data elements that have one or more specific relationships with each other. Generally, a well-chosen data structure can lead to higher operation or storage efficiency.
- Previous article:How about a montreal cold drink salesman?
- Next article:Write a composition about food.
- Related articles
- Is Qianqing Qianmen Jiangnanfu a resettlement house?
- When was my world introduced to China?
- Sophia, Changsha
- As a mobile game, why does the glory of the king live longer than other mobile games?
- In ancient times, when schoolchildren were enrolled in school, what ceremonies were usually held
- What are the basic principles of nursing ethics?
- The reason why Japan's petal kiln became a teacup
- How much is a square meter of integrated wall
- The basic needling method of peach blossom is as follows
- What ethnic minorities wear