Skip to content

A simple library to compute functional dependencies and other related things.

License

Notifications You must be signed in to change notification settings

amrith/functional-dependencies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

functional-dependencies

A simple library to compute functional dependencies and other related things.

Class FDs

  FDs(attributes=<attributes>, fds=<fds>)

  mkfd(<attributes>, <dependency>)

    Construct a dependency suitable to be added to FDs


  addfd(fd)

    Add a functional dependency

  consolidate()

    Return a consolidation of all FDs.

  attrclosure(<attributes>)

    Compute an attribute closure()

  fdclosure()

    Return the fdclosure for known FDs

  keys()

    Return the keys for all known FDs

  minimalCover()

    Compute the minimal cover for all known FDs

  isbcnf()
  is3nf()

    Return True or False; is the schema BCNF or 3NF

Testing

python -m unittest tests/testcases.py

About

A simple library to compute functional dependencies and other related things.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages