形式语言与自动机_笔记整理(六)_Petri网与时间自动机

本文深入探讨了Petri网及其在并发系统建模中的应用。Petri网是一种图形与数学工具,用于表示资源和状态转换。其特点包括异步状态转移、并发性和同步行为。此外,文章还介绍了有限容量Petri网的概念,以及如何通过权重解决容量约束。接着,文章转向时间自动机,讨论了时钟约束和定时自动机的语义与可达性问题。这些概念对于理解分布式系统的复杂行为至关重要。
摘要由CSDN通过智能技术生成

Petri Net

In contrast to state machines, state transitions in Petri nets are asynchronous. The ordering of transitions is partly uncoordinated; it is specified by a partial order.

Therefore, Petri nets can be used to model concurrent distributed systems.

Petri Nets: Graphical and Mathematical modeling tools

  • graphical tool
  • mathematical tool

The graphical presentation of a Petri net is a bipartite graph.

There are two kinds of nodes

  • Places: usually model resources or partial state of the system
    Transitions: model state transition and synchronization.
  • Arcs are directed and always connect nodes of different types
    Tokens are resources in the places.

Definition of Petri Net

  • C=(P,T,I,O)

  • Places

    P=p1,p2,p3,,pn

  • Transitions

    T=t1,t2,t3,,tn

  • Input 

    I : TPr (r = number of places) t

  • Output

    O : TPq (q = number of places) t

  • marking
    µ : assignment of tokens to the places of Petri net µ=µ1,µ2,µ3,µn

这里写图片描述

Petri net consist two types of nodes: places and transitions. And arc exists only from a place to a transition or from a transition to a place.
A place may have zero or more tokens.

Fire

A transition t is called enabled in a certain marking, if:
For every arc from a place p to t, there exists a distinct token in the marking
An enabled transition can fire and result in a new marking
Firing of a transition t in a marking is an atomic operation

Firing a transition results in two things:

  • Subtracting one token from the marking of any place p for every arc connecting p to t
  • Adding one token to the marking of any place p for every arc connecting t to p

Run-1 Safe PN

A run of a Petri net is a finite or infinite sequence of markings and transitions μ0t0μ1t1tn1μntn such that μ0 is the initial marking of the net, tienabled(μi) for any i (i ≥ 0) , and that μi=(μi1t

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值