SlideShare uma empresa Scribd logo
1 de 30
Baixar para ler offline
Discrete Structures (CS 335)
Mohsin Raza
University Institute of Information
Technology PMAS Arid Agriculture University
Rawalpindi
Discrete vs Continuous
• Examples of discrete Data
– Number of boys in the class.
– Number of candies in a packet.
– Number of suitcases lost by an airline.
Discrete

Continuous

• Examples of continuous Data
– Height of a person.
– Time in a race.
– Distance traveled by a car.

10/7/2013

Discrete Structures(CS 335)

2
What is discrete Structures?
• Discrete mathematics is the part of mathematics
devoted to the study of discrete objects (Kenneth H.
Rosen, 6th edition).
• Discrete mathematics is the study of mathematical
structures that are fundamentally discrete rather
than continuous (wikipedia).

10/7/2013

Discrete Structures(CS 335)

3
Syllabus (Topics to be covered in this course)
•
•
•
•
•
•
•
•
•
•
10/7/2013

Logic
Elementary Number Theory and Methods of Proof
Set Theory
Relations
Sequences and Recursion
Mathematical Induction
Counting
Relations and Equivalence Relations
Graphs
Trees
Discrete Structures(CS 335)

4
Reference Books
• Discrete Mathematics and its Applications
(with Combinatorics and Graph Theory)
5th Edition, The McGraw-Hill Companies, 2007,

Kenneth H. Rosen.
• Discrete Mathematics with Applications
4th Edition, Thomson Learning, 1995,

Susanna S. Epp.
• Discrete Mathematics for Computer Scientists
2nd Edition, Addison-Wesley, 1999,

John

Truss.
10/7/2013

Discrete Structures(CS 335)

5
Logic
• Propositional Logic
• Logic of Compound Statements
• Propositional Equivalences

• Conditional Statements
• Logical Equivalences
• Valid and Invalid Arguments

• Applications: Digital Logic Circuits
• Predicates and Quantifiers
• Logic of Quantified Statements
10/7/2013

Discrete Structures(CS 335)

6
Propositional Logic
Proposition: A proposition (or Statement) is a declarative
sentence (that is, a sentence that declares a
fact) that is either true or false, but not both.
Examples
1. Is the following sentence a proposition? If it is a proposition,
determine whether it is true or false.
Islamabad is the capital of Pakistan.
This makes a declarative statement, and hence is a
proposition. The proposition is TRUE (T).

10/7/2013

Discrete Structures(CS 335)

7
Examples (Propositions Cont.)
2. Is the following sentence a proposition? If it is a

proposition, determine whether it is true or false.

Can Ali come with you?.
This is a question not the declarative sentence and hence
not a proposition.

10/7/2013

Discrete Structures(CS 335)

8
Examples (Propositions Cont.)
3. Is the following sentence a proposition? If it is a
proposition, determine whether it is true or false.

Take two aspirins.
This is an imperative sentence not the declarative
sentence and therefore not a proposition.

10/7/2013

Discrete Structures(CS 335)

9
Examples (Propositions Cont.)
4. Is the following sentence a proposition? If it is a

proposition, determine whether it is true or false.

x+ 4 > 9.
Because this is true for certain values of x (such as x =
6) and false for other values of x (such as x = 5), it is not
a proposition.

10/7/2013

Discrete Structures(CS 335)

10
Examples (Propositions Cont.)
5. Is the following sentence a proposition? If it is a
proposition, determine whether it is true or false.

He is a college student.
Because truth or falsity of this proposition depend
on the reference for the pronoun he. it is not a
proposition.

10/7/2013

Discrete Structures(CS 335)

11
Notations
• The small letters are commonly used to denote the
propositional variables, that is, variables that
represent propositions, such as, p, q, r, s, ….
• The truth value of a proposition is true, denoted by T
or 1, if it is a true proposition and false, denoted by F
or 0, if it is a false proposition.

10/7/2013

Discrete Structures(CS 335)

12
Compound Propositions
Producing new propositions from existing propositions.

Logical Operators or Connectives
1. Not



2. And

˄

3. Or

˅

4. Exclusive or



5. Implication



6. Biconditional



10/7/2013

Discrete Structures(CS 335)

13
Compound Propositions
Negation of a proposition
Let p be a proposition. The negation of p, denoted by
 p (also denoted by ~p), is the statement

“It is not the case that p”.
The proposition  p is read as “not p”. The truth
values of the negation of p,  p, is the opposite of the
truth value of p.

10/7/2013

Discrete Structures(CS 335)

14
Examples
1. Find the negation of the following proposition

p : Today is Friday.
The negation is
 p : It is not the case that today is Friday.

This negation can be more simply expressed by
 p : Today is not Friday.

10/7/2013

Discrete Structures(CS 335)

15
Examples
2. Write the negation of

“6 is negative”.
The negation is

“It is not the case that 6 is negative”.
or

10/7/2013

“6 is nonnegative”.

Discrete Structures(CS 335)

16
Truth Table (NOT)
• Unary Operator, Symbol: 
p
true

false

false

10/7/2013

p

true

Discrete Structures(CS 335)

17
Conjunction (AND)
Definition
Let p and q be propositions. The conjunction
of p and q, denoted by p˄q, is the proposition
“p and q”.
The conjunction p˄q is true when p and q are
both true and is false otherwise.

10/7/2013

Discrete Structures(CS 335)

18
Examples
1. Find the conjunction of the propositions p and q, where

p : Today is Friday.
q : It is raining today.
The conjunction is

p˄q : Today is Friday and it is raining today.

10/7/2013

Discrete Structures(CS 335)

19
Truth Table (AND)
• Binary Operator, Symbol: 
p

pq

true

true

true

true

false

false

false

true

false

false
10/7/2013

q

false

false

Discrete Structures(CS 335)

20
Disjunction (OR)
Definition

Let p and q be propositions. The disjunction
of p and q, denoted by p˅q, is the proposition
“p or q”.
The disjunction p˅q is false when both p and
q are false and is true otherwise.

10/7/2013

Discrete Structures(CS 335)

21
Examples
1. Find the disjunction of the propositions p and q,
where

p : Today is Friday.
q : It is raining today.
The disjunction is

p˅q : Today is Friday or it is raining today.

10/7/2013

Discrete Structures(CS 335)

22
Truth Table (OR)

• Binary Operator, Symbol: 
p

pq

true

true

true

true

false

true

false

true

true

false
10/7/2013

q

false

false

Discrete Structures(CS 335)

23
Exclusive OR (XOR)
Definition

Let p and q be propositions. The exclusive or
of p and q, denoted by pq, is the proposition
“pq”.
The exclusive or, p  q, is true when exactly
one of p and q is true and is false otherwise.

10/7/2013

Discrete Structures(CS 335)

24
Examples
1. Find the exclusive or of the propositions p and q,
where

p : Atif will pass the course CSC102.
q : Atif will fail the course CSC102.
The exclusive or is

pq : Atif will pass or fail the course CSC102.

10/7/2013

Discrete Structures(CS 335)

25
Truth Table (XOR)

• Binary Operator, Symbol: 
p

pq

true

true

false

true

false

true

false

true

true

false
10/7/2013

q

false

false

Discrete Structures(CS 335)

26
Examples (OR vs XOR)
The following proposition uses the (English) connective
“or”. Determine from the context whether “or” is intended
to be used in the inclusive or exclusive sense.

1. “Nabeel has one or two brothers”.
A person cannot have both one and two brothers.
Therefore, “or” is used in the exclusive sense.

10/7/2013

Discrete Structures(CS 335)

27
Examples (OR vs XOR)
2. To register for BSC you must have passed
the qualifying exam or be listed as an Math
major.
Presumably, if you have passed the qualifying exam and
are also listed as an Math major, you can still register for
BCS. Therefore, “or” is inclusive.

10/7/2013

Discrete Structures(CS 335)

28
Composite Statements
Statements and operators can be combined in any
way to form new statements.

p

q

p

q

(p)(q)

true

true

false

false

false

true

false

false

true

true

false

true

true

false

true

false

false

true

true

true

10/7/2013

Discrete Structures(CS 335)

29
Lecture Summery
• Introduction to the Course
• Propositions
• Logical Connectives
• Truth Tables

• Compound propositions

10/7/2013

Discrete Structures(CS 335)

30

Mais conteúdo relacionado

Mais procurados

Theory of Computation
Theory of ComputationTheory of Computation
Theory of ComputationShiraz316
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Ikhtiar Khan Sohan
 
Syntax and semantics of propositional logic
Syntax and semantics of propositional logicSyntax and semantics of propositional logic
Syntax and semantics of propositional logicJanet Stemwedel
 
Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4DigiGurukul
 
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
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logicAmey Kerkar
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmeticsangeetha s
 
Rules of inference
Rules of inferenceRules of inference
Rules of inferenceharman kaur
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)Nitesh Singh
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principlenielsoli
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logicgiki67
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer scienceBindhuBhargaviTalasi
 
Truth tables
Truth tablesTruth tables
Truth tableswalkerlj
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicIT Engineering Department
 
Rules of inference
Rules of inferenceRules of inference
Rules of inferenceLakshmi R
 

Mais procurados (20)

Theory of Computation
Theory of ComputationTheory of Computation
Theory of Computation
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
 
Syntax and semantics of propositional logic
Syntax and semantics of propositional logicSyntax and semantics of propositional logic
Syntax and semantics of propositional logic
 
Discrete Math Lecture 03: Methods of Proof
Discrete Math Lecture 03: Methods of ProofDiscrete Math Lecture 03: Methods of Proof
Discrete Math Lecture 03: Methods of Proof
 
Formal Logic - Lesson 1 - Introduction to Logic
Formal Logic - Lesson 1 - Introduction to LogicFormal Logic - Lesson 1 - Introduction to Logic
Formal Logic - Lesson 1 - Introduction to Logic
 
Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4
 
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 د. خالد بكرو
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Proposition (Logic)
Proposition (Logic)Proposition (Logic)
Proposition (Logic)
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmetic
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principle
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
 
Truth tables
Truth tablesTruth tables
Truth tables
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional Logic
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 

Destaque

Applications of Discrete Structures
Applications of Discrete StructuresApplications of Discrete Structures
Applications of Discrete Structuresaviban
 
Discrete Mathematics Lecture Notes
Discrete Mathematics Lecture NotesDiscrete Mathematics Lecture Notes
Discrete Mathematics Lecture NotesFellowBuddy.com
 
Discrete Mathematics Lecture
Discrete Mathematics LectureDiscrete Mathematics Lecture
Discrete Mathematics LectureGenie Rose Santos
 
Organization of the ibm personal computers
Organization of the ibm personal computersOrganization of the ibm personal computers
Organization of the ibm personal computerswarda aziz
 
assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUEducation
 
Introduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete MathematicsIntroduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete Mathematicsblaircomp2003
 
Marketing Management Short Notes
Marketing Management Short NotesMarketing Management Short Notes
Marketing Management Short NotesRachit Sachdeva
 
PRINCIPLES OF MANAGEMENT lecture notes
PRINCIPLES OF MANAGEMENT lecture notesPRINCIPLES OF MANAGEMENT lecture notes
PRINCIPLES OF MANAGEMENT lecture notesBala Murugan
 

Destaque (8)

Applications of Discrete Structures
Applications of Discrete StructuresApplications of Discrete Structures
Applications of Discrete Structures
 
Discrete Mathematics Lecture Notes
Discrete Mathematics Lecture NotesDiscrete Mathematics Lecture Notes
Discrete Mathematics Lecture Notes
 
Discrete Mathematics Lecture
Discrete Mathematics LectureDiscrete Mathematics Lecture
Discrete Mathematics Lecture
 
Organization of the ibm personal computers
Organization of the ibm personal computersOrganization of the ibm personal computers
Organization of the ibm personal computers
 
assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YU
 
Introduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete MathematicsIntroduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete Mathematics
 
Marketing Management Short Notes
Marketing Management Short NotesMarketing Management Short Notes
Marketing Management Short Notes
 
PRINCIPLES OF MANAGEMENT lecture notes
PRINCIPLES OF MANAGEMENT lecture notesPRINCIPLES OF MANAGEMENT lecture notes
PRINCIPLES OF MANAGEMENT lecture notes
 

Semelhante a Discrete Structures. Lecture 1

Discrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and ProofsDiscrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and ProofsWongyos Keardsri
 
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
 
Lecture Notes MTH302 Before MTT Myers.docx
Lecture Notes MTH302 Before MTT Myers.docxLecture Notes MTH302 Before MTT Myers.docx
Lecture Notes MTH302 Before MTT Myers.docxRaghavaReddy449756
 
Truth, deduction, computation; lecture 5
Truth, deduction, computation;  lecture 5Truth, deduction, computation;  lecture 5
Truth, deduction, computation; lecture 5Vlad Patryshev
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhbeshahashenafe20
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhbeshahashenafe20
 
Geometry journal 2
Geometry journal 2Geometry journal 2
Geometry journal 2Katina1196
 
AI_session 22 inference and unification.pptx
AI_session 22 inference and unification.pptxAI_session 22 inference and unification.pptx
AI_session 22 inference and unification.pptxAsst.prof M.Gokilavani
 

Semelhante a Discrete Structures. Lecture 1 (15)

Dscrete structure
Dscrete  structureDscrete  structure
Dscrete structure
 
Discrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and ProofsDiscrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and Proofs
 
AI_Session 20 Horn clause.pptx
AI_Session 20 Horn clause.pptxAI_Session 20 Horn clause.pptx
AI_Session 20 Horn clause.pptx
 
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
 
Lecture Notes MTH302 Before MTT Myers.docx
Lecture Notes MTH302 Before MTT Myers.docxLecture Notes MTH302 Before MTT Myers.docx
Lecture Notes MTH302 Before MTT Myers.docx
 
Truth, deduction, computation; lecture 5
Truth, deduction, computation;  lecture 5Truth, deduction, computation;  lecture 5
Truth, deduction, computation; lecture 5
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
 
AI_Session 21 First order logic.pptx
AI_Session 21 First order logic.pptxAI_Session 21 First order logic.pptx
AI_Session 21 First order logic.pptx
 
Geometry journal 2
Geometry journal 2Geometry journal 2
Geometry journal 2
 
AI_session 22 inference and unification.pptx
AI_session 22 inference and unification.pptxAI_session 22 inference and unification.pptx
AI_session 22 inference and unification.pptx
 
Truth table
Truth tableTruth table
Truth table
 
DMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptxDMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptx
 
Course notes1
Course notes1Course notes1
Course notes1
 

Mais de Ali Usman

Cisco Packet Tracer Overview
Cisco Packet Tracer OverviewCisco Packet Tracer Overview
Cisco Packet Tracer OverviewAli Usman
 
Islamic Arts and Architecture
Islamic Arts and  ArchitectureIslamic Arts and  Architecture
Islamic Arts and ArchitectureAli Usman
 
Database ,18 Current Issues
Database ,18 Current IssuesDatabase ,18 Current Issues
Database ,18 Current IssuesAli Usman
 
Database , 17 Web
Database , 17 WebDatabase , 17 Web
Database , 17 WebAli Usman
 
Database ,16 P2P
Database ,16 P2P Database ,16 P2P
Database ,16 P2P Ali Usman
 
Database , 15 Object DBMS
Database , 15 Object DBMSDatabase , 15 Object DBMS
Database , 15 Object DBMSAli Usman
 
Database ,14 Parallel DBMS
Database ,14 Parallel DBMSDatabase ,14 Parallel DBMS
Database ,14 Parallel DBMSAli Usman
 
Database , 13 Replication
Database , 13 ReplicationDatabase , 13 Replication
Database , 13 ReplicationAli Usman
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 ReliabilityAli Usman
 
Database ,11 Concurrency Control
Database ,11 Concurrency ControlDatabase ,11 Concurrency Control
Database ,11 Concurrency ControlAli Usman
 
Database ,10 Transactions
Database ,10 TransactionsDatabase ,10 Transactions
Database ,10 TransactionsAli Usman
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query OptimizationAli Usman
 
Database ,7 query localization
Database ,7 query localizationDatabase ,7 query localization
Database ,7 query localizationAli Usman
 
Database , 6 Query Introduction
Database , 6 Query Introduction Database , 6 Query Introduction
Database , 6 Query Introduction Ali Usman
 
Database , 5 Semantic
Database , 5 SemanticDatabase , 5 Semantic
Database , 5 SemanticAli Usman
 
Database , 4 Data Integration
Database , 4 Data IntegrationDatabase , 4 Data Integration
Database , 4 Data IntegrationAli Usman
 
Database, 3 Distribution Design
Database, 3 Distribution DesignDatabase, 3 Distribution Design
Database, 3 Distribution DesignAli Usman
 
Database ,2 Background
 Database ,2 Background Database ,2 Background
Database ,2 BackgroundAli Usman
 
Database , 1 Introduction
 Database , 1 Introduction Database , 1 Introduction
Database , 1 IntroductionAli Usman
 
Processor Specifications
Processor SpecificationsProcessor Specifications
Processor SpecificationsAli Usman
 

Mais de Ali Usman (20)

Cisco Packet Tracer Overview
Cisco Packet Tracer OverviewCisco Packet Tracer Overview
Cisco Packet Tracer Overview
 
Islamic Arts and Architecture
Islamic Arts and  ArchitectureIslamic Arts and  Architecture
Islamic Arts and Architecture
 
Database ,18 Current Issues
Database ,18 Current IssuesDatabase ,18 Current Issues
Database ,18 Current Issues
 
Database , 17 Web
Database , 17 WebDatabase , 17 Web
Database , 17 Web
 
Database ,16 P2P
Database ,16 P2P Database ,16 P2P
Database ,16 P2P
 
Database , 15 Object DBMS
Database , 15 Object DBMSDatabase , 15 Object DBMS
Database , 15 Object DBMS
 
Database ,14 Parallel DBMS
Database ,14 Parallel DBMSDatabase ,14 Parallel DBMS
Database ,14 Parallel DBMS
 
Database , 13 Replication
Database , 13 ReplicationDatabase , 13 Replication
Database , 13 Replication
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 Reliability
 
Database ,11 Concurrency Control
Database ,11 Concurrency ControlDatabase ,11 Concurrency Control
Database ,11 Concurrency Control
 
Database ,10 Transactions
Database ,10 TransactionsDatabase ,10 Transactions
Database ,10 Transactions
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query Optimization
 
Database ,7 query localization
Database ,7 query localizationDatabase ,7 query localization
Database ,7 query localization
 
Database , 6 Query Introduction
Database , 6 Query Introduction Database , 6 Query Introduction
Database , 6 Query Introduction
 
Database , 5 Semantic
Database , 5 SemanticDatabase , 5 Semantic
Database , 5 Semantic
 
Database , 4 Data Integration
Database , 4 Data IntegrationDatabase , 4 Data Integration
Database , 4 Data Integration
 
Database, 3 Distribution Design
Database, 3 Distribution DesignDatabase, 3 Distribution Design
Database, 3 Distribution Design
 
Database ,2 Background
 Database ,2 Background Database ,2 Background
Database ,2 Background
 
Database , 1 Introduction
 Database , 1 Introduction Database , 1 Introduction
Database , 1 Introduction
 
Processor Specifications
Processor SpecificationsProcessor Specifications
Processor Specifications
 

Último

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 

Último (20)

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

Discrete Structures. Lecture 1

  • 1. Discrete Structures (CS 335) Mohsin Raza University Institute of Information Technology PMAS Arid Agriculture University Rawalpindi
  • 2. Discrete vs Continuous • Examples of discrete Data – Number of boys in the class. – Number of candies in a packet. – Number of suitcases lost by an airline. Discrete Continuous • Examples of continuous Data – Height of a person. – Time in a race. – Distance traveled by a car. 10/7/2013 Discrete Structures(CS 335) 2
  • 3. What is discrete Structures? • Discrete mathematics is the part of mathematics devoted to the study of discrete objects (Kenneth H. Rosen, 6th edition). • Discrete mathematics is the study of mathematical structures that are fundamentally discrete rather than continuous (wikipedia). 10/7/2013 Discrete Structures(CS 335) 3
  • 4. Syllabus (Topics to be covered in this course) • • • • • • • • • • 10/7/2013 Logic Elementary Number Theory and Methods of Proof Set Theory Relations Sequences and Recursion Mathematical Induction Counting Relations and Equivalence Relations Graphs Trees Discrete Structures(CS 335) 4
  • 5. Reference Books • Discrete Mathematics and its Applications (with Combinatorics and Graph Theory) 5th Edition, The McGraw-Hill Companies, 2007, Kenneth H. Rosen. • Discrete Mathematics with Applications 4th Edition, Thomson Learning, 1995, Susanna S. Epp. • Discrete Mathematics for Computer Scientists 2nd Edition, Addison-Wesley, 1999, John Truss. 10/7/2013 Discrete Structures(CS 335) 5
  • 6. Logic • Propositional Logic • Logic of Compound Statements • Propositional Equivalences • Conditional Statements • Logical Equivalences • Valid and Invalid Arguments • Applications: Digital Logic Circuits • Predicates and Quantifiers • Logic of Quantified Statements 10/7/2013 Discrete Structures(CS 335) 6
  • 7. Propositional Logic Proposition: A proposition (or Statement) is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both. Examples 1. Is the following sentence a proposition? If it is a proposition, determine whether it is true or false. Islamabad is the capital of Pakistan. This makes a declarative statement, and hence is a proposition. The proposition is TRUE (T). 10/7/2013 Discrete Structures(CS 335) 7
  • 8. Examples (Propositions Cont.) 2. Is the following sentence a proposition? If it is a proposition, determine whether it is true or false. Can Ali come with you?. This is a question not the declarative sentence and hence not a proposition. 10/7/2013 Discrete Structures(CS 335) 8
  • 9. Examples (Propositions Cont.) 3. Is the following sentence a proposition? If it is a proposition, determine whether it is true or false. Take two aspirins. This is an imperative sentence not the declarative sentence and therefore not a proposition. 10/7/2013 Discrete Structures(CS 335) 9
  • 10. Examples (Propositions Cont.) 4. Is the following sentence a proposition? If it is a proposition, determine whether it is true or false. x+ 4 > 9. Because this is true for certain values of x (such as x = 6) and false for other values of x (such as x = 5), it is not a proposition. 10/7/2013 Discrete Structures(CS 335) 10
  • 11. Examples (Propositions Cont.) 5. Is the following sentence a proposition? If it is a proposition, determine whether it is true or false. He is a college student. Because truth or falsity of this proposition depend on the reference for the pronoun he. it is not a proposition. 10/7/2013 Discrete Structures(CS 335) 11
  • 12. Notations • The small letters are commonly used to denote the propositional variables, that is, variables that represent propositions, such as, p, q, r, s, …. • The truth value of a proposition is true, denoted by T or 1, if it is a true proposition and false, denoted by F or 0, if it is a false proposition. 10/7/2013 Discrete Structures(CS 335) 12
  • 13. Compound Propositions Producing new propositions from existing propositions. Logical Operators or Connectives 1. Not  2. And ˄ 3. Or ˅ 4. Exclusive or  5. Implication  6. Biconditional  10/7/2013 Discrete Structures(CS 335) 13
  • 14. Compound Propositions Negation of a proposition Let p be a proposition. The negation of p, denoted by  p (also denoted by ~p), is the statement “It is not the case that p”. The proposition  p is read as “not p”. The truth values of the negation of p,  p, is the opposite of the truth value of p. 10/7/2013 Discrete Structures(CS 335) 14
  • 15. Examples 1. Find the negation of the following proposition p : Today is Friday. The negation is  p : It is not the case that today is Friday. This negation can be more simply expressed by  p : Today is not Friday. 10/7/2013 Discrete Structures(CS 335) 15
  • 16. Examples 2. Write the negation of “6 is negative”. The negation is “It is not the case that 6 is negative”. or 10/7/2013 “6 is nonnegative”. Discrete Structures(CS 335) 16
  • 17. Truth Table (NOT) • Unary Operator, Symbol:  p true false false 10/7/2013 p true Discrete Structures(CS 335) 17
  • 18. Conjunction (AND) Definition Let p and q be propositions. The conjunction of p and q, denoted by p˄q, is the proposition “p and q”. The conjunction p˄q is true when p and q are both true and is false otherwise. 10/7/2013 Discrete Structures(CS 335) 18
  • 19. Examples 1. Find the conjunction of the propositions p and q, where p : Today is Friday. q : It is raining today. The conjunction is p˄q : Today is Friday and it is raining today. 10/7/2013 Discrete Structures(CS 335) 19
  • 20. Truth Table (AND) • Binary Operator, Symbol:  p pq true true true true false false false true false false 10/7/2013 q false false Discrete Structures(CS 335) 20
  • 21. Disjunction (OR) Definition Let p and q be propositions. The disjunction of p and q, denoted by p˅q, is the proposition “p or q”. The disjunction p˅q is false when both p and q are false and is true otherwise. 10/7/2013 Discrete Structures(CS 335) 21
  • 22. Examples 1. Find the disjunction of the propositions p and q, where p : Today is Friday. q : It is raining today. The disjunction is p˅q : Today is Friday or it is raining today. 10/7/2013 Discrete Structures(CS 335) 22
  • 23. Truth Table (OR) • Binary Operator, Symbol:  p pq true true true true false true false true true false 10/7/2013 q false false Discrete Structures(CS 335) 23
  • 24. Exclusive OR (XOR) Definition Let p and q be propositions. The exclusive or of p and q, denoted by pq, is the proposition “pq”. The exclusive or, p  q, is true when exactly one of p and q is true and is false otherwise. 10/7/2013 Discrete Structures(CS 335) 24
  • 25. Examples 1. Find the exclusive or of the propositions p and q, where p : Atif will pass the course CSC102. q : Atif will fail the course CSC102. The exclusive or is pq : Atif will pass or fail the course CSC102. 10/7/2013 Discrete Structures(CS 335) 25
  • 26. Truth Table (XOR) • Binary Operator, Symbol:  p pq true true false true false true false true true false 10/7/2013 q false false Discrete Structures(CS 335) 26
  • 27. Examples (OR vs XOR) The following proposition uses the (English) connective “or”. Determine from the context whether “or” is intended to be used in the inclusive or exclusive sense. 1. “Nabeel has one or two brothers”. A person cannot have both one and two brothers. Therefore, “or” is used in the exclusive sense. 10/7/2013 Discrete Structures(CS 335) 27
  • 28. Examples (OR vs XOR) 2. To register for BSC you must have passed the qualifying exam or be listed as an Math major. Presumably, if you have passed the qualifying exam and are also listed as an Math major, you can still register for BCS. Therefore, “or” is inclusive. 10/7/2013 Discrete Structures(CS 335) 28
  • 29. Composite Statements Statements and operators can be combined in any way to form new statements. p q p q (p)(q) true true false false false true false false true true false true true false true false false true true true 10/7/2013 Discrete Structures(CS 335) 29
  • 30. Lecture Summery • Introduction to the Course • Propositions • Logical Connectives • Truth Tables • Compound propositions 10/7/2013 Discrete Structures(CS 335) 30