SlideShare une entreprise Scribd logo
1  sur  36
Lecture 1
by
Md. Rasel Ahmed
Instructor:
Md. Rasel Ahmed
Lecturer
Dept. Of CSE
Faridpur Engineering College
Room No # 207
E-mail: raseljucse@gmail.com
Lecture hours: Tuesday: 11.20 a.m. - 12.10 p.m.
Wednesday: 11.20 a.m. - 12.10 p.m.
Thursday: 9.40 a.m. - 10.30 a.m.
Textbook
 Kenneth H. Rosen . Discrete Mathematics and Its
Applications , 6th Edition, McGraw Hill, 2007.
 Exercises from the book will be given for homework
assignments
Course syllabus
Tentative topics:
 Logic and proofs
 Sets
 Functions
 Integers and modular arithmetic
 Sequences and summations
 Counting
 Probability
 Relations
 Graphs
 Boolean Algebra
Discrete mathematics
 Discrete mathematics is the study of mathematical
structures and objects that are fundamentally discrete
rather than continuous .
 Examples of objects with discrete values are
integers, graphs, or statements in logic .
 Discrete mathematics and computer science .
Concepts from discrete mathematics are useful for
describing objects and problems in computer
algorithms and programming languages. These have
applications in cryptography, automated theorem
proving, and software development.
Course syllabus
Tentative topics:
 Logic and proofs
 Sets
 Functions
 Integers and modular arithmetic
 Sequences and summations
 Counting
 Probability
 Relations
 Graphs
 Boolean Algebra
Logic
Logic:
 Defines a formal language for representing knowledge
and for making logical inferences
 It helps us to understand how to construct a valid
argument
Logic defines:
 Syntax of statements
 The meaning of statements
 The rules of logical inference
Propositional logic
 The simplest logic
 Definition:
A proposition is a statement that is either true or false.
 Examples:
– Pitt is located in the Oakland section of Pittsburgh.
(T)
– 5 + 2 = 8.
(F)
– It is raining today.
(either T or F)
Propositional logic
 Examples (cont.):
– How are you?
?
Propositional logic
 Examples (cont.):
– How are you?
 a question is not a proposition
– x + 5 = 3
 since x is not specified, neither true nor false
– 2 is a prime number.
 (T)
– She is very talented.
 since she is not specified, neither true nor false
– There are other life forms on other planets in the universe.
 either T or F
Composite statements
 More complex propositional statements can be build from
the elementary statements using logical connectives.
 Logical connectives:
– Negation
– Conjunction
– Disjunction
– Exclusive or
– Implication
– Biconditional
Negation
 Defn : Let p be a proposition. The statement "It is not the
case that p." is another proposition, called the negation
of p . The negation of p is denoted by ¬p and read as "not
p."
 Examples:
– It is not the case that Pitt is located in the Oakland section
of Pittsburgh.
– 5 + 2 ≠ 8.
– 10 is not a prime number.
– It is not the case that buses stop running at 9:00pm.
Negation
 Negate the following propositions:
– It is raining today.
• It is not raining today.
– 2 is a prime number.
•2 is not a prime number
– There are other life forms on other planets in the
universe.
• It is not the case that there are other life forms on
other planets in the universe.
Negation
 A truth table displays the relationships between
truth values (T or F) of propositions.
Negation
 A truth table displays the relationships between
truth values (T or F) of propositions.
Conjunction
 Definition : Let p and q be propositions. The
proposition " p and q " denoted by p Λ q, is true when
both p and q are true and is false otherwise. The
proposition p Λ q is called the conjunction of p and q.
 Examples:
– Pitt is located in the Oakland section of Pittsburgh and 5 +
2 = 8
– It is raining today and 2 is a prime number.
– 2 is a prime number and 5 + 2 ≠ 8.
– 13 is a perfect square and 9 is a prime.
Disjunction
 Definition : Let p and q be propositions. Theproposition
" p or q " denoted by p ∨ q, is false when both p and q are
false and is true otherwise. The proposition p ∨ q is called
the disjunction of p and q.
 Examples:
– Pitt is located in the Oakland section of Pittsburgh or 5 + 2
= 8.
– It is raining today or 2 is a prime number.
– 2 is a prime number or 5 + 2 ≠ 8.
– 13 is a perfect square or 9 is a prime.
Truth tables
 Conjunction and disjunction
• Four different combinations of values for p and q
Truth tables
 Conjunction and disjunction
• Four different combinations of values for p and q
 NB: p ∨ q (the or is used inclusively, i.e., p ∨ q is true
when either p or q or both are true).
Exclusive or
 Definition: Let p and q be propositions. The
proposition " p exclusive or q " denoted by p ⊕ q , is
true when exactly one of p and q is true and it is false
otherwise.
Exclusive or
 Definition: Let p and q be propositions. The
proposition " p exclusive or q " denoted by p ⊕ q , is
true when exactly one of p and q is true and it is false
otherwise.
Implication
 Definition : Let p and q be propositions. The
proposition " p implies q " denoted by p → q is
called implication. It is false when p is true and q is
false and is true otherwise.
 In p → q, p is called the hypothesis and q is called
the conclusion .
Implication
 Definition : Let p and q be propositions. The
proposition " p implies q " denoted by p → q is
called implication. It is false when p is true and q is
false and is true otherwise.
 In p → q, p is called the hypothesis and q is called
the conclusion .
Implication
 p → q is read in a variety of equivalent ways:
• if p then q
• p only if q
• p is sufficient for q
• q whenever p
 Examples:
– if the moon is made of green cheese then 2 is a prime.
• What is the truth value ?
– if today is tuesday then 2 * 3 = 8.
• What is the truth value ?
Implication
 p → q is read in a variety of equivalent ways:
• if p then q
• p only if q
• p is sufficient for q
• q whenever p
 Examples:
– if the moon is made of green cheese then 2 is a prime.
• If F then T
– if today is tuesday then 2 * 3 = 8.
• What is the truth value ?
Implication
 p → q is read in a variety of equivalent ways:
• if p then q
• p only if q
• p is sufficient for q
• q whenever p
 Examples:
– if the moon is made of green cheese then 2 is a prime.
• T
– if today is tuesday then 2 * 3 = 8.
• What is the truth value ?
Implication
 p → q is read in a variety of equivalent ways:
• if p then q
• p only if q
• p is sufficient for q
• q whenever p
 Examples:
– if the moon is made of green cheese then 2 is a prime.
• T
– if today is tuesday then 2 * 3 = 8.
• If T then F
Implication
 p → q is read in a variety of equivalent ways:
• if p then q
• p only if q
• p is sufficient for q
• q whenever p
 Examples:
– if the moon is made of green cheese then 2 is a prime.
• T
– if today is tuesday then 2 * 3 = 8.
• F
Implication
 The converse of p → q is q → p.
 The contrapositive of p → q is ¬q → ¬p
 The inverse of p → q is ¬p → ¬q
 Examples:
• If it snows, the traffic moves slowly.
• p: it snows q: traffic moves slowly.
• p → q
– The converse:
If the traffic moves slowly then it snows.
• q → p
Implication
 • The contrapositive of p → q is ¬q → ¬p
 • The inverse of . p → q is ¬p → ¬q
 Examples:
• If it snows, the traffic moves slowly.
– The contrapositive:
• If the traffic does not move slowly then it does not snow.
•¬q → ¬p
– The inverse:
• If does not snow the traffic moves quickly.
•¬p → ¬q
Biconditional
 Definition : Let p and q be propositions. The
biconditional p↔ q (read p if and only if q), is true
when p and q have the same truth values and is false
otherwise.
 Note: two truth values always agree.
Biconditional
 Definition : Let p and q be propositions. The
biconditional p↔ q (read p if and only if q), is true
when p and q have the same truth values and is false
otherwise.
 Note: two truth values always agree.
Constructing the truth table
 Examples: Construct a truth table for
(p → q) ∧ (¬p ↔ q)
Constructing the truth table
 Examples: Construct a truth table for
(p → q) ∧ (¬p ↔ q)
CSE-203 Lec_1.pptx

Contenu connexe

Similaire à CSE-203 Lec_1.pptx

Discrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsDiscrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsAbdulRehman378540
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDr. Khaled Bakro
 
Artificial Intelligence - Propositional Logic
Artificial Intelligence - Propositional LogicArtificial Intelligence - Propositional Logic
Artificial Intelligence - Propositional LogicSaravanan T.M
 
Mathematical prepositions implications
Mathematical prepositions  implicationsMathematical prepositions  implications
Mathematical prepositions implicationsvarshachhajera
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]DIwakar Rajput
 
Propositional Logic.pdf
Propositional Logic.pdfPropositional Logic.pdf
Propositional Logic.pdfZLEMORHAN3
 
chapter 1 (part 2)
chapter 1 (part 2)chapter 1 (part 2)
chapter 1 (part 2)Raechel Lim
 
logic, preposition etc
logic, preposition etclogic, preposition etc
logic, preposition etcAbdur Rehman
 
1.3.2 Conditional Statements
1.3.2 Conditional Statements1.3.2 Conditional Statements
1.3.2 Conditional Statementssmiller5
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxPriyalMayurManvar
 
Laws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsLaws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsZenLooper
 
CMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional LogicCMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional Logicallyn joy calcaben
 
Unit I discrete mathematics lecture notes
Unit I  discrete mathematics lecture notesUnit I  discrete mathematics lecture notes
Unit I discrete mathematics lecture notesGIRIM8
 
Logic, contrapositive, converse, Discrete Mathematics, conjunction, negation
Logic, contrapositive, converse, Discrete Mathematics, conjunction, negationLogic, contrapositive, converse, Discrete Mathematics, conjunction, negation
Logic, contrapositive, converse, Discrete Mathematics, conjunction, negationZaidAly1
 
Discrete mathematics by Seerat Abbas khan
Discrete mathematics by Seerat Abbas khanDiscrete mathematics by Seerat Abbas khan
Discrete mathematics by Seerat Abbas khanSeerat Abbas Khan
 

Similaire à CSE-203 Lec_1.pptx (20)

Logic2.pptx
Logic2.pptxLogic2.pptx
Logic2.pptx
 
Discrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsDiscrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete Mathematics
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
 
Artificial Intelligence - Propositional Logic
Artificial Intelligence - Propositional LogicArtificial Intelligence - Propositional Logic
Artificial Intelligence - Propositional Logic
 
Mathematical prepositions implications
Mathematical prepositions  implicationsMathematical prepositions  implications
Mathematical prepositions implications
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]
 
Propositional Logic.pdf
Propositional Logic.pdfPropositional Logic.pdf
Propositional Logic.pdf
 
chapter 1 (part 2)
chapter 1 (part 2)chapter 1 (part 2)
chapter 1 (part 2)
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
 
logic, preposition etc
logic, preposition etclogic, preposition etc
logic, preposition etc
 
1.3.2 Conditional Statements
1.3.2 Conditional Statements1.3.2 Conditional Statements
1.3.2 Conditional Statements
 
Lecture 1 Propositional logic
Lecture 1   Propositional logicLecture 1   Propositional logic
Lecture 1 Propositional logic
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptx
 
Laws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsLaws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applications
 
CMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional LogicCMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional Logic
 
Unit I discrete mathematics lecture notes
Unit I  discrete mathematics lecture notesUnit I  discrete mathematics lecture notes
Unit I discrete mathematics lecture notes
 
Logic, contrapositive, converse, Discrete Mathematics, conjunction, negation
Logic, contrapositive, converse, Discrete Mathematics, conjunction, negationLogic, contrapositive, converse, Discrete Mathematics, conjunction, negation
Logic, contrapositive, converse, Discrete Mathematics, conjunction, negation
 
Discrete mathematics by Seerat Abbas khan
Discrete mathematics by Seerat Abbas khanDiscrete mathematics by Seerat Abbas khan
Discrete mathematics by Seerat Abbas khan
 

Dernier

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 

Dernier (20)

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 

CSE-203 Lec_1.pptx

  • 1.
  • 3. Instructor: Md. Rasel Ahmed Lecturer Dept. Of CSE Faridpur Engineering College Room No # 207 E-mail: raseljucse@gmail.com Lecture hours: Tuesday: 11.20 a.m. - 12.10 p.m. Wednesday: 11.20 a.m. - 12.10 p.m. Thursday: 9.40 a.m. - 10.30 a.m.
  • 4. Textbook  Kenneth H. Rosen . Discrete Mathematics and Its Applications , 6th Edition, McGraw Hill, 2007.  Exercises from the book will be given for homework assignments
  • 5. Course syllabus Tentative topics:  Logic and proofs  Sets  Functions  Integers and modular arithmetic  Sequences and summations  Counting  Probability  Relations  Graphs  Boolean Algebra
  • 6. Discrete mathematics  Discrete mathematics is the study of mathematical structures and objects that are fundamentally discrete rather than continuous .  Examples of objects with discrete values are integers, graphs, or statements in logic .  Discrete mathematics and computer science . Concepts from discrete mathematics are useful for describing objects and problems in computer algorithms and programming languages. These have applications in cryptography, automated theorem proving, and software development.
  • 7. Course syllabus Tentative topics:  Logic and proofs  Sets  Functions  Integers and modular arithmetic  Sequences and summations  Counting  Probability  Relations  Graphs  Boolean Algebra
  • 8. Logic Logic:  Defines a formal language for representing knowledge and for making logical inferences  It helps us to understand how to construct a valid argument Logic defines:  Syntax of statements  The meaning of statements  The rules of logical inference
  • 9. Propositional logic  The simplest logic  Definition: A proposition is a statement that is either true or false.  Examples: – Pitt is located in the Oakland section of Pittsburgh. (T) – 5 + 2 = 8. (F) – It is raining today. (either T or F)
  • 10. Propositional logic  Examples (cont.): – How are you? ?
  • 11. Propositional logic  Examples (cont.): – How are you?  a question is not a proposition – x + 5 = 3  since x is not specified, neither true nor false – 2 is a prime number.  (T) – She is very talented.  since she is not specified, neither true nor false – There are other life forms on other planets in the universe.  either T or F
  • 12. Composite statements  More complex propositional statements can be build from the elementary statements using logical connectives.  Logical connectives: – Negation – Conjunction – Disjunction – Exclusive or – Implication – Biconditional
  • 13. Negation  Defn : Let p be a proposition. The statement "It is not the case that p." is another proposition, called the negation of p . The negation of p is denoted by ¬p and read as "not p."  Examples: – It is not the case that Pitt is located in the Oakland section of Pittsburgh. – 5 + 2 ≠ 8. – 10 is not a prime number. – It is not the case that buses stop running at 9:00pm.
  • 14. Negation  Negate the following propositions: – It is raining today. • It is not raining today. – 2 is a prime number. •2 is not a prime number – There are other life forms on other planets in the universe. • It is not the case that there are other life forms on other planets in the universe.
  • 15. Negation  A truth table displays the relationships between truth values (T or F) of propositions.
  • 16. Negation  A truth table displays the relationships between truth values (T or F) of propositions.
  • 17. Conjunction  Definition : Let p and q be propositions. The proposition " p and q " denoted by p Λ q, is true when both p and q are true and is false otherwise. The proposition p Λ q is called the conjunction of p and q.  Examples: – Pitt is located in the Oakland section of Pittsburgh and 5 + 2 = 8 – It is raining today and 2 is a prime number. – 2 is a prime number and 5 + 2 ≠ 8. – 13 is a perfect square and 9 is a prime.
  • 18. Disjunction  Definition : Let p and q be propositions. Theproposition " p or q " denoted by p ∨ q, is false when both p and q are false and is true otherwise. The proposition p ∨ q is called the disjunction of p and q.  Examples: – Pitt is located in the Oakland section of Pittsburgh or 5 + 2 = 8. – It is raining today or 2 is a prime number. – 2 is a prime number or 5 + 2 ≠ 8. – 13 is a perfect square or 9 is a prime.
  • 19. Truth tables  Conjunction and disjunction • Four different combinations of values for p and q
  • 20. Truth tables  Conjunction and disjunction • Four different combinations of values for p and q  NB: p ∨ q (the or is used inclusively, i.e., p ∨ q is true when either p or q or both are true).
  • 21. Exclusive or  Definition: Let p and q be propositions. The proposition " p exclusive or q " denoted by p ⊕ q , is true when exactly one of p and q is true and it is false otherwise.
  • 22. Exclusive or  Definition: Let p and q be propositions. The proposition " p exclusive or q " denoted by p ⊕ q , is true when exactly one of p and q is true and it is false otherwise.
  • 23. Implication  Definition : Let p and q be propositions. The proposition " p implies q " denoted by p → q is called implication. It is false when p is true and q is false and is true otherwise.  In p → q, p is called the hypothesis and q is called the conclusion .
  • 24. Implication  Definition : Let p and q be propositions. The proposition " p implies q " denoted by p → q is called implication. It is false when p is true and q is false and is true otherwise.  In p → q, p is called the hypothesis and q is called the conclusion .
  • 25. Implication  p → q is read in a variety of equivalent ways: • if p then q • p only if q • p is sufficient for q • q whenever p  Examples: – if the moon is made of green cheese then 2 is a prime. • What is the truth value ? – if today is tuesday then 2 * 3 = 8. • What is the truth value ?
  • 26. Implication  p → q is read in a variety of equivalent ways: • if p then q • p only if q • p is sufficient for q • q whenever p  Examples: – if the moon is made of green cheese then 2 is a prime. • If F then T – if today is tuesday then 2 * 3 = 8. • What is the truth value ?
  • 27. Implication  p → q is read in a variety of equivalent ways: • if p then q • p only if q • p is sufficient for q • q whenever p  Examples: – if the moon is made of green cheese then 2 is a prime. • T – if today is tuesday then 2 * 3 = 8. • What is the truth value ?
  • 28. Implication  p → q is read in a variety of equivalent ways: • if p then q • p only if q • p is sufficient for q • q whenever p  Examples: – if the moon is made of green cheese then 2 is a prime. • T – if today is tuesday then 2 * 3 = 8. • If T then F
  • 29. Implication  p → q is read in a variety of equivalent ways: • if p then q • p only if q • p is sufficient for q • q whenever p  Examples: – if the moon is made of green cheese then 2 is a prime. • T – if today is tuesday then 2 * 3 = 8. • F
  • 30. Implication  The converse of p → q is q → p.  The contrapositive of p → q is ¬q → ¬p  The inverse of p → q is ¬p → ¬q  Examples: • If it snows, the traffic moves slowly. • p: it snows q: traffic moves slowly. • p → q – The converse: If the traffic moves slowly then it snows. • q → p
  • 31. Implication  • The contrapositive of p → q is ¬q → ¬p  • The inverse of . p → q is ¬p → ¬q  Examples: • If it snows, the traffic moves slowly. – The contrapositive: • If the traffic does not move slowly then it does not snow. •¬q → ¬p – The inverse: • If does not snow the traffic moves quickly. •¬p → ¬q
  • 32. Biconditional  Definition : Let p and q be propositions. The biconditional p↔ q (read p if and only if q), is true when p and q have the same truth values and is false otherwise.  Note: two truth values always agree.
  • 33. Biconditional  Definition : Let p and q be propositions. The biconditional p↔ q (read p if and only if q), is true when p and q have the same truth values and is false otherwise.  Note: two truth values always agree.
  • 34. Constructing the truth table  Examples: Construct a truth table for (p → q) ∧ (¬p ↔ q)
  • 35. Constructing the truth table  Examples: Construct a truth table for (p → q) ∧ (¬p ↔ q)