CMPUT 101 - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

CMPUT 101

Description:

Logical thinking (how computers make complex decisions) Truth Tables. Truth tables show output for all possible inputs. A truth table with n inputs has 2n rows. ... – PowerPoint PPT presentation

Number of Views:25
Avg rating:3.0/5.0
Slides: 14
Provided by: frasera
Category:
Tags: cmput | magnitude | make

less

Transcript and Presenter's Notes

Title: CMPUT 101


1
CMPUT 101
  • Lab 4
  • Section D12
  • October 2, 2008
  • Fraser Anderson

2
Shameless Plug CS Open House
  • Come see CS things. They arent all dweeby.
  • Virtual reality (my stuff, really cool)
  • Ride Segways (still cool)
  • Poker (getting nerdier)
  • Robots (cool again)
  • More stuff (nerdy)
  • Saturday, Oct 25, 11-3pm. Free lunch!
  • http//www.cs.ualberta.ca/events/openhouse/

3
Lab 4 Fun with Paper
  • Written questions covering
  • Truth tables
  • Boolean expressions
  • Sum of Products
  • Logic circuits
  • Binary representation
  • Why?
  • Logical thinking (how computers make complex
    decisions)

4
Truth Tables
  • Truth tables show output for all possible inputs.
  • A truth table with n inputs has 2n rows.

5
Sum of Products
  • Creates a boolean expression from a table.
  • Find all rows which are true
  • For each row, logically AND the values together.
  • Logically OR all of the previous ANDed values.
  • AB AB AB

6
Sum of Products
  • Creates a boolean expression from a table.
  • Find all rows which are true
  • For each row, logically AND the values together.
  • Logically OR all of the previous ANDed values.
  • AB AB AB

7
Logic Circuits
  • Graphical representation of boolean expression
  • Draw NOT
  • Draw AND
  • Draw OR
  • ABC ABC AC

8
Binary Representation
  • Unsigned
  • Sign/Magnitude

9
Binary. Cont.
  • Original

10
Binary.. Cont.
  • Original
  • Flip the bits, if necessary.

11
Binary... Cont.
  • Original
  • Add one, if necessary.

12
Binary.... Cont.
  • Original
  • It is now sign/magnitude, convert to decimal.

13
Conclusion!
  • When youre done, hand in your papers, sign the
    sheet.
  • No more labs for a while.
  • I will be in the lab after the assignment is
    released
  • If you need help with something specific, email
    me
  • frasera_at_cs.ualberta.ca
  • Watch moodle for updates
Write a Comment
User Comments (0)
About PowerShow.com