您的位置:首页 > 其它

记录一些算法

2015-10-22 11:27 218 查看

常见算法的复杂度:

<The progmatic programmer> 中对算法的讲义是简洁的。特别是:

O() notation

O(1) access element in array; Hash

O(lgn) binary search, traveling a binary tree

O(n) exhaustive search, finding the max

O(nlogn) divide and conqure, quick sort/heapsort

O(n^2) selection and insertion sorts. bubble sort

O(c^n) traveling salesman problem, set partitioning,permutations
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: