记忆重要算法,例如二进制搜索

编程入门 行业动态 更新时间:2024-10-08 13:32:47
本文介绍了记忆重要算法,例如二进制搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您是否记住二元搜索/快速排序等算法。如果是这样,您有任何技巧吗?

Do you memorize algorithms such as binary search / quick sort / whatever. If so, do you have any tricks for doing so?

推荐答案

总是最好的方法是理解这种基本原理。算法而不是记住它们。例如,快速排序使用分而治之范式(这是一种解决特定问题的设计技术

Its always better to find ways to understand the underlying principle of such algorithms rather than memorizing them. For example - Quick Sort uses Divide and Conquer paradigm (it is a design technique to solve a certain class of problems).

Wiki是剖析新主题的一个很好的起点。您可以通过观看视频讲座来深入了解(在视频讲座中找到了这篇好帖子

Wiki is a very good starting point to dissect a new topic. You can dig deep by watching video lectures (found this good post on Video Lectures here on SO) and other specific material such as concerned research papers.

制定示例还将更好地阐明算法。

Working out examples will also clarify the algorithm better.

我希望这会有所帮助。

欢呼

更多推荐

记忆重要算法,例如二进制搜索

本文发布于:2023-11-29 02:26:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1644928.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:算法   记忆

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!