当前位置: 首页 > news >正文

Programming abstractions in C阅读笔记:p176-p178

《Programming Abstractions In C》学习第59天,p176-p178总结。

一、技术总结

1.addtive sequences

tn = tn-1 + tn-2

序列:3, 7, 10, 17, 27, 44, 71, 115, 186, 301, 487, 788, 1275, …

p177, As a general class, the sequences that follow this pattern are called additive sequences。

2.wrapper functions

int Fib(int n) {return AdditiveSequence(n, 0, 1);
}

Functions of this sort, which simply return the result of another function, often after transforming the arguments in some way, are called wrapper functions

如上, Fib称为wrapper function。wrapper函数的作用是为subsidiary function提供参数。

二、英语总结

1.enormous是什么意思?

答:ex-(“out of”) + norm(“rule, norm”) + -ous(substituted for Latin -is*, “having, full of”*),即超乎寻常的。adj. “extremely large(巨大的)”之意。

2.given that是什么意思?

答:given that 的意思是“taking that fact into account / in consideration of the fact that”,可以翻译为“已知”。that后面的内容一定是fact,不能是假设的。

示例:p176,Given that the Fibonacci function can be implemented efficiently using iteration,the enormous explosion of steps required by the recursive implementation is more that a little disturbing

3.subsidiary是什么意思?

答:

(1)subsidiary: adj.used to refere to sth that less important than sth else with which is connected(辅助的,次要的)。c. a company that is controlled by another(子公司)。

(2)subsidy: c.money given as part of the cost of sth, to help or encourage it to happen(补贴,补助金)。

(3)subside: sub(“under”) + sidere(“to settle”),原本的意思是“sink to the bottom(下沉)”,引申义意义是“sink to a lower level(降低、减弱)”。vi.become less strong or extreme。

三、参考资料

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)

http://www.lryc.cn/news/188137.html

相关文章:

  • LeetCode-496-下一个更大元素
  • C++中的Lambda表达式
  • dockerfile搭建lnmp
  • python之数据库操作详解
  • 完成flex布局与float布局
  • ThinkPHP团购拼购商城源码/带分销团购商城网站源码/完美版
  • awvs 中低危漏洞
  • openGauss学习笔记-95 openGauss 数据库管理-访问外部数据库-postgres_fdw
  • 并不止于表面理论和简单示例——《Python数据科学项目实战》
  • skywalking功能介绍
  • c++桥接模式,中介者模式应用实现状态跳转
  • 【SpringCloud】Ribbon负载均衡原理、负载均衡策略、饥饿加载
  • 亘古难题——前端开发or后端开发
  • Notepad++提取含有特定字符串的行
  • host配置
  • ```,```中间添加 # + 空格 + 空行后遇到的底部空行出错,书接上回,处理空行
  • Unity官方文档中关于内存管理的翻译(2021.3)
  • 点云处理开发测试题目 完整解决方案
  • TensorRT的结构
  • python对excel数据表进行数据清洗
  • 95、Spring Data Redis 之使用RedisTemplate 实现自定义查询 及 Spring Data Redis 的样本查询
  • jdbc(DriverManager+Connection+Statement+ResultSet)+SQL注入+开启预编译+数据连接池
  • NoSQL之 Redis命令工具及常用命令
  • 多线程(线程互斥)
  • 使用 html2canvas 和 jspdf 将页面转 pdf,同时解决当页面过长时,页面白屏问题
  • 【Python 千题 —— 基础篇】今年几岁啦
  • git push 失败 shallow update not allowed
  • uniapp 在uni.scss 根据@mixin定义方法 、通过@include全局使用
  • C++ 类和对象(一)
  • rust函数