SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Petri Nets
Group A:
Prepared by:
Barkatullah
Memebers:
Waqas Ahmad
Nawab Shah
Aziz Khan
Ijaz Ali
Najeebullah
Irfan-ul-Haq
Arsalan khan
Yasir Raza Khan
PETRI NETS


A Petri net (also known as a place/transition net or P/T net) is one of
several mathematical modeling languages for the description
of distributed systems.



Used as a visual communication aid to model the system behavior.



A Petri net is a directed bipartite graph, in which the nodes represent
transitions (i.e. events that may occur, signified by bars) and places
(i.e. conditions, signified by circles).



The directed arcs describe which places are pre- and/or
postconditions for which transitions (signified by arrows).
Applications:


Like industry standards such as UML activity diagrams Petri nets offer
a graphical notation for stepwise processes that include iteration,
and concurrent execution.



modelling concurrent and/or distributed systems



communication protocols, computer networks, manufacturing system, public
transport systems etc.
Carl Adam Petri


Carl Adam Petri (12 July 1926 – 2 July
2010) was
a German mathematician and computer
scientist.



Petri nets were invented in August 1939 at
the age of 13 for the purpose of describing
chemical processes..



He documented the Petri net in 1962 as
part of his PhD thesis.
Bipartite
MEANS
Having or consisting of two parts.

A bipartite graph, also called a bigraph, is
a set of graph vertices decomposed into two
disjoint sets such that no two graph vertices
within the same set are adjacent.
OR
a bipartite graph (or bigraph) is a graph
whose vertices can be divided into two
disjoint sets U and V such that every edge
connects a vertex in U to one in V
Activity Diagram
A Petri Net Specification ...
A place


consists of three types of components:
places (circles), transitions
(rectangles/bar) and arcs (arrows):


Transitions are events or actions which cause the
change of state

A transition

Places represent possible states of the system



Input Arc



Every arc simply connects a place with a
transition or a transition with a place.

Output Arc
A token
A Change of State …


is denoted by a movement of token from place to place
and is caused by the firing of a transition.



The firing represents an occurrence of the event or an
action taken.



The firing is subject to the input conditions, denoted by
token availability.



A transition is firable or enabled when there are
sufficient tokens in its input places.



After firing, tokens will be transferred from the input
places (old state) to the output places, denoting the
new state.
A chemical process example
C + O2 → CO2
CO2 + NaOH → NaHCO3
NaHCO3 + HCl → H2O + NaCl + CO2
A chemical process example
C + O2 → CO2

C
Fired

CO2

O2
A chemical process example
C + O2 → CO2
CO2 + NaOH → NaHCO3
NaOH
C
Fired

CO2

O2

NaHCO3
A chemical process example
C + O2 → CO2
CO2 + NaOH → NaHCO3
NaHCO3 + HCl → H2O + NaCl + CO2
NaOH

HCl
H2O

C
Fired

CO2

O2
O2

NaHCO3

NaCl
A chemical process example
C + O2 → CO2
CO2 + NaOH → NaHCO3
NaHCO3 + HCl → H2O + NaCl + CO2
NaOH

HCl
H2O

C
CO2

O2

NaHCO3

NaCl
Disease processes Example



An example discussed on Azimuth. It describes the virus
that causes AIDS. The species
are healthy cell, infected cell, and virion. The transitions
are for infection, production of healthy cells, reproduction
of virions within an infected cell, death of healthy cells,
death of infected cells, and death of virions.
Disease processes Example
Production

Death

Healthy

Infection
Death

Infected
virion
Reproduction

Death
a
copy

+

/

a+ b

X

a

copy

!=0

b
-

a- b

NaN

b
=0

Weitere ähnliche Inhalte

Was ist angesagt?

Introductiont To Aray,Tree,Stack, Queue
Introductiont To Aray,Tree,Stack, QueueIntroductiont To Aray,Tree,Stack, Queue
Introductiont To Aray,Tree,Stack, Queue
Ghaffar Khan
 
Classes in c++ (OOP Presentation)
Classes in c++ (OOP Presentation)Classes in c++ (OOP Presentation)
Classes in c++ (OOP Presentation)
Majid Saeed
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
BindhuBhargaviTalasi
 
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
saahil kshatriya
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic Agents
Nuruzzaman Milon
 

Was ist angesagt? (20)

Java Queue.pptx
Java Queue.pptxJava Queue.pptx
Java Queue.pptx
 
Floyd warshall-algorithm
Floyd warshall-algorithmFloyd warshall-algorithm
Floyd warshall-algorithm
 
Ds lab handouts
Ds lab handoutsDs lab handouts
Ds lab handouts
 
Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
 
Arrays 1D and 2D , and multi dimensional
Arrays 1D and 2D , and multi dimensional Arrays 1D and 2D , and multi dimensional
Arrays 1D and 2D , and multi dimensional
 
Introductiont To Aray,Tree,Stack, Queue
Introductiont To Aray,Tree,Stack, QueueIntroductiont To Aray,Tree,Stack, Queue
Introductiont To Aray,Tree,Stack, Queue
 
Classes in c++ (OOP Presentation)
Classes in c++ (OOP Presentation)Classes in c++ (OOP Presentation)
Classes in c++ (OOP Presentation)
 
Arrays In Python | Python Array Operations | Edureka
Arrays In Python | Python Array Operations | EdurekaArrays In Python | Python Array Operations | Edureka
Arrays In Python | Python Array Operations | Edureka
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
 
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
Laplace transform: UNIT STEP FUNCTION, SECOND SHIFTING THEOREM, DIRAC DELTA F...
 
Python strings
Python stringsPython strings
Python strings
 
Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 
26 Computational Geometry
26 Computational Geometry26 Computational Geometry
26 Computational Geometry
 
Function & Recursion
Function & RecursionFunction & Recursion
Function & Recursion
 
Knapsack Problem
Knapsack ProblemKnapsack Problem
Knapsack Problem
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic Agents
 
Uncertain knowledge and reasoning
Uncertain knowledge and reasoningUncertain knowledge and reasoning
Uncertain knowledge and reasoning
 
KMP String Matching Algorithm
KMP String Matching AlgorithmKMP String Matching Algorithm
KMP String Matching Algorithm
 
Stack
StackStack
Stack
 

Andere mochten auch

Colored petri nets theory and applications
Colored petri nets theory and applicationsColored petri nets theory and applications
Colored petri nets theory and applications
Abu Hussein
 
Deployment diagram railway reservation system
Deployment diagram railway reservation systemDeployment diagram railway reservation system
Deployment diagram railway reservation system
muthumeenakshim
 
Uml deployment diagram
Uml deployment diagramUml deployment diagram
Uml deployment diagram
Asraa Batool
 

Andere mochten auch (8)

Colored petri nets theory and applications
Colored petri nets theory and applicationsColored petri nets theory and applications
Colored petri nets theory and applications
 
Pg student projects
Pg student projectsPg student projects
Pg student projects
 
Visualising and Analysing Dynamic Business Processes using Petri nets
Visualising and Analysing Dynamic Business Processes using Petri netsVisualising and Analysing Dynamic Business Processes using Petri nets
Visualising and Analysing Dynamic Business Processes using Petri nets
 
Process Mining - Chapter 2 - Process Modeling and Analysis
Process Mining - Chapter 2 - Process Modeling and AnalysisProcess Mining - Chapter 2 - Process Modeling and Analysis
Process Mining - Chapter 2 - Process Modeling and Analysis
 
Process Mining - Chapter 1 - Introduction
Process Mining - Chapter 1 - IntroductionProcess Mining - Chapter 1 - Introduction
Process Mining - Chapter 1 - Introduction
 
Deployment diagram railway reservation system
Deployment diagram railway reservation systemDeployment diagram railway reservation system
Deployment diagram railway reservation system
 
Uml deployment diagram
Uml deployment diagramUml deployment diagram
Uml deployment diagram
 
Component and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief OverviewComponent and Deployment Diagram - Brief Overview
Component and Deployment Diagram - Brief Overview
 

Ähnlich wie Petri nets by Barkatllah

State equations for physical systems
State equations for physical systemsState equations for physical systems
State equations for physical systems
Sarah Krystelle
 
Control system-toolbox-in-scilab
Control system-toolbox-in-scilabControl system-toolbox-in-scilab
Control system-toolbox-in-scilab
sundar79
 

Ähnlich wie Petri nets by Barkatllah (20)

Control chap2
Control chap2Control chap2
Control chap2
 
solver (1)
solver (1)solver (1)
solver (1)
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
 
04_AJMS_453_22_compressed.pdf
04_AJMS_453_22_compressed.pdf04_AJMS_453_22_compressed.pdf
04_AJMS_453_22_compressed.pdf
 
stochasticmodellinganditsapplications.ppt
stochasticmodellinganditsapplications.pptstochasticmodellinganditsapplications.ppt
stochasticmodellinganditsapplications.ppt
 
Petri Net or place/transition net Method
Petri Net or place/transition net MethodPetri Net or place/transition net Method
Petri Net or place/transition net Method
 
Stochastic modelling and its applications
Stochastic modelling and its applicationsStochastic modelling and its applications
Stochastic modelling and its applications
 
lecture1 (9).ppt
lecture1 (9).pptlecture1 (9).ppt
lecture1 (9).ppt
 
Presentation on laplace transforms
Presentation on laplace transformsPresentation on laplace transforms
Presentation on laplace transforms
 
ppt M3 Laplace Transform.pdf
ppt  M3  Laplace Transform.pdfppt  M3  Laplace Transform.pdf
ppt M3 Laplace Transform.pdf
 
State equations for physical systems
State equations for physical systemsState equations for physical systems
State equations for physical systems
 
Modern Control System (BE)
Modern Control System (BE)Modern Control System (BE)
Modern Control System (BE)
 
Test Generation for Analog and Mixed-Signal Circuits Using Hybrid System Mode...
Test Generation for Analog and Mixed-Signal Circuits Using Hybrid System Mode...Test Generation for Analog and Mixed-Signal Circuits Using Hybrid System Mode...
Test Generation for Analog and Mixed-Signal Circuits Using Hybrid System Mode...
 
TEST GENERATION FOR ANALOG AND MIXED-SIGNAL CIRCUITS USING HYBRID SYSTEM MODELS
TEST GENERATION FOR ANALOG AND MIXED-SIGNAL CIRCUITS USING HYBRID SYSTEM MODELSTEST GENERATION FOR ANALOG AND MIXED-SIGNAL CIRCUITS USING HYBRID SYSTEM MODELS
TEST GENERATION FOR ANALOG AND MIXED-SIGNAL CIRCUITS USING HYBRID SYSTEM MODELS
 
Applicationofmatrices21155
Applicationofmatrices21155Applicationofmatrices21155
Applicationofmatrices21155
 
Control system-toolbox-in-scilab
Control system-toolbox-in-scilabControl system-toolbox-in-scilab
Control system-toolbox-in-scilab
 
Introduction to Control systems in scilab
Introduction to Control systems in scilabIntroduction to Control systems in scilab
Introduction to Control systems in scilab
 
Gmit cse presentation
Gmit cse presentationGmit cse presentation
Gmit cse presentation
 
Introduction to mathematical control theory - Dr. Purnima Pandit
Introduction to mathematical control theory - Dr. Purnima PanditIntroduction to mathematical control theory - Dr. Purnima Pandit
Introduction to mathematical control theory - Dr. Purnima Pandit
 
Modeling Of Transfer Function Characteristic of Rlc-Circuit
Modeling Of Transfer Function Characteristic of Rlc-Circuit Modeling Of Transfer Function Characteristic of Rlc-Circuit
Modeling Of Transfer Function Characteristic of Rlc-Circuit
 

Kürzlich hochgeladen

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

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
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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...
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Petri nets by Barkatllah

  • 1. Petri Nets Group A: Prepared by: Barkatullah Memebers: Waqas Ahmad Nawab Shah Aziz Khan Ijaz Ali Najeebullah Irfan-ul-Haq Arsalan khan Yasir Raza Khan
  • 2. PETRI NETS  A Petri net (also known as a place/transition net or P/T net) is one of several mathematical modeling languages for the description of distributed systems.  Used as a visual communication aid to model the system behavior.  A Petri net is a directed bipartite graph, in which the nodes represent transitions (i.e. events that may occur, signified by bars) and places (i.e. conditions, signified by circles).  The directed arcs describe which places are pre- and/or postconditions for which transitions (signified by arrows).
  • 3. Applications:  Like industry standards such as UML activity diagrams Petri nets offer a graphical notation for stepwise processes that include iteration, and concurrent execution.  modelling concurrent and/or distributed systems  communication protocols, computer networks, manufacturing system, public transport systems etc.
  • 4. Carl Adam Petri  Carl Adam Petri (12 July 1926 – 2 July 2010) was a German mathematician and computer scientist.  Petri nets were invented in August 1939 at the age of 13 for the purpose of describing chemical processes..  He documented the Petri net in 1962 as part of his PhD thesis.
  • 5. Bipartite MEANS Having or consisting of two parts. A bipartite graph, also called a bigraph, is a set of graph vertices decomposed into two disjoint sets such that no two graph vertices within the same set are adjacent. OR a bipartite graph (or bigraph) is a graph whose vertices can be divided into two disjoint sets U and V such that every edge connects a vertex in U to one in V
  • 7. A Petri Net Specification ... A place  consists of three types of components: places (circles), transitions (rectangles/bar) and arcs (arrows):  Transitions are events or actions which cause the change of state A transition Places represent possible states of the system  Input Arc  Every arc simply connects a place with a transition or a transition with a place. Output Arc A token
  • 8. A Change of State …  is denoted by a movement of token from place to place and is caused by the firing of a transition.  The firing represents an occurrence of the event or an action taken.  The firing is subject to the input conditions, denoted by token availability.  A transition is firable or enabled when there are sufficient tokens in its input places.  After firing, tokens will be transferred from the input places (old state) to the output places, denoting the new state.
  • 9. A chemical process example C + O2 → CO2 CO2 + NaOH → NaHCO3 NaHCO3 + HCl → H2O + NaCl + CO2
  • 10. A chemical process example C + O2 → CO2 C Fired CO2 O2
  • 11. A chemical process example C + O2 → CO2 CO2 + NaOH → NaHCO3 NaOH C Fired CO2 O2 NaHCO3
  • 12. A chemical process example C + O2 → CO2 CO2 + NaOH → NaHCO3 NaHCO3 + HCl → H2O + NaCl + CO2 NaOH HCl H2O C Fired CO2 O2 O2 NaHCO3 NaCl
  • 13. A chemical process example C + O2 → CO2 CO2 + NaOH → NaHCO3 NaHCO3 + HCl → H2O + NaCl + CO2 NaOH HCl H2O C CO2 O2 NaHCO3 NaCl
  • 14. Disease processes Example  An example discussed on Azimuth. It describes the virus that causes AIDS. The species are healthy cell, infected cell, and virion. The transitions are for infection, production of healthy cells, reproduction of virions within an infected cell, death of healthy cells, death of infected cells, and death of virions.