SECTION:1.1
1. Which of these sentences are propositions? What are the truth values of those that are propositions?
a) Boston is the capital of Massachusetts.
b) Miami is the capital of Florida.
c) 2+3=5.
d) 5+7=10.
e) x +2=11.
f) Answer this question
Ans: The propositions are - a) , b) ,c) , d)
a) T
b) F
c) T
d) F
2. Which of these are propositions? What are the truth values of those that are propositions?
a) Do not pass go. NO
b) What time is it? NO
c) There are no black flies in Maine. YES =T
d) 4+x =5. NO
e) The moon is made of green cheese. YES =F
f) 2n ≥100. NO
3. What is the negation of each of these propositions?
a) Mei has an MP3 player.
Mei doesn't have an MP3 player.
b) There is no pollution in New Jersey.
There is pollution in New Jersey.
c) 2+1=3.
2+1 !=3.
d) The summer in Maine is hot and sunny.
The summer in Maine is not hot or it is not sunny.
4. What is the negation of each of these propositions?
a) Jennifer and Teja are friends.
Jennifer and Teja are not friends.
b) There are 13 items in a baker’s dozen.
There is not 13 items in a baker's dozen.
c) Abby sent more than 100 text messages every day.
Abby didn't send more than 100 text messages every day.
d) 121 is a perfect square
121 is not a perfect square.
5. What is the negation of each of these propositions?
a) Steve has more than 100 GB free disk space on his laptop.
Steve doesn't have more than 100 GB free disk space on his laptop.
b) Zach blocks e-mails and texts from Jennifer.
Zack doesn't block emails from Jennifer, or he doesn't block texts from Jennifer.
c) 7·11·13=999.
7.11.13!=999
d) Diane rode her bicycle 100 miles on Sunday.
Diane didn't ride her bicycle 100 miles on Sunday.
6. Suppose that Smartphone A has 256 MB RAM and 32GB ROM, and the resolution of its camera is 8 MP; Smartphone B has 288 MB RAM and 64 GB ROM, and the resolution of its camera is 4 MP; and Smartphone C has 128 MB RAM and 32 GB ROM, and the resolution of its camera is 5 MP. Determine the truth value of each of these propositions.
a) Smartphone B has the most RAM of these three smartphones.
TRUE
b) Smartphone C has more ROM or a higher resolution camera than Smartphone B.
TRUE
c) Smartphone B has more RAM, more ROM, and a higher resolution camera than Smartphone A.
FALSE
d) If Smartphone B has more RAM and more ROM than Smartphone C, then it also has a higher resolution camera.
FALSE
e) Smartphone A has more RAM than Smartphone B if and only if Smartphone B has more RAM than Smartphone A.
FALSE
7. Suppose that during the most recent fiscal year, the annual revenue of Acme Computer was 138 billion dollars and its net profit was 8 billion dollars, the annual revenue of Nadir Software was 87 billion dollars and its net profit was 5 billion dollars, and the annual revenue of Quixote Media was 111 billion dollars and its net profit was 13 billion dollars. Determine the truth value of each of these propositions for the most recent fiscal year.
a) Quixote Media had the largest annual revenue.
FALSE
b) Nadir Software had the lowest net profit and Acme Computer had the largest annual revenue.
TRUE
c) Acme Computer had the largest net profit or Quixote Media had the largest net profit.
TRUE
d) If Quixote Media had the smallest net profit, then Acme Computer had the largest annual revenue.
TRUE
e) Nadir Software had the smallest net profit if and only if Acme Computer had the largest annual revenue.
TRUE
9. Let p and q be the propositions “Swimming at the New Jersey shore is allowed” and “Sharks have been spotted near the shore,” respectively. Express each of these compound propositions as an English sentence.
a) ¬q
Shark have not been spotted near the shore.
b) p∧q
Swimming at the New Jersey shore is allowed and Sharks have been spotted near the shore.
c) ¬p∨q
Swimming at the New Jersey shore is not allowed or Sharks have been spotted near the shore.
d) p →¬ q
If Swimming at the New Jersey shore is allowed , then Sharks have not been spotted near the shore.
e) ¬q → p
If sharks have not been spotted near the shore, then swimming at the New Jersey is allowed.
f) ¬p →¬ q
If Swimming at the New Jersey shore is not allowed , then Sharks have not been spotted near the shore.
g) p ↔¬ q
Swimming at the New Jersey shore is allowed if and only if Sharks have not been spotted near the shore.
h) ¬p∧(p∨¬q)
Swimming at the New Jersey shore is not allowed, and either swimming at the New Jersey shore is allowed or sharks have not been spotted near the shore.
SECTION: 1.2
In Exercises 1–6, translate the given statement into propositional logic using the propositions provided.
1. You cannot edit a protected Wikipedia entry unless you are an administrator. Express your answer in terms of
e: “You can edit a protected Wikipedia entry” and
a: “You are an administrator.”
e → a
2. You can see the movie only if you are over 18 years old or you have the permission of a parent. Express your answer in terms of
m:“You can see the movie,”
e:“Youare over 18 years old,” and
p: “You have the permission of a parent.”
( p ∨ e) → m
3. You can graduate only if you have completed the requirements of your major and you do not owe money to the university and you do not have an overdue library book. Express your answer in terms of
g: “You can graduate,”
m: “You owe money to the university,”
r:“You have completed the requirements of your major,” and
b:“You have an overdue library book.”
g → (r ∧ ( ¬m ) ∧ ( ¬b ) )
4. To use the wireless network in the airport you must pay the daily fee unless you are a subscriber to the service. Express your answer in terms of
w:“You can use the wireless network in the airport,”
d: “You pay the daily fee,” and
s: “You are a subscriber to the service.”
ans: w → ( d ∨ s )
5. You are eligible to be President of the U.S.A. only if you are at least 35 years old, were born in the U.S.A, or at the time of your birth both of your parents were citizens, and you have lived at least 14 years in the country. Express your answer in terms of
e: “You are eligible to be President of the U.S.A.,”
a: “You are at least 35 years old,”
b: “You were born in the U.S.A,”
p: “At the time of your birth, both of your parents where citizens,”
and r: “You have lived at least 14 years in the U.S.A.”
ans : e →( a∧ (b ∨ p ) ∧ r)
6. You can upgrade your operating system only if you have a 32-bit processor running at 1 GHz or faster, at least 1 GB RAM, and 16 GB free hard disk space, or a 64 bit processor running at 2 GHz or faster, at least 2 GB RAM, and at least 32 GB free hard disk space. Express you answer in terms of
u: “You can upgrade your operating system,”
b32: “You have a 32-bit processor,”
b64:“You have a 64-bit processor,”
g1: “Your processor runs at 1 GHz or faster,”
g2:“Your processor run sat 2GHz or faster,”
r1: “Your processor has at least 1 GB RAM,”
r2: “Your processor has at least 2GB RAM,”
h16:“Youhave at least 16 GB free hard disk space,”
and h32: “You have at least 32 GB free hard disk space.”
ans: u →( ( b32 ∧ g1 ∧ r1 ∧ h16) ∨ ( b64 ∧ g2 ∧ r2 ∧ h32) )
7. Express these system specifications using the propositions
p “The message is scanned for viruses”
and q “The message was sent from an unknown system” together with logical connectives (including negations).
a) “The message is scanned for viruses whenever the message was sent from an unknown system.”
ans: q → p
b) “The message was sent from an unknown system but it was not scanned for viruses.”
ans: q ∧ ~p
c) “It is necessary to scan the message for viruses whenever it was sent from an unknown system.”
ans: q→p
d) “When a message is not sent from an unknown system it is not scanned for viruses.”
ans: ~q → ~p
8. Express these system specifications using the propositions
p “The user enters a valid password,”
q “Access is granted,” and
r “The user has paid the subscription fee”
and logical connectives (including negations).
a) “The user has paid the subscription fee, but does not enter a valid password.”
ans : r ∧ ~p
b) “Access is granted whenever the user has paid the subscription fee and enters a valid password.”
ans: p → q
c) “Access is denied if the user has not paid the subscription fee.”
ans: ~r → ~q
d) “If the user has not entered a valid password but has paid the subscription fee, then access is granted.”
ans: ( ~p ∧ r) → q
9. Are these system specifications consistent? “The system is in multi user state if and only if it is operating normally. If the system is operating normally, the kernel is functioning. The kernel is not functioning or the system is in interrupt mode. If the system is not in multi user state, then it is in interrupt mode. The system is not in interrupt mode.”
ans: p: “The system is in multi user state "
q: " It is operating normally"
r: " the kernel is functioning."
s: " the system is in interrupt mode"
p ↔ q
q → r
~r ∨ s
~p → s
~s
Not consistent
10. Are these system specifications consistent? “Whenever the system software is being upgraded, users cannot access the file system. If users can access the file system, then they can save new files. If users cannot save new files, then the system software is not being upgraded.”
ans: Not consistent.
11. Are these system specifications consistent? “The router can send packets to the edge system only if it supports the new address space. For the router to support the new address space it is necessary that the latest software release be installed. The router can send packets to the edge system if the latest software release is installed, The router does not support the new address space.”

0 Comments