1. 1、本文档共135页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Sept.2012.ppt

Sept. 2012 Yangjun Chen ACS-3902 * Compression of bitmaps Run-length encoding: Run in a bit vector: a sequence of i 0’s followed by a 1. 000000010001 Run compression: a run r is represented as another bit string r’ composed of two parts. part 1: i expressed as a binary number, denoted as b1(i). part 2: Assume that b1(i) is j bits long. Then, part 2 is a sequence of (j – 1) 1’s followed by a 0, denoted as b2(i). r’ = b2(i)b1(i). This bit vector contains two runs. Sept. 2012 Yangjun Chen ACS-3902 * Compression of bitmaps Run-length encoding: Run in a bit vector s: a sequence of i 0’s followed by a 1. 000000010001 r’ = b2(i)b1(i). This bit vector contains two runs. r1 =b11 = 7 = 111, b12 = 110 r2 = 0001 b11 = 3 = 11, b12 = 10 r1’ = 110111 r2’ = 1011 Sept. 2012 Yangjun Chen ACS-3902 * 000000010001 r1’ r2’ = 1101111011 Decoding a compressed sequence s’: 1. Scan s’ from the beginning to find the first 0. 2. Let the first 0 appears at position j. Check the next j bits. The corresponding value is a run. 3. Remove all these bits from s’. Go to (1). Starting at the beginning, find the first 0 at the 3rd bit, so j = 3. The next 3 bits are 111, so we determine that the first integer is 7. In the same way, we can decode1011. Sept. 2012 Yangjun Chen ACS-3902 * Inverted files An inverted file - A list of pairs of the form: key word, pointer cat dog … the cat is fat … was raining cats and dogs … … Fido the Dogs … a bucket of pointers Sept. 2012 Yangjun Chen ACS-3902 * Inverted files When we use “buckets” of pointers to occurrences of each word, we may extend the idea to include in the bucket array some information about each occurrence. cat dog … the cat is fat … was raining cats and dogs … … Fido the Dogs … title header anchor text 5 10 3 57 type position … … … … Sept. 2012 Yangjun Chen ACS-3902 * Hierarchical database schema - hierarchical schema - record type, PCR type - virtual PCR: virtual child, virtual parent D

文档评论(0)

tangtianxu1 + 关注
实名认证
内容提供者

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

1亿VIP精品文档

相关文档