0
0
DBMS Theoryknowledge~10 mins

Armstrong's axioms in DBMS Theory - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Armstrong's axioms
Start with given FDs
Apply Reflexivity
Apply Augmentation
Apply Transitivity
Add new FDs
Repeat until no new FDs
Closure of FDs
Armstrong's axioms are a set of rules applied repeatedly to find all functional dependencies implied by a given set.
Execution Sample
DBMS Theory
Given FDs: A -> B, B -> C
Apply Transitivity: A -> C
Shows how to derive new functional dependencies using Armstrong's axioms.
Analysis Table
StepRule AppliedInput FDsNew FD DerivedExplanation
1GivenA -> B, B -> CNoneStart with initial functional dependencies
2TransitivityA -> B, B -> CA -> CSince A determines B and B determines C, A determines C
3ReflexivityA -> B, B -> C, A -> CA -> AEvery attribute determines itself
4AugmentationA -> BAC -> BCAdding attribute C to both sides of A -> B
5AugmentationB -> CAB -> ACAdding attribute A to both sides of B -> C
6No new FDsAll aboveNoneNo further dependencies can be derived
ExitTerminationNo new functional dependencies found, closure complete
💡 No new functional dependencies can be derived, so the process stops.
State Tracker
Functional DependenciesStartAfter Step 2After Step 3After Step 4After Step 5Final
FD SetA->B, B->CA->B, B->C, A->CA->B, B->C, A->C, A->AA->B, B->C, A->C, A->A, AC->BCA->B, B->C, A->C, A->A, AC->BC, AB->ACA->B, B->C, A->C, A->A, AC->BC, AB->AC
Key Insights - 3 Insights
Why do we add A->A using Reflexivity when it seems obvious?
Reflexivity states every attribute determines itself; including A->A ensures completeness and helps in further derivations as shown in step 3.
How does Augmentation work when adding attributes to both sides?
Augmentation adds the same attribute(s) to both sides of a FD, preserving the dependency; see steps 4 and 5 where C or A is added to both sides.
When do we stop applying Armstrong's axioms?
We stop when no new functional dependencies can be derived, as shown in step 6 and the exit note.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table at step 2, what new functional dependency is derived?
AA -> C
BB -> A
CC -> A
DC -> B
💡 Hint
Check the 'New FD Derived' column in step 2 of the execution table.
At which step is the Augmentation rule first applied?
AStep 3
BStep 4
CStep 2
DStep 5
💡 Hint
Look for the first occurrence of 'Augmentation' in the 'Rule Applied' column.
According to the variable tracker, what is the FD set after step 5?
AA->B, B->C, A->C
BA->B, B->C, A->C, A->A
CA->B, B->C, A->C, A->A, AC->BC, AB->AC
DA->B, B->C
💡 Hint
Check the 'After Step 5' column in the variable tracker for the FD set.
Concept Snapshot
Armstrong's axioms are rules to find all functional dependencies:
1. Reflexivity: If B ⊆ A, then A -> B
2. Augmentation: If A -> B, then AC -> BC
3. Transitivity: If A -> B and B -> C, then A -> C
Apply repeatedly until no new dependencies appear.
Full Transcript
Armstrong's axioms are a set of three rules used in database management to find all functional dependencies implied by a given set. The rules are Reflexivity, Augmentation, and Transitivity. Starting with initial functional dependencies, we apply these rules step-by-step to derive new dependencies. For example, from A->B and B->C, we derive A->C by Transitivity. We also add trivial dependencies like A->A by Reflexivity. Augmentation allows adding attributes to both sides of a dependency. This process repeats until no new dependencies can be found, resulting in the closure of the functional dependencies.