共计 1155 个字符,预计需要花费 3 分钟才能阅读完成。
《Programming Abstractions in C》学习第 72 天,p283-p292 总结,总计 10 页。
一、技术总结
1、anylasis of algorithms
算法剖析——即判断程序的效率 (efficiency)。
2、mathematical induction(数学归纳法)
3、Big-O notation(大 O 标记法)
4、constant time(常量工夫)
5、linear time(线性工夫)
p292, The computational complexity of the part of the Average function is O(N), which is commonly called linear time。
double Average(double array[], int n) {
int i;
double total;
total = 0;
for (i = 0; i < n; i++) {total += array[i];
}
return total / n;
}
二、英语总结
1、mission 是什么意思?
答:c. any work that sb believes it is their duty to do(工作,工作)。p285, Your mission is to write a function SortIntegerArray(array, n) that rearranges the elements into ascending order。
2、proportional 是什么意思?
答:
(1)A is proportional to B(A 与 B 成正比)。示例:p287, Thus, the time required on the first cycle of the loop is presumably proportional to N。
3、dominate 是什么意思?
答:*dem-(“house, household”), vt. to be more import, powerful, or successful than other.p291, As N increases, the term involving N^2 quickly dominates the term involving N。尽管 dominate 的次要意思是“管制,占据主导地位”,然而翻译时比拟灵便,这里可翻译为“超过”。
三、其它
无。
四、参考资料
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)