当前位置: 首页 > 编程日记 > 正文

Code Reading -chap4

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

+

+                    Chapter4: C Data Structures

+

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

67.   Read explicit data structure operations in terms of the underlying abstract data class.(P96)

依据显式数据结构背后的抽象数据类去阅读该显式数据结构操作。

---------------------------------------------------

68.   Vectors are typically realized in C by using the built-in array type without attempting to abstract

the properties of the   vector from the underlying implementation.(P96)

        向量典型的被C以这样的方式使用:使用内置数组类型,且不试图去对来自基底的实现的该向量属性抽象化。

---------------------------------------------------

69.   An Array of N elements is completely processed by the sequence for ( i=0; i<N; i++);all other variations

should raise your defense.(P96)

---------------------------------------------------

70.   The expression sizeof(x) always yields the correct number of bytes for procession an array

x (not a pointer) with memset or memcpy. (p97)

表达式sizeof(x)总是产生就处理一带有memset 或memcpy的数组X(不是一个指针)而言之正确的字节数。

---------------------------------------------------

71.   Ranges are typically represented by using the first element of the rage and the first beyond it.(P100)

范围典型的会这样去表述:用范围的第一个元素以及第一个超越范围大小的元素。

---------------------------------------------------

72.   The number of elements in an asymmetric range equals the difference between the upper and

the lower bounds.(P100)

在一个非对称范围内的元素数目等价于上下界之间的数目。

---------------------------------------------------

73.   When the upper bound of an asymmetric range equals the lower bound, the range is empty.(P100)

当非对称范围的上界等于其下界时,该范围就是空。

---------------------------------------------------

74.   The lower bound in an asymmetric range represents the first occupied element; the upper bound,

the first free one.(P100)

非对称范围的下界表示了第一个占据位置了的元素;而上界,表示了第一个自由的元素。

---------------------------------------------------

75.  Arrays of structures often represent tables consisting of records and fields.(P101)

结构体的数组常常表示由记录和字段组成的表。

---------------------------------------------------

76.  Pointers to structures often represent a cursor for accessing the underlying records and fields.(P101)

指向结构体的指针常常表示了一个游标,该游标用于存取背后的记录以及字段。

---------------------------------------------------

77.  Dynamically allocated matrices are stored as pointers to array columns or as pointers to element pointers;

Both types are accessed as two-dimensional arryas.(P103)

动态分配矩阵被存储成指向列数组的指针或者指向元素指针的指针;两种类型都可以通过二维数组来操控。

---------------------------------------------------

78.  Dynamically allocated matrices stored as flat arrays address their elements using custom access function. (P104)

动态分配矩阵存储成,使用通常的存取函数方式去声明它们的元素地址之平面数组。

---------------------------------------------------

79. An abstract data type provides a measure of confidence regarding the way the underlying implementation

elements will be used(or abused).(p106)

一个抽象数据类型提供了一种“充份考虑到潜在的实现元素会被使用或者滥用”的情况。

---------------------------------------------------

80.  Array are used for organizing lookup tables keyed by sequential integers starting from 0. (P111)

数组常常用于组织查找那些键由从0开始的连续整数组成的表。

---------------------------------------------------

81.  Arrays are often used to efficiently encoded control structures, thus simplifying a program's logic.(P111)

数组常常用于有效编码控制结构, 从而简化程序逻辑。

---------------------------------------------------

82.  Array are used to associate data with code by storing in each position a data element and a pointer

to the element's processing function.(P112)

数组用于把数据关联到这样的代码:在各个位置存一个数据元素,以及一个指到该元素的处理函数之指针。

---------------------------------------------------

83.   Arrays can control a program's operation by storing data or code used by abstract or virtual

machines implemented within that program. (P113)

数组可以用存储数据或者,用于抽象或者虚拟机实现的代码,去控制一个程序的操作。

---------------------------------------------------

84. Read the expression sizeof(x)/sizeof(x[0]) as the number of elements of the array x.(P113)

将表达式sizeof(x)/sizeof(x[0]) 读成 数组x的元素数目。

---------------------------------------------------

85.  A structure with an element titled next pointer to itself typically defineds a node of a a singly linked list.(P118)

一个结构体有这样一个元素,该元素将next 指针指向它自己,这就典型的定义了一个有单链表的节点。

---------------------------------------------------

86. A parameter(for example, globle, static, or heap allocated) poiter to a list node often represents

the list head.(P118)

一指向一个列节点的参数(如,全局参数, 静态参数 或者堆分配参数)常常表示了该列的头。

---------------------------------------------------

87. A structure containning next and prev pointers to itself is probably a node of a doubly linked list.(P121)

一个包含了 next 和prev 指针指向自身的结构体, 很可能是一个双向链表的一个节点。

---------------------------------------------------

88. Following complicated data structure pointer operations by drawing elements as boxes and pointers

as arrows.(P 122)

当复杂数据结构指针操作出现时候,通常跟随其后的是 将元素画成盒子,将指针画成箭头。

---------------------------------------------------

89. Recursive data structures are often processed by using recursive algorithms. (P126)

递归数据结构常常由递归算法处理(译注:言下之意,递归数据结构不一定用于递归算法处理?)。

---------------------------------------------------

90.  Nontrivial data structures manipulation algorithms are typically parameterized using  a function

or template argument. (P126)

非平凡数据结构操作算法典型的使用一个函数,或者模板参数来被参数化。

---------------------------------------------------

91.  Graph nodes are stored sequentially in arrays, linked in lists, or linked through the graph edges. (P126)

图节点是顺序的存储在数组中,或者是链接的方式存储在列表中, 或者通过图的边进行链接。

---------------------------------------------------

92.  The edges of a graph are typically represented either implicitly through pointers or explicitly as seperate structures.(P134)

图的边典型的被内在含蓄的表现成通过指针的形式,要么被明确的表现成分离的结构。

---------------------------------------------------

93. Graph edges are often stored as dynamically allocated arrays or linked lists, both anchored at a graph's nodes.(P137)

图的边常常存储成动态分配的数组或者链表, 这两者都会固定住一张图的节点。

---------------------------------------------------

94. In a nondirectional graph the data representation should treat both nodes as equal, and processing code should

similarly not discriminate edges based on their direction. (P193)

在一个非有向图中,其数据表示应当对所有的节点一致对待,并且处理代码类似的,不应当对边有基于这些边的方向之不同区别对待。

---------------------------------------------------

95.  On nonconnected graphs, traveral code should be coded so as to bridge isolated subgraphs.(P139)

在非可达图中,遍历的代码应当被编码成可以在到分离的子图之间建起桥梁的样子。

---------------------------------------------------

96. When dealing with graphs that contain cycles, traversal code should be coded so as to avoid looping

when following a graoh cycle.(P139)

当处理的图含有环的时候,便利的代码应当被编码成当进入该图的环时,避免循环的样子。

---------------------------------------------------

97. Inside complicated graph structures may hide other, separate structures. (P140)

复杂图结构中可能内置隐藏了其它独立的结构。

+++++++++++++++++++++++++end of chap4 ++++++++++++++++++++++++++++++++

转载于:https://www.cnblogs.com/parsifal/archive/2011/06/23/2088036.html

相关文章:

在Red Hat Linux5下构建LAMP网站服务平台之MySQL、PHP的安装与配置

在Red Hat Linux5下构建LAMP网站服务平台之MySQL、PHP的安装与配置 2010-09-09 16:40:49标签&#xff1a;PHP Linux mysql RedHat    [推送到技术圈] 版权声明&#xff1a;原创作品&#xff0c;允许转载&#xff0c;转载时请务必以超链接形式标明文章 原始出处 、作者信息和…

移动端iPhone系列适配问题的一些坑

完成移动端的开发项目之后&#xff0c;发现谷歌自带的调试器似乎没有什么太大的作用&#xff0c;整天借同事的苹果手机测bug,尽管同事不厌其烦&#xff0c;但还是觉得这iPhone系列适配问题适配到想逃逃逃&#xff0c;好在项目已经顺利完成&#xff0c;测试通过&#xff0c;下面…

shred命令

不做陈冠希必备。。。。 shred --help 用法&#xff1a;shred [选项]... 文件... Overwrite the specified FILE(s) repeatedly, in order to make it harder for even very expensive hardware probing to recover the data.Mandatory arguments to long options are mandator…

WPF初探--RichTextBox

1. 设置RichTextBox运行换行 将AcceptReturn属性设置为true 2. 保存RichTextBox内容到文件 //path为完整保存路径名 private void SaveRtfFile(string path) { FileStream fs new FileStream(path, FileMode.Create); TextRange range; range new TextRange(your…

手把手视频第一节

个人的总结&#xff1a; 今天又重新开始看一套单片机视频&#xff0c;算上这一套已经是第三套了&#xff0c;也总结了一些教训。首先是在抄代码的时候不明白的地方就算后来明白了也要加注释&#xff0c;解释这句话的意思&#xff0c;否则以后看的时候一定是一脸懵逼。 手把手第…

异步操作(三)

APM的轮询聚焦技巧 就从字面意思来理解&#xff0c;每隔一段时间来查询&#xff0c;异步操作的结果。而怎么实现轮询的方法了&#xff0c;这里就要谈到IAsyncResult接口。它定义了若干个只读属性 publicinterfaceIAsyncResult{ Object AsyncState {get;} WaitHandle AsyncWaitH…

Django-C002-深入模型,到底有多深

此文章完成度【100%】留着以后忘记的回顾。多写多练多思考&#xff0c;我会努力写出有意思的demo&#xff0c;如果知识点有错误、误导&#xff0c;欢迎大家在评论处写下你的感想或者纠错。 ORM介绍&#xff1a;对象关系映射&#xff08;英语&#xff1a;(Object Relational Map…

Linux中断流程分析

裸机中断&#xff1a; 1、中断流入口 2、事先注册中断处理程序 3、根据中断源编号&#xff0c;调取处理程序 irq_svc&#xff1a;1、等到产生中断源的编号&#xff08;每一个中断号都有一个描述结构&#xff09; 2、转载于:https://www.cnblogs.com/sanshijvshi/p/8531025.html…

手把手视频第二节

一、单片机的三大内部资源&#xff08;我们作为用户&#xff0c;单片机可以提供给我们的资源&#xff09; 1、FALSH&#xff08;程序存储空间&#xff09; &#xff08;1&#xff09;早期使用的一般是TOPROM &#xff0c;程序只能写入一次&#xff0c;程序写错了只能换一块。 &…

SQL Server DATEADD() 函数

定义和用法 DATEADD() 函数在日期中添加或减去指定的时间间隔。 语法 DATEADD(datepart,number,date) date 参数是合法的日期表达式。number 是您希望添加的间隔数&#xff1b;对于未来的时间&#xff0c;此数是正数&#xff0c;对于过去的时间&#xff0c;此数是负数。 datepa…

致广大关注《网络规划设计师考试案例梳理、真题透解与强化训练》读者朋友的一封信...

致广大关注《网络规划设计师考试案例梳理、真题透解与强化训练》读者朋友的一封信 书是人类进步的阶梯&#xff0c;读书是增强个人软实力的佳径。好读书是你的美德&#xff0c;读好书是你的选择&#xff0c;书好读是我们的承诺&#xff01;如果有心&#xff0c;不妨把一卷《网络…

Mac MySQL 数据库配置(关系型数据库管理系统)

本文已停止更新&#xff0c;点击此链接查看本文最新内容 &#xff01;&#xff01;&#xff01;前言 MySQL 关系型数据库管理系统。1、配置准备工作 1&#xff09;配置数据库准备工作 下载相关软件 mysql-5.7.21-1-macos10.13-x86_64.dmgmysql-workbench-community-6.3.10-maco…

SSM框架——Spring+SpringMVC+Mybatis的搭建教程

一&#xff1a;概述SSM框架在项目开发中经常使用到&#xff0c;相比于SSH框架&#xff0c;它在仅几年的开发中运用的更加广泛。 Spring作为一个轻量级的框架&#xff0c;有很多的拓展功能&#xff0c;最主要的我们一般项目使用的就是IOC和AOP。SpringMVC是Spring实现的一个Web层…

【java】兴唐课程第五节到第九节知识点总结

第九节 1、 代码&#xff1a;void readBook(String… bookNames) 表示不确定参数的个数&#xff0c;此时变量为一个数组。 2、当方法中的参数名称(如stuname)和属性名称相同时。 this.stuname表示属性 stuname表示参数。 3、主方法与所在的累无关&#xff0c;是一个程序的入口…

构建RHEL上的extmail

一、extmail_solutionz 1、ExtMail Solution 结构 ExtMail Solution 是一个基于优秀开源软件的电子邮件系统解决方案&#xff0c;核心部件包括了Postfix、Amavisd-new、ClamAV、ExtMail、ExtMan、Courier系列软件。是一个功能相对比较齐全的免费电子邮件系统。以下是其主要的特…

MapReduce_wordcount

测试数据&#xff1a; [hadooph201 mapreduce]$ more counttext.txt hello mamahello babahello wordcai wen weimama baba jiejie gegegege jiejie didimeimei jiejiedidi mamaayi shushuayi mamahello mamahello babahello wordcai wen weimama baba jiejie gegegege jiejie …

Appium+python自动化(八)- 初识琵琶女Appium(千呼万唤始出来,犹抱琵琶半遮面)- 下(超详解)...

​简介 通过上一篇宏哥给各位小伙伴们的引荐&#xff0c;大家移动对这位美女有了深刻的认识&#xff0c;而且她那高超的技艺和婀娜的身姿久久地浮现在你的脑海里&#xff0c;是不是这样呢&#xff1f;&#xff1f;&#xff1f;不要害羞直接告诉宏哥&#xff1a;是&#xff0c;就…

蜻蜓resin服务器虚拟目录的设置

首先&#xff0c;别急着打开服务器先&#xff0c;接住打开resin主目录下的conf文件夹的resin.conf文件&#xff0c;老规矩&#xff0c;备份先&#xff0c;mv resin.conf resin.conf.bak然后vi resin.conf 文件&#xff0c;找到如下这段代码&#xff1a;1 <!--configures the…

【java】兴唐第十节课知识点总结

1、使用main里的成员方法也要实例化对象吗&#xff1f; 必须实例化 ///重点&#xff01; 2、在成员方法中调用另一个成员方法可以直接调用&#xff08;前面省略一个this.&#xff09; 3、 \n也可以在java里用 4、null可以是除了基本数据类型外的任何数据类型 5、基本数据类…

SharePoint2010是个什么东西

Microsoft SharePoint Foundation is an application that is built on top of Internet Information Services (IIS) and the Microsoft ASP.NET Framework. Microsoft SharePoint Foundation 是架构在IIS和ASP.NET Framework上的一个应用程序。IIS是与互联网站点相关的&#…

Linux Shell高级技巧(目录)

为了方便我们每个人的学习&#xff0c;这里将给出Linux Shell高级技巧五篇系列博客的目录以供大家在需要时参阅和查找。 Linux Shell高级技巧(一) http://www.cnblogs.com/stephen-liu74/archive/2011/12/22/2271167.html一、将输入信息转换为大写字符后再进行条件判断二、为调…

Keras卷积+池化层学习

转自&#xff1a;https://keras-cn.readthedocs.io/en/latest/layers/convolutional_layer/ https://keras-cn.readthedocs.io/en/latest/layers/pooling_layer/ 1.con1D keras.layers.convolutional.Conv1D(filters, kernel_size, strides1, paddingvalid, dilation_rate1, ac…

【Java】阿里巴巴java开发手册总结(我能看懂的)

尽管这本《手册》句句是精华&#xff0c;但由于我还是个菜鸟&#xff0c;这里仅作&#xff08;我能用的到的&&我能看懂的&#xff09;的笔记 1.1命名风格 1、类名用UpperCamelCase的风格 2、方法名、参数名、成员变量、局部变量都统一用lowerCameCase的风格&#xff…

关于maya与max互导FBX出现错误的解决方案。

因为自己实在是不愿意一次又一次把时间浪费在导入导出的问题上。每一次都是多试几次才成功&#xff0c;也没有真正去测试这个东西。但是今天实在是碰到了错误中的极品了。最后还是决定写下来。。算是给自己做笔记吧。。大家如果在导入导出的时候遇到一些问题不妨试试以下几种方…

AS3.0中的显示编程(六)-- 几何结构

几何结构&#xff0c;主要是完成Flash编程中&#xff0c;一些和几何相关的内容。如显示对象的变形角度、公式计算等。可能很多人和我一样&#xff0c;高中学的几何知识&#xff0c;差不多都已经还给老师了。不过也不用太担心&#xff0c;因为一般情况下&#xff0c;我们也用不到…

Win10命令行激活 电脑组装

系统激活&#xff1a; 1. 管理员身份运行 cmd 2. slmgr.vbs /upk //卸载产品密匙 3. slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX //安装 4. slmgr /skms zh.us.to …

【java】兴唐第十五节课

知识点&#xff1a; 1、定义包名不能以java.为开头。 2、获取系统时间的方法&#xff1a; 注意&#xff1a; &#xff08;1&#xff09; 引入Date类时&#xff0c;引入的是java.util.Date 而不是java.sql.Date(后者是前者的子类)。 代码实现 Date date new Date(); System.o…

SQL Server 日期和时间相关的数据类型有两种

SQL Server 日期和时间相关的数据类型有两种&#xff1a;DateTime和SmallDateTime。 DateTime:需要8个字节&#xff0c;前4个字节用1900年1月1日以后的天数表示日期&#xff0c;后4个字节表示一天中的时间。支持的日期范围&#xff1a;1/1/1753 12:00:00 AM到12/31/9999 11:59…

序列化pickle

import pickle d { name:alex, role:police, blood: 76, weapon:AK47 } d_dump pickle.dumps(d) #序列化 print (pickle.loads(d_dump)) #反序列化 f open(game.pkl, wb) pickle.dump(d, f) #First in first out (FIFO) pickle.dump(alive_players, f) dump 写入文件 du…

T-SQL笔记3:事务、锁定和并发

T-SQL笔记3&#xff1a;事务、锁定和并发 本章摘要 1&#xff1a;事务 1.1&#xff1a;显式事务 1.2&#xff1a;使用DBCC OPENTRAN显示最早的活动事务 2&#xff1a;锁定 2.1&#xff1a;查看锁的活动 3&#xff1a;并发影响及隔离级别 3.1&#xff1a;并发影响 3.2&#xff1…