{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

TongLecture5

# TongLecture5 - CS281 Lecture 5 Tuanjie Tong Last Class...

This preview shows pages 1–10. Sign up to view the full content.

CS281 Lecture 5 Tuanjie Tong

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Last Class: Introduction to boolean algebra Boolean Function This class: Algebraic manipulation Canonical forms Standard forms
Boolean Function Formed from variables, operators, parentheses, and equal sign. Example: F1= xy+yz+x’y’z Order of computation: parentheses, NOT, AND, OR.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Boolean Function (cntd…) Terminologies: OR term, AND term, literal (variable or its complement)
Define a Boolean Function by Truth Table Row Number x y z F 1 F 1 0 0 0 0 0 1 1 0 0 1 1 0 2 0 1 0 0 1 3 0 1 1 1 0 4 1 0 0 0 1 5 1 0 1 0 1 6 1 1 0 1 0 7 1 1 1 1 0

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Truth Table Suppose number of variables (not literals)=n 2 n rows Each row has different variable values Could be numbered by the binary numbers represented by the variable values
Complement of a Function F -> F’: AND->OR, OR->AND, and replace every LITERAL with its complement, also add the implicit parentheses from F Example: F=xy+yz+x’y’z -> F’=(x’+y’)(y’+z’)(x+y+z’)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Algebraic Manipulation Same function can be specified by two or more different algebraic expressions. To prove two expressions define the same function: By truth table By algebraic manipulation
Algebraic Manipulation (cntd…) Example: – F 1 =xy+xy’z+x’yz F 2 =xy+xz+yz Do they represent the same function?

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern