Docsity

Circuits - Homework 3 | Discrete Structures | CMSC 250, Assignments of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CMSC250-Homework3-Fall2002

DueWednesdaySept25th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.

1. Foreachofthefollowing,ifavalidruleofinferencecanleadfromthegivenpremisestothegivenconclusionstatewhat
ruleofinferencewouldbeused.Ifnovalidrulecouldbeused,write“invalid”.
(a) Premises: IamcurrentlywatchingComedyCentralorSciFi.
IamnotcurrentlywatchingSciFi.
Conclusion: IamwatchingComedyCentral.

(b) Premises: IfyoubuyacansodaattheUniversityofMaryland,itisaPepsiproduct.
IhaveacanofsodathatisnotaPepsiproduct.
Conclusion: IdidnotbuythiscanattheUniversityofMaryland.

(c) Premises: TodayiseitherMondayorWednesday.
OnMondayIteachCMSC434.
OnWednesdayIteachCMSC434.
Conclusion: IteachCMSC434today.

(d) Premises: IlikeBabylon5.
IdonotlikeEnterprise.
Conclusion: IlikeBabylon5butnotEnterprise.


2. Useatruthtabletodeterminewhetherthefollowingargumentisvalid.Ifitis,usetherulesfromthehandoutfromlast
weektoprovetheconclusion.Foreachlineoftheproof,besuretogivethenameoftheruleappliedaswellastheline
numberstowhichtherulewasapplied.
P1
P2
P3
p
(p∨r)

s
~s∨q
∴q


3. Foreachofthefollowing,usingrulesfromlastweek’shandout,provetheargument.
(a)
P1
P2
P3
P4
p∨q
p

r
~q∨s
~s
∴r
(b)
P1
P2
P3
P4
P5
a∧(b∨a)
~c

~a
~g

~a
g

e
~(d∨h)
∴c∧~h
pf2

Partial preview of the text

Download Circuits - Homework 3 | Discrete Structures | CMSC 250 and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

CMSC 250 - Homework 3 - Fall 2002

Due Wednesday Sept 25

th

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.

  1. For each of the following, if a valid rule of inference can lead from the given premises to the given conclusion state what rule of inference would be used. If no valid rule could be used, write “invalid”.

(a) Premises: I am currently watching Comedy Central or SciFi. I am not currently watching SciFi. Conclusion: I am watching Comedy Central.

(b) Premises: If you buy a can soda at the University of Maryland, it is a Pepsi product. I have a can of soda that is not a Pepsi product. Conclusion: I did not buy this can at the University of Maryland.

(c) Premises: Today is either Monday or Wednesday. On Monday I teach CMSC 434. On Wednesday I teach CMSC 434. Conclusion: I teach CMSC 434 today.

(d) Premises: I like Babylon 5. I do not like Enterprise. Conclusion: I like Babylon 5 but not Enterprise.

  1. Use a truth table to determine whether the following argument is valid. If it is, use the rules from the handout from last week to prove the conclusion. For each line of the proof, be sure to give the name of the rule applied as well as the line numbers to which the rule was applied.

P P P

p (p ∨ r)

s ~s ∨ q ∴ q

  1. For each of the following, using rules from last week’s handout, prove the argument.

(a) P P P P

p ∨ q p

r ~q ∨ s ~s ∴ r

(b) P P P P P

a ∧ (b ∨ a) ~c

~a ~g

~a g

e ~(d ∨ h) ∴ c ∧ ~h

  1. For each of the following circuits, construct the logical expression that is its equivalent:

(a)

(b)

(c)

  1. For each of the circuits in the previous question, tell what the output would be if the inputs were: i) P=0, Q=0, R= ii) P=1, Q=0, R= iii) P=0, Q=1, R= Note: This question will have a total of nine answers – three per circuit.
  2. For each of the following numbers in a given base, convert to the specified base(s): (a) 4210 to __________ 2 (b) 10010002 to _________ 10 (c) 1100101101011012 to _________ 16 (d) C3E0 16 to __________ 4
  3. Compute the sum of A2D2 16 and C3E0 16.