For example:
def q0(S1,S2):
return not all{x in S2 for x in S1}
Here are some notes that I took in various lectures and tutorial:
"Some" means at least one or more.
"Not Some" can mean all or none (nothing).
"All" means everything.
"Not All" means anything more than 0.
any({...}) returns True if the set has one or more True elements
all ({...}) returns True if the set has True elements
I understood there were various methods that would help me when I drew venn diagrams.
All False -- > give one solution (counterexample)
All True --> give all solutions to prove the function
Some False--> give all solutions to prove the function
Some True --> give one counterexample
While drawing venn diagrams (four regions in total):
Cross - "X" means this region must be empty.
Circle -"O" means this region must be occupied.
Emptiness - " " means this region doesn't matter.
No comments:
Post a Comment