记忆重要算法,例如二进制搜索 [英] Memorizing important algorithms such as binary search

查看:112
本文介绍了记忆重要算法,例如二进制搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

我希望这会有所帮助。

欢呼

这篇关于记忆重要算法,例如二进制搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆