Skip to content

Commit

Permalink
Corrected FDependencyList MinimalCover method
Browse files Browse the repository at this point in the history
  • Loading branch information
Humberto committed Jan 24, 2015
1 parent 659e3da commit da2ac9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 2 additions & 1 deletion DBNormalizer/example/CC_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
# Example using OOP
print(fdlist.makeRightsingleton())
print(fdlist.makeRightsingleton().removeExtraneous())
print(fdlist.makeRightsingleton().removeExtraneous().removeDuplicacy())
print(fdlist.makeRightsingleton().removeExtraneous().removeDuplicacy())
print(fdlist.MinimalCover())
5 changes: 1 addition & 4 deletions DBNormalizer/model/FDependencyList.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ def attribute_closure(self, attributes):


def MinimalCover(self):
Frs = makeRightsingleton(self)
Fex =removeExtraneous(Frs)
Fmin = removeDuplicate(Fex)
return [Fmin]
return self.makeRightsingleton().removeExtraneous().removeDuplicacy()

def makeRightsingleton(self):
singletonList=[]
Expand Down
3 changes: 0 additions & 3 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
TODO
========

TODO
========

1 - Class FDependencyList
(Refactor: Move the computation methods outside the class)

Expand Down

0 comments on commit da2ac9b

Please sign in to comment.