Boolean operators
Download
1 / 20

Boolean Operators - PowerPoint PPT Presentation


  • 290 Views
  • Updated On :

Boolean Operators Defined by truth tables and applied in search expressions Building a Truth Table Building a Truth Table The number of rows in a truth table is 2 n , where n is the number of terms in the table. Building a Truth Table Negation

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Boolean Operators' - andrew


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Boolean operators l.jpg

Boolean Operators

Defined by truth tables and applied in search expressions



Building a truth table3 l.jpg
Building a Truth Table

The number of rows in a truth table is 2n, where n is the number of terms in the table.


Building a truth table negation l.jpg
Building a Truth TableNegation

The truth-value of ~p is always the opposite of p. This is essentially what contradiction looks like.


Building a truth table boolean and l.jpg
Building a Truth TableBoolean AND

The expression "p & q" evaluates to TRUE only when both p and q are TRUE.


Building a truth table boolean or l.jpg
Building a Truth TableBoolean OR

The expression p v q ( also written "p OR q"; inclusive OR) evaluates to TRUE when either p or q is TRUE.


Building a truth table all relations l.jpg
Building a Truth TableAll Relations

The three operators illustrated here are the basis of most database searches.


Slide8 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.


Slide9 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D • e

DVDs that are not metal D • (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h • C) • ~3


Slide10 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D • e

DVDs that are not metal D • (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h • C) • ~3


Slide11 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D • e

DVDs that are not metal D • (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h • C) • ~3


Slide12 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D • e

DVDs that are not metal D • (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h • C) • ~3


Slide13 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D • e

DVDs that are not metal D • (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h • C) • ~3


Slide14 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D & e

DVDs that are not metal D & (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h & C) & ~3


Slide15 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D & e

DVDs that are not metal D & (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h & C) & ~3


Slide16 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D & e

DVDs that are not metal D & (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h & C) & ~3


Slide17 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D & e

DVDs that are not metal D & (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h & C) & ~3


Slide18 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D & e

DVDs that are not metal D & (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h & C) & ~3


Slide19 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D & e

DVDs that are not metal D & (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h & C) & ~3


Slide20 l.jpg

In the music store...

C - CD e - electronica1 - single disk pkg.

D - DVD h - hip hop2 - double disk pkg.

S - Super Audio CD m - metal3 - triple disk pkg.

All CDs C

Everything that is not a Super Audio CD ~S

All electronica DVDs D & e

DVDs that are not metal D & (~m)

All CDs and DVDs C v D

Hip hop CDs except triple disk pkgs. (h & C) & ~3


ad