Lecture 17 4th Normal Form.ppt

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

Lecture 17 4th Normal Form Prof. Sin-Min Lee Department of Computer Science Functional Dependencies Dependencies for this relation: A ? B A ? D BC ? EF Do they all hold in this instance of the relation R? Armstrong’s Axioms Armstrong’s Axioms: Let X, Y be sets of attributes from a relation T. [1] Inclusion rule: If Y ? X, then X ? Y. [2] Transitivity rule: If X ? Y, and Y ? Z, then X ? Z. [3] Augmentation rule: If X ? Y, then XZ ? YZ. Other derived rules: [1] Union rule: If X ? Y and X ? Z, then X ? YZ [2] Decomposition rule: If X ? YZ, then X ? Y and X ? Z [3] Pseudotransitivity: If X ? Y and WY ? Z, then XW ? Z [4] Accumulation rule: If X ? YZ and Z ? BW, then X ? YZB Closure Let F be a set of functional dependencies. We say F implies a functional dependency g if g can be derived from the FDs in F using the axioms. The closure of F, written as F+, is the set of all FDs that are implied by F. Example: Given FDs { A ? BC, C ? D, AD ? B }, what is the closure? The closure is a potentially exponential set: Trivial dependencies: {A ?A, B ?B,…,ABC ?ABC,…}, other dependencies obtained by augmentation {AB ?ABC, BC ?BD,…}, dependencies obtained by other rules (or multiple rules), {A ? BC, C ? D, AD ? B, A ? D } Closure Given a set F of functional dependencies. A functional dependency X ? Y is said to be entailed (implied) by F, if X ? Y is in F+. To sets of functional dependencies F1, F2 are said to be equivalent, if their closures are equivalent, I.e. F1+ = F2+. Checking Entailment To find whether a functional dependency X ? Y is implied by a set of functional dependencies F We can apply all the rules in Armstrong’s Axioms to find whether we can obtain this dependency from the dependencies in F OR We can determine the closure of attributes X, denoted by X+ with respect to F, and check whether Y ? X+ Closure of a set of attributes Given a set of F of functional dependencies, the closure of a set of attributes X, denoted by X+ i

文档评论(0)

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

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

1亿VIP精品文档

相关文档