Skip to content

Commit

Permalink
Se ajusta algoritmo 2
Browse files Browse the repository at this point in the history
  • Loading branch information
eljavatar committed Sep 15, 2018
1 parent ef0f1d2 commit 2911da2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Reglas.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ def algoritmoClavesCandidatas2(r, listDFL3):
w = [impX for impX in r.dataT if impX not in implicantes]
#print("w = ", w)

zw = z + w
zw = cierreZ.copy()
for atr in w:
if atr not in zw:
zw.append(atr)
zw.sort()
# Conservamos cada posible clave en t, si no está en la lista de implicantes e implicados (z + w)
v = [posible for posible in r.dataT if posible not in zw]
#print("v = ", v)
Expand Down

0 comments on commit 2911da2

Please sign in to comment.