Skip to content

Commit

Permalink
Se ajusta algoritmo 1
Browse files Browse the repository at this point in the history
  • Loading branch information
eljavatar committed Sep 15, 2018
1 parent e580b90 commit ef0f1d2
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 @@ -189,7 +189,11 @@ def clavesCandidatas(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 ef0f1d2

Please sign in to comment.