Assignments | Class Photo | Course Home | Schedule & Lecture Notes | Submit

Saint Louis University

Computer Science 115
Introduction to Computer Science
Michael Goldwasser

Fall 2004

Dept. of Math & Computer Science

Assignment 04

Data Representation and Compression

Contents:


Overview

Topic: Gates and Circuits
Related Reading: Ch. 4
Due: 8pm Monday, 27 September 2004


Internet Requirements

For this assignment, we will rely heavily on the Logic Simulator software demonstrated in class. You will need to have an external Internet connection to run this software.


Practice Problems


Problems to be Submitted (20 points)

  1. (4 points)

    Complete exercise 56 of Ch. 4 (p. 119), however instead of drawing your answer, use the Logic Simulator software to construct the circuit. Save your circuit in a file titled circuit to be submitted.

  2. (4 points)

    Exercise 60 of Ch. 4 (p. 120). Please include a column in your truth table for the output of each intermediate gate within the circuit as well (as done on pp. 106-107, and in the solution to practice Exercise 59 in the text).

    You may do the problem by hand or you may wish to use the Logic Simulator as a tool. In any event, the only thing which must be submitted for this problem is a writeup of the truth table.

  3. (4 points)

    Exercise 62 of Ch. 4 (p. 120). Again, please include a column for the output of each intermediate gate within the circuit.

  4. (4 points)

    A three-way majority circuit is one with three inputs and a single output which is set to 1 whenever two or more of the inputs are set to 1.

    There are eight possible combinations for the input settings. Please give a truth table which lists all eight combinations along with the output setting for each case.

  5. (4 points)

    Construct a circuit which implements the three-way majority function discussed in the previous question, while using the Logic Simulator software. After testing its validity, save it in a file named "majority" for submission.

Please type your answers to questions B, C and D in a single document to be submitted electronically. Submit the Logic Simulator files for problems A and E as well. Please see details about the submission process.


Extra Credit (3 points)

Interestingly, any given boolean function can be calculated by a circuit consisting solely of NAND gates.


CSA-115, Fall 2004
Michael Goldwasser
goldwamh at our university domain

Last modified: Monday, 20 September 2004
Assignments | Class Photo | Course Home | Schedule & Lecture Notes | Submit