算法思维:一个解决问题的通用框架

2019-04-26  本文已影响0人  松鼠的读书笔记

先来一段英文阅读:

''A person well-trained in computer science knows how to deal with algorithms: how to construct them, manipulate them, understand them, analyze them. This knowledge is preparation for much more than writing good computer programs: it is a general-purpose mental tool that will be a definite aid to the understanding of other subjects, whether they be chemistry, linguistics, or music, etc. The reason for this may be understood in the following way: It has ofen been said that a person does not really understand something until after teaching it to someone else. Actually, a person does not really understand something until after teaching it to a computer, i.e., expressing it in an algorithm...An attempt to formalize things as algorithms leads to a deeper understanding than if we simply try to comprehend things in the traditional way. ''

—— Donald Knuth


给你一个问题,你通常是如何解决这个问题呢?

这里介绍一个来自Luay Nakhleh《Algorithmic Thinking》课程里面的通用框架,这个框架可以说覆盖了解决问题的完整流程。当你拿到一个问题不知从何下手时,可以参考以下步骤哟:

1 弄明白这个问题

2 数学化这个问题

3 设计一个算法

4 实现你的算法

5 解决最初的问题


本来想多写一点的,写着写着又写不下去了,因为效率太低了(被自己气哭),算了我去撸BERT的论文了。

上一篇 下一篇

猜你喜欢

热点阅读