搜索/排序算法 - 是有他们的GoF般的上市?他们的、是有、算法、GoF

由网友(李白的小迷妹づ)分享简介:我是一个自学成才的开发商和,坦率地说,我不是所有的伟大,在搞清楚哪些搜索或排序算法在任何特定情况下使用。我只是想知道是否有一个的设计模式的可用赫然出现在书签醚对我来说,常用算法-esque上市。是这样的:I'm a self-taught developer and, quite frankly, am not al...

我是一个自学成才的开发商和,坦率地说,我不是所有的伟大,在搞清楚哪些搜索或排序算法在任何特定情况下使用。我只是想知道是否有一个的设计模式的可用赫然出现在书签醚对我来说,常用算法-esque上市。是这样的:

I'm a self-taught developer and, quite frankly, am not all that great at figuring out which search or sort algorithm to use in any particular situation. I was just wondering if there was a Design Patterns-esque listing of the common algorithms available out there in the ether for me to bookmark. Something like:

算法的名称(用别名,如果有的话)

Name of algorithm (with aliases, if any)

问题它解决了

大O成本

算法本身

范例

其它算法也可以与/用于代替

Other algorithms it may be used with/substituted for

我只是在寻找的算法,我大概的一个简单,简洁上市应的知道在一个位置。有没有这样的事是否可用?

I'm just looking for a simple, concise listing of the algorithms I probably should know in one location. Is there anything like this available?

推荐答案

该网站的 http://www.sorting-algorithms.com / 显示许多流行的排序算法,并介绍了其复杂性和实施。不言而喻的额外步骤,以显示,通过动画,这些算法对不同类型的数据(即$ P $对排序,稀疏,反向排序,等等...)。

The web site http://www.sorting-algorithms.com/ shows many popular sorting algorithms, and describes their complexity and implementation. It goes the extra step to show, via animations, how those algorithms perform on different types of data (i.e pre-sorted, sparse, reverse-sorted, etc...).

阅读全文

相关推荐

最新文章