Programming Abstractions in C阅读笔记:p303-p305

《Programming Abstractions in C》学习第74天,p303-p305总结,总计3页。

一、技术总结

1.时间复杂度分类(complexity classes)

ClassNotationExample
constantO(1)Returning the first element in an array
logarithmicO(logN)Binary search in a sorted array
linearO(N)Linear search in an array
NlogNO(NlogN)Merge sort
quadraticO(N^2)Selection sort
cubicO(^3)Conventional algorithms for matrix multiplication
exponentialO(2^N)Tower of Hanoi

当然,这个分类并不是绝对的,只是常见的。

二、英语总结

1.substantial是什么意思?

答:adj. large in size(sizeable)。p305, Even though the selection sort example makes it cleaar that quadratic algorithms have substantial performance problems (严重的性能问题)for large values of N, algorithms whose complexity is O(2^N) are considerably worse。

2.tractable是什么意思?

答:tractare(“to handle, manage”, treat), adj. easily controlled。p305, As a general rule of thumb(根据经验), computer scientists classify problem that can be solved susing algorithms that run in polynomial time as tractable, in the sense that they are amenable to implementation on a computer。

三、其它

通过7.4小结掌握常见时间复杂度的分类。内容不难理解,但是一些英语词汇的理解比较难。例如:rule a thumb(根据经验), be amenable to等。

四、参考资料

1. 编程

(1)Eric S.Roberts,《Programming Abstractions in C》:https://book.douban.com/subject/2003414

2. 英语

(1)Etymology Dictionary:https://www.etymonline.com

(2) Cambridage Dictionary:https://dictionary.cambridge.org
在这里插入图片描述

欢迎搜索及关注:编程人(a_codists)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值