Skip to content

A driver program to decompose a relation with violating functional dependencies into BCNF

Notifications You must be signed in to change notification settings

ak1132/BCNF-Decomposition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

BCNF-Decomposition

A driver program to decompose a relation with violating functional dependencies into BCNF (Boyce Codd Normal Form)

Sample Input:
A B C D E
A B -> C
C -> D
D -> B E

Output:

Relation : ABCDE

The list of non trivial dependencies :
CDE -> B
AB -> CDE
AD -> BCE
CE -> BD
BCE -> D
DE -> B
D -> BE
BD -> E
ABCD -> E
ABDE -> C
ABD -> CE
AC -> BDE
BCD -> E
CD -> BE
ABC -> DE
ADE -> BC
ACD -> BE
ABE -> CD
ACDE -> B
BC -> DE
C -> BDE
ACE -> BD
ABCE -> D

The list of bcnf violating functional dependencies :
CDE -> B
CE -> BD
BCE -> D
DE -> B
D -> BE
BD -> E
BCD -> E
CD -> BE
BC -> DE
C -> BDE

The output of BCNF Decomposition:

[DE,CD,BDE,AC]

About

A driver program to decompose a relation with violating functional dependencies into BCNF

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages