计算机科学概论第九章.pptVIP

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
计算机科学概论第九章

9-* Maintaining database integrity (continued) 维护数据库的完整性 Simultaneous access problems同步进程问题 Incorrect summary problem错误决算问题 Lost update problem更新丢失问题 Locking = preventing others from accessing data being used by a transaction锁定:防止其他人获取事务所使用的数据 Shared lock: used when reading data共享锁:读取数据时使用的锁 Exclusive lock: used when altering data排它锁:选择数据时使用的锁 9-* Sequential Files顺序文件 Sequential file: A file whose contents can only be read in order顺序文件:文件中的内容是按照顺序执行的 Reader must be able to detect end-of-file (EOF)必须能够检测文件结束 Data can be stored in logical records, sorted by a key field数据可以由一个关键字域以逻辑存储的方式存储 Greatly increases the speed of batch updates极大地提高了批量更新的速度 9-* Figure 9.14 The structure of a simple employee file implemented as a text file图9.14 以文本文件实现的一个简单员工文件结构 9-* Figure 9.15 A procedure for merging two sequential files图9.15 归并两个顺序文件的过程 Figure 9.16Applying the merge algorithm (Lettersare used to represent entire records.?The particular letter indicates the value of the record’s key field.)图9.16 归并算法的应用(字母用于代表整条记录,具体字母表示记录的键字段的值) 9-* Indexed Files索引文件 Index: A list of key values and the location of their associated records索引:一个关键字的列表以及与它们相关的记录的位置 9-* Figure 9.17 Opening an indexed file图9.17 打开索引文件 9-* Hashing散列 Each record has a key field每一个记录都有一个关键域 The storage space is divided into buckets数据存储空间被分成几个存储桶 A hash function computes a bucket number for each key value散列函数将键的值转换为桶号 Each record is stored in the bucket corresponding to the hash of its key每条记录存放在通过散列函数处理确定的桶里 9-* Figure 9.18 Hashing the key field value 25X3Z to one of 41 buckets图9.18 将键字段值25X3Z散列到41个桶中的一个 9-* Figure 9.19 The rudiments of a hashing system 图9.19 散列系统的基本原理 9-* Collisions in Hashing在散列中碰撞 Collision: The case of two keys hashing to the same bucket碰撞:两个键经过散列后得到同一个值的情况 Major problem when table is over 75% full当表格超过75%以上的内容满了是就发生了碰撞 Solution: increase number of buckets and rehash all data解决方法:增加桶的数量并重新定义所有的数据 9-* Data Mining数据挖掘 Data Mining: The area of computer science that deals with discovering pattern

文档评论(0)

yan698698 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档