CMSC 250 Fall 2004 -- Homework 3
Due Wed., Sept. 22 at the beginning of your discussion section.
You must write the solutions to the problems single-sided on your own lined paper, with all sheets stapled together, and with all answers written in sequential order or you will lose points.
- Consider a digital logic circuit that works as follows.
There are three inputs,
,
and
. The output of the circuit must be the same as the value of
whenever the value of
is 1,
and the output of the circuit must be the same as the value of
whenever the value of
is 0.
- Write a logical expression that corresponds to this circuit.
- Draw the diagram for this circuit, using only a combination of 2-input AND
gates, 2-input OR gates, and 1-input NOT gates.
Note 1: A ``2-input AND gate'' simply means that the AND gates has two
lines coming into it. It does not mean that you may only use two of these
gates in your circuit; you may use any number of each type of gate.
Note 2: Please label each gate in your circuit diagram to assist us in grading
your work.
- Perform the following conversions and calculations.
Binary numbers shown here are represented in 8-bit 2's complement, and
any binary numbers you give as answers should also be represented in
8-bit 2's complement.
Showing your work will assist us in awarding partial credit.
-
-
-
-
-
- Translate each of the following English sentences into formal
language -- that is, using the symbols
, etc. Then write
the negation of each statement in English, then translate the negation into formal
language. In your formal language statements, you may only use the domains
all people
and
all integers
. Be sure to
define all of the predicates you invent. For example, you must write the line F(x) = ``x does fine'' if you want to use this predicate named F or C(y) = ``y is Chinese'' so that you can use this predicate named C.
- Every good boy does fine.
- Some Chinese speak Mandarin or Cantonese.
- All integers which are singly even are divisible by two but not by four.
TURN OVER
- Let
mean ``student
majors in subject
,'' and
let
students
and
subjects
.
For each of the following statements, re-write each one formally using symbolic logic.
- Every students has some subject that they major in.
- There is some student who does not major in any subjects.
- Every subject is majored by some students.
- There is a major that no student majors.
Kin-Keung Ma
2004-09-15
Web Accessibility