Lecture Week -1 -Propositional Logic.pdf
Lecture Week -1 -Propositional Logic.pdf
1
Agenda
• Module Introduction
Your Module Leader
Module Objective
Module Assessments and Syllabus Summary
Recommended booklist
• Week 1 Lecture Coverage
– Introduction to logic
– Proposition and compound Proposition
– Truth table
2
Module Leader
3
Your Tutor
4
Introduction to the Module
• Overview of Module
– What can you expect?
• Learning Objectives
– How will you benefit?
• Learning Strategy
– How you will learn?
• Assessment Overview
– How you will be tested?
5
Overview of Module
• Logic and Problem solving
Aim:
This module seeks to consolidate and improve
students’ mathematical knowledge, skills and concepts
through practical, analytical, problem Solving
applications and through integration with other
modules. This module introduces, and in some cases
reviews, the mathematical foundations of Computer
science.
6
Overview of Module
Syllabus :
Propositional logic
Linear Programming ,Math of finance and Break even analysis using excel as tool
7
Learning
Objectives
Computer
Hardware
Programming
Databases
Design Computer graphics
Logic and Problem solving
8
Learning Strategy
Logic and Problem solving
• Taught over 2 semester (30 weeks )
• Each week consists of 1 Lecture (1.5 Hours) and 2
tutorials (1.5 Hours and 1 hour each)
– Lecture: Learn how to acquire different
mathematical skills
– Tutorial: Review and practice mathematical
problems through in-class assignments to actually
acquire them
9
Module Assessment Summary
Assessments:
Two Class tests: (50% of total module marks)
Week 8(25%) and Week 22(25%)
1.15 hours closed book class test.
13
Assessment Details
• Module Grading Standards in the UK
Range of
Grade Remarks
Marks
Excellent: outstanding performance with only minor
70 - 100 A
errors
Very Good: above the average standard but with
60 - 69 B
some errors
Good: generally sound work with a number of
50 - 59 C
notable errors
43 - 49 D Satisfactory: fair but with significant shortcomings
40 - 42 E Sufficient: performance meets the minimum criteria
Fail: performance does not meet the minimum
0 - 39 F
criteria and considerable further work is required
14
Any Questions?
15
Let’s get started with Lecture 1
17
Why Mathematics is Important ???
• Play Videos
– Why mathematics is important ?
– When not knowing math can cost you $15,000
Example:
p = Java is an object-oriented language.
Meaning,
p represents the proposition “Java is an object-oriented
language”
Primitive and Compound Propositions:
p: Kathmandu is in either Nepal or UK.
This proposition is made up of two simpler propositions.
q: Kathmandu is in Nepal.
r: Kathmandu is in UK.
Joined together by the word “or”
Primitive and Compound Propositions:
Propositions q and r cannot themselves be broken
down into simpler ones. Such propositions are called
primitive.
In the above example “p” is combination of two
propositions called compound proposition.
In the above example, compound proposition is
connected by “or” which is called connective.
Compound Propositions:
A compound proposition is an expression P(p, q, r, ...),
which consists of propositional variables p, q, r, ... joined
together by the logical connectives ∧, V and ¬.
30
Operations on Propositions:
Main operations on propositions are:
1)Conjunction/ AND
2)Disjunction/ OR and
3)Negation/ NOT/ Complement
4)Conditional
5)Bi-conditional
Conjunction:(AND)
Conjunction of two propositions:
Let p and q be given propositions.
The proposition “p and q” is called the conjunction of the
given propositions. It is written p ∧ q and read as “p and
q”.
p ∧ q is true if both propositions p and q are true,
otherwise p ∧ q is false.
Conjunction (Contd.):
Example.
p: Kathmandu is the capital of Nepal.
q: Delhi is the capital of India.
(p and q) : Kathmandu is the capital of Nepal and
Delhi is the capital of India.
41
Truth Tables:
Truth Tables represents the truth or falsity of logical
statements.
Example:
p q r q∨r p ∧ (q ∨ r)
T T T T T
T T F T T
T F T T T
T F F F F
F T T T F
F T F T F
F F T T F
F F F F F
Any Questions?
48
Exercises:
1. Which of the following are propositions?
a. How tall are you?
b. 2+8=11
c. X+3=4
d. Come here.
e. Mercury is the closest planet to earth.
f. x2 – 16 = 0 has two solutions.
Exercises:
2. Assume that p represents the statement “ Hari is
happy” and q represents the statement “Ram is in
pain”. Write natural language statements (English
sentences) for each of the following propositions:
a. ¬ p b. p ∧ q c. p ∨ ¬ q
d. p ∨ q e. q ∨ ¬ p
Exercises:
3. Write down the truth table for
a. p ∧ (¬q)
b. (¬p) ∧ (¬q)
c. ¬ (p ∧ q)
d. p ∧ (q ∨ r)
e. (p ∧ q) ∨ r
f. ¬ p ∧ q
g. p ∧ (false ∧ q)
Any Questions?
52
Summary: Week 1 Lecture
• Logic and proposition
• Logical Connectives
• Truth tables
53
What to Expect: Week 1 Tutorials
54
Thank you