Venn Diagrams
Venn diagrams are a useful way to visualize Boolean logic. AND looks like this:
|
|
|
low and cholesterol |
sheep and cattle and chickens |
coins and (francs or pesos) |
Scenarios:
-
I need articles about low cholesterol.
He needs information about running a farm with sheep, cattle, and chickens.
She need francs and pesos in coins.
|
|
|
| major or minor | grilled or poached | circle or square |
-
We would like to attend a Spring training baseball game; we don't care if it is major league or the minors--or if it is a match between the two. What games are available?
This cookout/potluck is great! I'll eat either the grilled or poached salmon--or both if there isn't enough of one or the other.
They don't care if the coasters we buy them are shaped like a circle or square.
- Exclusive or. There is an exclusive or, but it is not used in most library databases. The majority of library researchers will never run across a database which uses the exclusive or.
oil or water [exclusive OR]
Real life search: You do a word search for items in SAGE on solar houses. One of the items you find is Solar Homes and Sun Heating.Scenario: She is doing experiments, but she will never mix oil and water together. -->To find these results in one search in a library database she will need to do her search like this: (oil not water) or (water not oil).
NOT looks like this:
chips not pretzels Scenario: He'll eat chips, but not if there are pretzels in the same bowl.
This can be shown on a Venn diagram like this:
|
|
solar and houses |
Your result set would not include the items in the set below:
|
| (solar and houses) not heating |
|
|
| textbook and exercises | textbooks and exercises and grade 8 |
|
|






