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.
Before formally defining what a timed automaton is, some examples are given.
Consider the language
lL
w
\{a\}
a
a
x
a
a
a
Consider the language
lL
w
\{a,b\}
a
b
a
b
a
x
a
b
Formally, a timed automaton is a tuple
lA=\langle\Sigma,L,L0,C,F,E\rangle
\Sigma
lA
L
L
lA
L0\subseteqL
C
lA
F\subseteqL
E\subseteqL x \Sigma x lB(C) x lP(C) x L
lA
lB(C)
C
lP(C)
C
An edge
(\ell,\sigma,g,r,\ell')
E
\ell
\ell'
\sigma
g
r
A pair with a location
\ell
\nu
Note that the word state is thus ambiguous, since, depending on the author, it may mean either a pair or an element of
L
L
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.
w=(\sigma1,t1),(\sigma2,t2),...,
\sigmai\in\Sigma
(ti)i
lA
(\ell0,\nu0)\xrightarrow[t1]{\sigma1}(\ell1,\nu1)...
\ell0\inL0
i\ge1
E
\langle\elli-1,\sigmai,gi,ri,\elli\rangle
ti-ti-1
\nui-1+ti-ti-1
gi
\nui
\nui-1
ti-ti-1
ri
\nui=(\nui-1+ti-ti-1)[ri → 0]
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
w
n
\elln\inF
i
\elli\inF
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
s
a
s
a
L0
(\ell,\sigma,g,r,\ell')
(\ell,\sigma,g',r',\ell'')
g
g'
The class of languages recognized by non-deterministic timed automata is:
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.
The universality problem of non-deterministic timed automaton is undecidable, and more precisely Π. 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.