问题描述
您是否记住二元搜索/快速排序等算法。如果是这样,您有任何技巧吗?
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.
我希望这会有所帮助。
欢呼
这篇关于记忆重要算法,例如二进制搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!