博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
流程图与算法_流程图与算法之间的区别
阅读量:2522 次
发布时间:2019-05-11

本文共 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:

流程图类型:

  • Document flowchart

    文件流程图
  • Diagram flowchart

    图流程图
  • System flowchart

    系统流程图
  • Data 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.

可以用任何语言(包括自然语言,编程语言,伪代码等)表达算法。可以将它们转换为流程图。

Difference between Flowchart and Algorithm

流程图与算法–流程图与算法之间的区别 (Flowchart vs Algorithm – Difference between Flowchart and Algorithm)

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

流程图的优点

  • It is an easy and efficient way to analyze problem using a flowchart.

    这是使用流程图分析问题的简便有效的方法。
  • It is easy in converting the flowchart into code as the logic can be understood easily.

    将流程图转换为代码很容易,因为可以很容易地理解逻辑。
  • It is an efficient way of communicating and noobs can understand easily.

    这是一种有效的交流方式,菜鸟可以轻松理解。
  • It is easy in drawing a flowchart if you know the process.

    如果您知道该过程,则很容易绘制流程图。

Disadvantages of Flowchart

流程图的缺点

  • Drawing a flowchart can be very time-consuming.

    绘制流程图可能非常耗时。
  • Programs are not easier in debugging.

    程序在调试中并不容易。
  • If the flowchart is complex, writing code can be very confusing.

    如果流程图很复杂,编写代码可能会非常混乱。
  • Even the drawing of the flowchart will be complicated if the logic is complicated.

    如果逻辑复杂,甚至流程图的绘制也将变得复杂。

Advantages of Algorithm

算法优势

  • It makes the representation of a solution to a problem easy, which makes easier in understanding.

    它使对问题的解决方案的表示容易,易于理解。
  • It can be easily understood by a person without even having the knowledge of programming.

    一个人甚至不具备编程知识就可以很容易地理解它。
  • It follows a definite procedure.

    它遵循确定的程序。

Disadvantages of Algorithm

算法的缺点

  • It takes very long in writing an algorithm.

    编写算法需要很长时间。
  • It is not a computer program, neither it helps in reducing the difficulties while writing a code.

    它不是计算机程序,也不有助于减少编写代码时的困难。

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/

你可能感兴趣的文章
leetcode375 Guess Number Higher or Lower II
查看>>
docker 创建基础镜像
查看>>
移动端-新建空白页面meta各个标签详细解读
查看>>
算法系列之一 快速排序
查看>>
状压DP【p1896】[SCOI2005]互不侵犯
查看>>
gym 101982 B题 Coprime Integers
查看>>
Polynomial Division 数学题
查看>>
JAVA 第四周学习总结
查看>>
JS学习记录(数组)
查看>>
数据可视化六步法
查看>>
C++中的二级指针和指针引用函数传参
查看>>
Beam编程系列之Python SDK Quickstart(官网的推荐步骤)
查看>>
Fluent Ribbon 第四步 快速启动栏
查看>>
【Linux基础】查看硬件信息-硬盘
查看>>
C#通过WebClient/HttpWebRequest实现http的post/get方法
查看>>
tomcat服务器
查看>>
GridView导出到excel
查看>>
201511141852-《NserviceBus》
查看>>
linux文件操作
查看>>
【BZOJ-2295】我爱你啊 暴力
查看>>