您的位置:首页 > 理论基础

mit 计算机科学及编程导论(9)

2012-07-25 14:08 281 查看
words:

recap , snore , premise , chop , halt , sneak , amortize , split , punchline , bubble , sneeze , conquer

notes:

1. binary search : be careful of the implement of the list , whether it is random access or linear access will affect the complexity

2. how to do the sort:

one method uses loop invariant to split the list into ordered prefix part and disordered suffix : selection sort and bubble sort(n*n)

other one is divide & conquer method .(n.log n )
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: