100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CO2412 Computational Thinking Lecture 20 £3.48   Add to cart

Lecture notes

CO2412 Computational Thinking Lecture 20

 9 views  0 purchase

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 measur...

[Show more]

Preview 2 out of 5  pages

  • August 20, 2024
  • 5
  • 2023/2024
  • Lecture notes
  • Amin amini
  • All classes
All documents for this subject (19)
avatar-seller
BpoBpo
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.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller BpoBpo. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for £3.48. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

72841 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy revision notes and other study material for 14 years now

Start selling
£3.48
  • (0)
  Add to cart