File organization & File access

本文介绍了文件组织的不同方式,包括串行文件组织、有序文件组织、固定大小记录的有序文件组织以及直接访问(随机访问)文件组织。串行文件按时间顺序记录,仅能顺序访问。有序文件通过关键字字段排序,提高了查找效率。固定大小记录的有序文件可配合索引实现直接访问。直接访问文件利用哈希算法快速定位记录,提供了高效的查找速度。
摘要由CSDN通过智能技术生成

File Organization

Serial file organization

The features of serial file orgnization:

  1. Records enter file in chronogical order.
  2. But otherwise, there are no particular order.
  3. Records can only be accessed sequentially/in sequential order.
  4. A typical use is for bank to record the transactions of a customer account.

Sequentail file organization

The features of sequential file orgnization:

  1. The records are ordered in some way, usually sorted according to the values of the key field.
  2. Records in a sequential file can only be accessed sequentially/in sequential order.
  3. It is an improvement to serial file organization. It takes shorter time to search a record in a sequential file than in a serial file.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值