fbpx
Wikipedia

Timed automaton

In automata theory, a timed automaton is a finite automaton extended with a finite set of real-valued clocks. During a run of a timed automaton, clock values increase all with the same speed. Along the transitions of the automaton, clock values can be compared to integers. These comparisons form guards that may enable or disable transitions and by doing so constrain the possible behaviors of the automaton. Further, clocks can be reset. Timed automata are a sub-class of a type hybrid automata.

Timed automata can be used to model and analyse the timing behavior of computer systems, e.g., real-time systems or networks. Methods for checking both safety and liveness properties have been developed and intensively studied over the last 20 years.

It has been shown that the state reachability problem for timed automata is decidable,[1] which makes this an interesting sub-class of hybrid automata. Extensions have been extensively studied, among them stopwatches, real-time tasks, cost functions, and timed games. There exists a variety of tools to input and analyse timed automata and extensions, including the model checkers UPPAAL, Kronos, and the schedulability analyser TIMES. These tools are becoming more and more mature, but are still all academic research tools.

Example edit

Before formally defining what a timed automaton is, some examples are given.

Consider the language   of timed words   over the unary alphabet   such that there is an   during the first time unit, and there is less than one time unit between two successive  . A timed automaton recognizing this language, pictured nearby, uses a single clock  , which should never be equal to one. This clock counts the time since the start of the run if no   were emitted, or from the last   emitted otherwise. This means that each time an   is emitted, this clock is reset to zero.

 
Timed automaton accepting the language a* such that a letter is emitted in each open interval of length one.

Consider the language   of timed words   over the binary alphabet   such that each   is followed by a   in the next time unit. The timed automaton recognizing this language, pictured nearby, recalls whether or not there was an   that was not yet followed by a  . If it is not the case, it accepts the run, otherwise it rejects it. Furthermore, when there is such a  , it has a clock   that records the time elapsed since the first such   was emitted. In this case, a   cannot be emitted if the clock is at least equal to one, and thus the run fails.

 
A timed automaton accepting timed words over   where each occurrence of   is followed less than one time unit later by an occurrence of  .

Formal definition edit

Timed automaton edit

Formally, a timed automaton is a tuple   that consists of the following components:

  •   is a finite set called the alphabet or actions of  .
  •   is a finite set. The elements of   are called the locations or states' of  .
  •   is the set of start locations.
  •   is a finite set called the clocks of  .
  •   is the set of accepting locations.
  •   is a set of edges, called transitions of  , where
    •   is the set of clock constraints involving clocks from  , and
    •   is the powerset of  .

An edge   from   is a transition from locations   to   with action  , guard   and clock resets  .

Extended state edit

A pair with a location   and a clock valuation   is called either an extended state or a state.

Note that the word state is thus ambiguous, since, depending on the author, it may mean either a pair or an element of  . For the sake of the clarity, this article will use the term location for element of   and the term extended location for pairs.

Here lies one of the biggest difference between timed automata and finite automata. In a finite automaton, at some point of the execution, the state is entirely described by the number of letter read and by a finite number of possible values, which are actually called "states". That means that, given a state and a suffix of the word to read, the remaining of the run is totally determined. Thus, the word "finite" in the name "finite automata". However, as it is explained in the section "run" below, in order to resume clocks are used to determine which transitions can be taken. Thus, in order to know the state of the automaton, you must both know in which location you are, and the clock valuation.

Run edit

Given a timed word   with  ,   an increasing sequence of non-negative number, and a timed automaton   as above, a run is a sequence of the form   satisfying the following constraint:

  • (initialization)  
  • (consecution), for all  , there exists an edge in   of the form   such that:
    • we assume that   time units passed, and at this time, the guard is satisfied. I.e.   satisfies  ,
    • the new clock valuation   corresponds to  , in which   time units passed and in which the clocks of   where reset. Formally,  .

The notion of accepting run is defined as in finite automata for finite words and as in Büchi automata for infinite words. That is, if   is finite of length  , then the run is accepting if  . If the word is infinite, then the run is accepting if and only if there exists an infinite number of position   such that  .

Deterministic timed automaton edit

As in the case of finite and Büchi automaton, a timed automaton may be deterministic or non-deterministic. Intuitively, being deterministic has the same meaning in each of those case. It means that the set of start locations is a singleton, and that, given a state  , and a letter  , there is only one possible state which can be reached from   by reading  . However, in the case of timed automaton the formal definition is slightly more complex. Formally, a timed automaton is deterministic if:

  •   is a singleton
  • for each pair of transitions   and  , the set of clocks valuations satisfying   is disjoint from the set of clocks valuations satisfying  .

Closure property edit

The class of languages recognized by non-deterministic timed automata is:

  • closed under union, indeed, the disjoint union of two timed automata recognize the union of the language recognized by those automata.
  • closed under intersection.[2]
  • not closed under complement.[3]

Problems and their complexity edit

The computational complexity of some problems related to timed automata are now given.

The emptiness problem for timed automata can be solved by constructing a region automaton and checking whether it accepts the empty language. This problem is PSPACE-complete.[1]: 207 

The universality problem of non-deterministic timed automaton is undecidable, and more precisely Π1
1
. However, when the automaton contains a single clock, the property is decidable; however, it is not primitive recursive.[3] This problem consists of deciding whether every word is accepted by a timed automaton.

See also edit

Notes edit

  1. ^ a b Rajeev Alur, David L. Dill. 1994 A Theory of Timed Automata. In Theoretical Computer Science, vol. 126, 183–235, pp. 194–1955
  2. ^ Modern Applications Of Automata, page 118
  3. ^ a b Lasota, SƗawomir; Walukiewicz, Igor (2008). "Alternating Timed Automata". ACM Transactions on Computational Logic. 9 (2): 1–26. arXiv:cs/0512031. doi:10.1145/1342991.1342994. S2CID 12319.

timed, automaton, automata, theory, timed, automaton, finite, automaton, extended, with, finite, real, valued, clocks, during, timed, automaton, clock, values, increase, with, same, speed, along, transitions, automaton, clock, values, compared, integers, these. In automata theory a timed automaton is a finite automaton extended with a finite set of real valued clocks During a run of a timed automaton clock values increase all with the same speed Along the transitions of the automaton clock values can be compared to integers These comparisons form guards that may enable or disable transitions and by doing so constrain the possible behaviors of the automaton Further clocks can be reset Timed automata are a sub class of a type hybrid automata Timed automata can be used to model and analyse the timing behavior of computer systems e g real time systems or networks Methods for checking both safety and liveness properties have been developed and intensively studied over the last 20 years It has been shown that the state reachability problem for timed automata is decidable 1 which makes this an interesting sub class of hybrid automata Extensions have been extensively studied among them stopwatches real time tasks cost functions and timed games There exists a variety of tools to input and analyse timed automata and extensions including the model checkers UPPAAL Kronos and the schedulability analyser TIMES These tools are becoming more and more mature but are still all academic research tools Contents 1 Example 2 Formal definition 2 1 Timed automaton 2 2 Extended state 2 3 Run 2 4 Deterministic timed automaton 3 Closure property 4 Problems and their complexity 5 See also 6 NotesExample editBefore formally defining what a timed automaton is some examples are given Consider the language L displaystyle mathcal L nbsp of timed words w displaystyle w nbsp over the unary alphabet a displaystyle a nbsp such that there is an a displaystyle a nbsp during the first time unit and there is less than one time unit between two successive a displaystyle a nbsp A timed automaton recognizing this language pictured nearby uses a single clock x displaystyle x nbsp which should never be equal to one This clock counts the time since the start of the run if no a displaystyle a nbsp were emitted or from the last a displaystyle a nbsp emitted otherwise This means that each time an a displaystyle a nbsp is emitted this clock is reset to zero nbsp Timed automaton accepting the language a such that a letter is emitted in each open interval of length one Consider the language L displaystyle mathcal L nbsp of timed words w displaystyle w nbsp over the binary alphabet a b displaystyle a b nbsp such that each a displaystyle a nbsp is followed by a b displaystyle b nbsp in the next time unit The timed automaton recognizing this language pictured nearby recalls whether or not there was an a displaystyle a nbsp that was not yet followed by a b displaystyle b nbsp If it is not the case it accepts the run otherwise it rejects it Furthermore when there is such a a displaystyle a nbsp it has a clock x displaystyle x nbsp that records the time elapsed since the first such a displaystyle a nbsp was emitted In this case a b displaystyle b nbsp cannot be emitted if the clock is at least equal to one and thus the run fails nbsp A timed automaton accepting timed words over a b displaystyle a b nbsp where each occurrence of a displaystyle a nbsp is followed less than one time unit later by an occurrence of b displaystyle b nbsp Formal definition editTimed automaton edit Formally a timed automaton is a tuple A S L L 0 C F E displaystyle mathcal A langle Sigma L L 0 C F E rangle nbsp that consists of the following components S displaystyle Sigma nbsp is a finite set called the alphabet or actions of A displaystyle mathcal A nbsp L displaystyle L nbsp is a finite set The elements of L displaystyle L nbsp are called the locations or states of A displaystyle mathcal A nbsp L 0 L displaystyle L 0 subseteq L nbsp is the set of start locations C displaystyle C nbsp is a finite set called the clocks of A displaystyle mathcal A nbsp F L displaystyle F subseteq L nbsp is the set of accepting locations E L S B C P C L displaystyle E subseteq L times Sigma times mathcal B C times mathcal P C times L nbsp is a set of edges called transitions of A displaystyle mathcal A nbsp where B C displaystyle mathcal B C nbsp is the set of clock constraints involving clocks from C displaystyle C nbsp and P C displaystyle mathcal P C nbsp is the powerset of C displaystyle C nbsp An edge ℓ s g r ℓ displaystyle ell sigma g r ell nbsp from E displaystyle E nbsp is a transition from locations ℓ displaystyle ell nbsp to ℓ displaystyle ell nbsp with action s displaystyle sigma nbsp guard g displaystyle g nbsp and clock resets r displaystyle r nbsp Extended state edit A pair with a location ℓ displaystyle ell nbsp and a clock valuation n displaystyle nu nbsp is called either an extended state or a state Note that the word state is thus ambiguous since depending on the author it may mean either a pair or an element of L displaystyle L nbsp For the sake of the clarity this article will use the term location for element of L displaystyle L nbsp and the term extended location for pairs Here lies one of the biggest difference between timed automata and finite automata In a finite automaton at some point of the execution the state is entirely described by the number of letter read and by a finite number of possible values which are actually called states That means that given a state and a suffix of the word to read the remaining of the run is totally determined Thus the word finite in the name finite automata However as it is explained in the section run below in order to resume clocks are used to determine which transitions can be taken Thus in order to know the state of the automaton you must both know in which location you are and the clock valuation Run edit Given a timed word w s 1 t 1 s 2 t 2 displaystyle w sigma 1 t 1 sigma 2 t 2 dots nbsp with s i S displaystyle sigma i in Sigma nbsp t i i displaystyle t i i nbsp an increasing sequence of non negative number and a timed automaton A displaystyle mathcal A nbsp as above a run is a sequence of the form ℓ 0 n 0 t 1 s 1 ℓ 1 n 1 displaystyle ell 0 nu 0 xrightarrow t 1 sigma 1 ell 1 nu 1 dots nbsp satisfying the following constraint initialization ℓ 0 L 0 displaystyle ell 0 in L 0 nbsp consecution for all i 1 displaystyle i geq 1 nbsp there exists an edge in E displaystyle E nbsp of the form ℓ i 1 s i g i r i ℓ i displaystyle langle ell i 1 sigma i g i r i ell i rangle nbsp such that we assume that t i t i 1 displaystyle t i t i 1 nbsp time units passed and at this time the guard is satisfied I e n i 1 t i t i 1 displaystyle nu i 1 t i t i 1 nbsp satisfies g i displaystyle g i nbsp the new clock valuation n i displaystyle nu i nbsp corresponds to n i 1 displaystyle nu i 1 nbsp in which t i t i 1 displaystyle t i t i 1 nbsp time units passed and in which the clocks of r i displaystyle r i nbsp where reset Formally n i n i 1 t i t i 1 r i 0 displaystyle nu i nu i 1 t i t i 1 r i rightarrow 0 nbsp The notion of accepting run is defined as in finite automata for finite words and as in Buchi automata for infinite words That is if w displaystyle w nbsp is finite of length n displaystyle n nbsp then the run is accepting if ℓ n F displaystyle ell n in F nbsp If the word is infinite then the run is accepting if and only if there exists an infinite number of position i displaystyle i nbsp such that ℓ i F displaystyle ell i in F nbsp Deterministic timed automaton edit As in the case of finite and Buchi automaton a timed automaton may be deterministic or non deterministic Intuitively being deterministic has the same meaning in each of those case It means that the set of start locations is a singleton and that given a state s displaystyle s nbsp and a letter a displaystyle a nbsp there is only one possible state which can be reached from s displaystyle s nbsp by reading a displaystyle a nbsp However in the case of timed automaton the formal definition is slightly more complex Formally a timed automaton is deterministic if L 0 displaystyle L 0 nbsp is a singleton for each pair of transitions ℓ s g r ℓ displaystyle ell sigma g r ell nbsp and ℓ s g r ℓ displaystyle ell sigma g r ell nbsp the set of clocks valuations satisfying g displaystyle g nbsp is disjoint from the set of clocks valuations satisfying g displaystyle g nbsp Closure property editThe class of languages recognized by non deterministic timed automata is closed under union indeed the disjoint union of two timed automata recognize the union of the language recognized by those automata closed under intersection 2 not closed under complement 3 Problems and their complexity editThe computational complexity of some problems related to timed automata are now given The emptiness problem for timed automata can be solved by constructing a region automaton and checking whether it accepts the empty language This problem is PSPACE complete 1 207 The universality problem of non deterministic timed automaton is undecidable and more precisely P11 However when the automaton contains a single clock the property is decidable however it is not primitive recursive 3 This problem consists of deciding whether every word is accepted by a timed automaton See also editAlternating timed automaton an extension of timed automaton with universal transitions Notes edit a b Rajeev Alur David L Dill 1994 A Theory of Timed Automata In Theoretical Computer Science vol 126 183 235 pp 194 1955 Modern Applications Of Automata page 118 a b Lasota SƗawomir Walukiewicz Igor 2008 Alternating Timed Automata ACM Transactions on Computational Logic 9 2 1 26 arXiv cs 0512031 doi 10 1145 1342991 1342994 S2CID 12319 Retrieved from https en wikipedia org w index php title Timed automaton amp oldid 1205480697, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.