本文共 4047 字,大约阅读时间需要 13 分钟。
流程图与算法
Welcome back readers, today I’ll be discussing the difference between flowchart and algorithm. But before getting started, I want to discuss a bit about both the topics.
欢迎回到读者手中,今天我将讨论流程图和算法之间的区别。 但是在开始之前,我想先讨论一下这两个主题。
Flowchart
流程图
A flowchart is a diagram which represents different steps that can help in solving a problem. It is a diagram which is made step by step using different shapes and sizes of arrows which show their connection.
流程图是表示可以帮助解决问题的不同步骤的图。 该图是使用不同形状和大小的箭头逐步显示的,以显示它们的连接。
It was first introduced by Frank Gilbert in 1921. The chart consists of some mathematical shapes like arrows, square, rhombus or diamond, hexagon, parallelogram, etc.
它是1921年由Frank Gilbert首次提出的。图表由一些数学形状组成,例如箭头,正方形,菱形或菱形,六边形,平行四边形等。
Types of flowchart:
流程图类型:
It is a flow of information that illustrates a solution model to a particular program. It is the pictorial form of representation of a process and algorithm is done using a step by step process.
它是说明特定程序的解决方案模型的信息流。 它是过程表示的图形形式,算法是使用逐步过程完成的。
Algorithm
算法
An algorithm is a step by step process which is used in solving mathematical or sometimes computational problems. The word ‘algorithm’ came from al-Khwarizmi. He was a Persian astronomer, geographer, mathematician and scholar.
算法是一步一步的过程,用于解决数学或有时是计算问题。 “算法”一词来自al-Khwarizmi。 他是波斯的天文学家,地理学家,数学家和学者。
Other ways of classification for algorithms is through the means of recursion, serial, parallel or distributed and they can be also viewed as controlled logical deduction.
算法的其他分类方法是通过递归,串行,并行或分布式的方式进行,也可以将它们视为受控逻辑推论。
An algorithm can be expressed in any language including natural language, programming language, pseudocode etc. They can be converted into flowcharts.
可以用任何语言(包括自然语言,编程语言,伪代码等)表达算法。可以将它们转换为流程图。
Flowchart | Algorithm |
Block by block information diagram representing the data flow. | Step by step instruction representing the process of any solution. |
Easy to understand by any person. | Bit difficult for the layman. |
It uses symbols for processes and I/O. | No symbols are used, completely in text. |
Have some rule to create. | No hard and fast rule. |
Difficult to debug errors. | Easy to debug errors. |
It is easy to make flowchart. | It is difficult to write algorithm as compared to flowchart. |
流程图 | 算法 |
代表数据流的逐块信息图。 | 代表任何解决方案过程的分步说明。 |
容易被任何人理解。 | 对于外行来说有点困难。 |
它为过程和I / O使用符号。 | 不使用任何符号,完全在文本中使用。 |
有一些规则可以创建。 | 没有硬性规定。 |
难以调试错误。 | 易于调试错误。 |
制作流程图很容易。 | 与流程图相比,很难编写算法。 |
Now let’s discuss the advantages and disadvantages of both.
现在让我们讨论两者的优点和缺点。
Advantages of Flowchart
流程图的优点
Disadvantages of Flowchart
流程图的缺点
Advantages of Algorithm
算法优势
Disadvantages of Algorithm
算法的缺点
If you have any doubts related to flowchart vs algorithm, then feel free to ask it in the comment section below.
如果您对流程图与算法有任何疑问,请随时在下面的评论部分提出。
翻译自:
流程图与算法
转载地址:http://doggb.baihongyu.com/