理解算法的先决条件?

发布于 2024-12-26 18:10:22 字数 24 浏览 0 评论 0原文

哪些数学领域是学习算法的先决条件?

What areas of math are prerequisite for learning algorithms?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夏末染殇 2025-01-02 18:10:23

我想这在很大程度上取决于您想要使用的算法类型以及您想要了解它们的深度。

  • 了解常用的基本数据结构几乎不需要数学背景。

  • 大多数图形算法需要三角学和空间几何知识。

  • 如果你有一定的物理基础,关于物理引擎的算法会更容易理解

  • 如果你想让你的程序帮助你做决定,你可能需要学习运筹学,这是数学的一个非常大的子领域,包括图论、博弈论、优化(然后包括分析和线性代数)

无论如何,拥有逻辑/数学思维显然对理解和检查/证明有很大帮助你的代码可以/不能工作。

I guess it depends a lot about the kind of algorithm you want to use and how deeply you want to understand them.

  • The understand of the usual basic data structures needs almost no math background.

  • Most of the graphical algorithms requires knowledge of trigonometry and spatial geometry.

  • Algorithms about physics engine are easier to understand if you have some physics basis

  • If you want your program to help you to take decisions, you might need to study operational research which is a really huge sub-fields of math which includes graph theory, game theory, optimisation (which then includes analysis and linera albegra)

In any case, having a logic/mathematical mind obviously helps a lot for the understanding and to check/prove that your code can/cannot work.

请恋爱 2025-01-02 18:10:23

如果您谈论的是简单的编程,那么您实际上并不需要大量的数学知识。在这个级别,您解决问题的能力和逻辑能力更为重要,但您有必要接受使用流程图和流程规划解决问题的基础知识的指导。

另一方面,众所周知,数学可以提高你的能力,在某些领域,你需要了解数学才能达到预期的结果。例如,要创建动画引擎,了解线性代数非常有用,因此了解物理知识。

If you're talking about simple programming you don't really need a lot of math. At this level, your problem solving and logic abilities are more important, but it's necessary that you get instructed in the basics of problem solving by using flow charts and process planing.

In the other side, math is known to improve your abilities and in some areas you would need to know math to achieve the expected results. For example, to create an animation engine knowing linear algebra is more than useful, so its physics.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文