100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Lecture notes

CO2412 Computational Thinking Lecture 20

Rating
-
Sold
-
Pages
5
Uploaded on
20-08-2024
Written in
2023/2024

This document contains detailed notes from Lecture 20 of the CO2412 course on Computational Thinking, focusing on exam revision topics including propositional logic and statistical measures. The lecture covers essential concepts such as the validity of arguments, logical equivalence, and key measures of central tendency and variation, providing a strong foundation for the upcoming exam.

Show more Read less









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
August 20, 2024
Number of pages
5
Written in
2023/2024
Type
Lecture notes
Professor(s)
Amin amini
Contains
All classes

Content preview

CO2412: Computational Thinking
Lecture 20 – Exam Revision 03
Propositional Logic
1. Definition and Purpose
o Propositional Logic is used to establish the validity of arguments,
providing rules that allow us to judge whether an argument is sound
or unsound. This helps determine whether a conclusion drawn from
stated premises is valid.


2. Propositions
o A proposition is a statement that is either true or false.

o Examples:

 6 < 24 (True)
 3 + 2 = 4 (False)
 "Tomorrow is my birthday" (Context-dependent truth value)


3. Non-Propositional Statements
o Statements like questions and exclamations are not propositions as
they do not equate to true or false.
o Examples:

 "Keep off the grass!" (Exclamation)
 "What time is it?" (Question)


Compound Propositions and Connectives
1. Negation
o The negation of a proposition reverses its truth value. If p is true,
then ¬p (not p) is false, and vice versa.
o Example:

 If p = "It is raining," then ¬p = "It is not raining."

, 2. Conjunction (AND)
o The conjunction of two propositions p and q is true only when both p
and q are true.
o Example:

 p: The sun is shining.
 q: I am learning logic.
 p ˄ q: The sun is shining AND I am learning logic.
3. Disjunction (OR)
o The disjunction of two propositions p and q is true if at least one of
them is true.
o Inclusive OR (˅): Either or both propositions can be true.

o Exclusive OR (XOR): Exactly one but not both propositions are
true.
4. Implication (Conditional)
o Implication: p → q (If p, then q). This is false only when p is true,
and q is false.
o Example:

 p: I eat breakfast.
 q: I don’t eat lunch.
 p → q: If I eat breakfast, then I don’t eat lunch.
5. Bi-conditional
o Bi-conditional: p ↔ q (p if and only if q). This is true when both
propositions have the same truth value.
o Example:

 p: I eat breakfast.
 q: I don’t eat lunch.
 p ↔ q: I eat breakfast if and only if I don’t eat lunch.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BpoBpo University of Central Lancashire Preston
View profile
Follow You need to be logged in order to follow users or courses
Sold
309
Member since
5 year
Number of followers
250
Documents
78
Last sold
1 month ago

3.7

73 reviews

5
27
4
17
3
17
2
5
1
7

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions