Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ## Min
  2. var = None
  3. for key in assignment:
  4. if len(assignment[key]) > 1: #Checks to see if the domain has a bigger size than 1
  5. var = key #Sets the key to be returned
  6. return var
  7. ## din
  8. for key in assignment.keys(): # Go through the variables.
  9. if len(assignment[key]) > 1: # Find an unassigned variable.
  10. return key # Return an unassigned variable.
  11. return None # Return None if all variables were assigned.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement