Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Min
- var = None
- for key in assignment:
- if len(assignment[key]) > 1: #Checks to see if the domain has a bigger size than 1
- var = key #Sets the key to be returned
- return var
- ## din
- for key in assignment.keys(): # Go through the variables.
- if len(assignment[key]) > 1: # Find an unassigned variable.
- return key # Return an unassigned variable.
- return None # Return None if all variables were assigned.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement