πŸŽ“ Computer Science & Engineering Portal

Master Engineering Disciplines with Structured Notes

Comprehensive academic lecture notes, exam-oriented unit summaries, laboratory manuals, and previous year question papers designed strictly for university students.

πŸ“‘

University Syllabi

AKTU & AICTE aligned semester guidelines.

πŸ“

Exam Question Papers

Previous 5 years solved university papers.

πŸ’‘

Lab Manuals & Viva

Practical codes with outputs & interview Qs.

Core Subjects & Units Hub

Click on any specific unit to immediately view its lecture notes below

Viewing All Lectures

Inference Rule (IR)

Inference Rule (IR):

  • The Armstrong's axioms are the basic inference rule.
  • Armstrong's axioms are used to conclude functional dependencies on a relational database.
  • The inference rule is a type of assertion. It can apply to a set of FD(functional dependency) to derive other FD.
  • Using the inference rule, we can derive additional functional dependency from the initial set.

The Functional dependency has 6 types of inference rule:

1. Reflexive Rule (IR1)

In the reflexive rule, if Y is a subset of X, then X determines Y.

  1. If X βЇ Y then X  β†’    Y  

Example:

  1. X = {a, b, c, d, e}  
  2. Y = {a, b, c}  

2. Augmentation Rule (IR2)

The augmentation is also called as a partial dependency. In augmentation, if X determines Y, then XZ determines YZ for any Z.

  1. If X    β†’  Y then XZ   β†’   YZ   

Example:

  1. For R(ABCD),  if A   β†’   B then AC  β†’   BC  

3. Transitive Rule (IR3)

In the transitive rule, if X determines Y and Y determine Z, then X must also determine Z.

  1. If X   β†’   Y and Y  β†’  Z then X  β†’   Z    

4. Union Rule (IR4)

Union rule says, if X determines Y and X determines Z, then X must also determine Y and Z.

  1. If X    β†’  Y and X   β†’  Z then X  β†’    YZ     

Proof:

1. X β†’ Y (given)
2. X β†’ Z (given)
3. X β†’ XY (using IR2 on 1 by augmentation with X. Where XX = X)
4. XY β†’ YZ (using IR2 on 2 by augmentation with Y)
5. X β†’ YZ (using IR3 on 3 and 4)

5. Decomposition Rule (IR5)

Decomposition rule is also known as project rule. It is the reverse of union rule.

This Rule says, if X determines Y and Z, then X determines Y and X determines Z separately.

  1. If X   β†’   YZ then X   β†’   Y and X  β†’    Z   

Proof:

1. X β†’ YZ (given)
2. YZ β†’ Y (using IR1 Rule)
3. X β†’ Y (using IR3 on 1 and 2)

6. Pseudo transitive Rule (IR6)

In Pseudo transitive Rule, if X determines Y and YZ determines W, then XZ determines W.

  1. If X   β†’   Y and YZ   β†’   W then XZ   β†’   W   

Proof:

1. X β†’ Y (given)
2. WY β†’ Z (given)
3. WX β†’ WY (using IR2 on 1 by augmenting with W)
4. WX β†’ Z (using IR3 on 3 and 2)

Labels: ,

Discussion & Queries (<$I18NNumComments$>):

<$CommentPager$>
<$I18NAtCommentTimeWithPermalink$>, <$I18NCommentAuthorSaid$>

<$BlogCommentBody$>

<$BlogCommentDeleteIcon$>
<$CommentPager$>