Difference between revisions of "CSC103: DT's Notes 1"

From dftwiki3
Jump to: navigation, search
Line 803: Line 803:
 
<br />
 
<br />
 
<center>[[Image:LogicGatesAndOrNot.png ]]</center>
 
<center>[[Image:LogicGatesAndOrNot.png ]]</center>
 +
 +
<br />
 +
The gates have the same truth table as the logic operators they represent, except now we'll use 1s and 0s instead of '''T''' or '''F''' to represent them.  For example, below is the truth table for the '''OR''' gate:
 +
 +
The truth table for the '''or''' operator is the following:
 +
 +
{| border="1" cellpadding="10" cellspacing="0"
 +
! a
 +
! b
 +
! a '''or''' b
 +
|-
 +
|
 +
0
 +
|
 +
0
 +
|
 +
0
 +
|-
 +
|
 +
0
 +
|
 +
1
 +
|
 +
1
 +
|-
 +
|
 +
1
 +
|
 +
0
 +
|
 +
1
 +
|-
 +
|
 +
1
 +
|
 +
1
 +
|
 +
1
 +
|}
 +
<br />
 +
The truth table for the '''AND''' gate:
 +
<br />
 +
 +
{| border="1" cellpadding="10" cellspacing="0"
 +
! a
 +
! b
 +
! a '''and''' b
 +
|-
 +
|
 +
0
 +
|
 +
0
 +
|
 +
0
 +
|-
 +
|
 +
0
 +
|
 +
1
 +
|
 +
0
 +
|-
 +
|
 +
1
 +
|
 +
0
 +
|
 +
0
 +
|-
 +
|
 +
1
 +
|
 +
1
 +
|
 +
1
 +
|}
 +
 +
<br />
 +
  
 
<br />
 
<br />

Revision as of 08:04, 10 September 2013

--© D. Thiebaut 08:10, 30 January 2012 (EST)



This section is only visible to computers located at Smith College













.