ArticleslgStudy

computer science

Alternating timed automaton

Alternating timed automaton is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Alternating timed automaton rather than just read about it. In short: An alternating timed automaton (ATA) is a modeling formalism that combines features of timed automaton and an alternating finite automaton to succinctly express sets of timed event sequences. Classical timed automata only allow existential nondeterministic branching in their transitions, while alternating finite automata model discrete untimed behaviors.

Alternating timed automaton — main illustration
Alternating timed automaton — illustration

Key takeaways

  • Alternating timed automaton belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Alternating timed automaton to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Alternating timed automaton from memory before moving on to harder problems.

Reference excerpt

An alternating timed automaton (ATA) is a modeling formalism that combines features of timed automaton and an alternating finite automaton to succinctly express sets of timed event sequences. Classical timed automata only allow existential nondeterministic branching in their transitions, while alternating finite automata model discrete untimed behaviors. Unlike timed automata, alternating timed automata are closed under complementation. However, this increased expressive power comes at the cost of undecidability in their emptiness problem. A one clock alternating timed automaton (OCATA) is a restricted version of an ATA, limited to the use of a single clock. OCATAs can express timed languages that cannot be expressed using standard timed automata.

Definition 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 are more expressive than timed automata. An alternating timed automaton is defined as a timed automaton, where the transitions are more complex.

Difference from a timed-automaton Given a set X, let ℬ+(X) be the set of positive Boolean combination of elements of X, i.e. the set containing the elements of X, and containing ϕ∧ψ and ϕ∨ψ, for ϕ,ψ∈ℬ+(X). For each letter a and location ℓ, let ℬa,ℓ be a set of clock constraints such that their zones partition ℝ≥0|X|, with |X| being the number of clocks. Given a clock valuation ν, let c(a,ℓ,ν) be the only clock constraint of ℬa,ℓ which is satisfied by ν. An alternating timed-automaton contains a transition function, which associates to a 3-tuple (ℓ,a,c), with c∈ℬa,ℓ, to an element of ℬ+(L×𝒫(C)). For example, (ℓ1,∅︀)∨((ℓ2,{x})∧(ℓ2,{y})) is an element of ℬ+(L×𝒫(C)) characterizing a condition over next locations and clocks to be reset. Intuitively, this means that a run (or, execution) of the automaton may existentially branch into two possibilities: 1) continue by moving to location ℓ1without resetting any clock, or 2) universally branch into two possibilities, both moving to location ℓ2 with one resetting clock x and the other resetting clock y.

Formal definition Formally, an alternating timed automaton is a tuple 𝒜=⟨Σ,L,L0,C,F,E⟩ that consists of the following components:

Σ is a finite set called the alphabet or actions of 𝒜. L is a finite set. The elements of L are called the locations or states of 𝒜. C is a finite set called the clocks of 𝒜. L0⊆L is the set of start locations. F⊆L is the set of accepting locations. E⊆L×Σ×ℬ(C)→ℬ+(L×𝒫(C)) is the transitions function of 𝒜. Any Boolean expression can be rewritten into an equivalent expression in disjunctive normal form. In the representation of an ATA, each disjunction is represented by a different arrow. Each conjunct of a disjunction is represented by a set of arrows with the same tail and multiple heads. The tail is labelled by the letter and each head is labelled by the set of clocks it resets.

Run A run of an alternating timed automaton over a timed word w=(σ1,t1),(σ2,t2),… can be defined in one of two equivalent ways: as a tree or as a game.

Run as a tree In this definition, a run is not merely a list of pairs, but a rooted tree. The nodes of the rooted tree are labelled by pairs with a location and a clock valuation. The tree is defined as follows:

The root of the tree is of the form (ℓ0,ν0) with ℓ0∈L0, Consider a node n of the tree at depth i, with label (ℓ,ν). Without loss of generality, let us assume that E(ai+1,ℓ,c(a,ℓ,ν)) is in disjunctive normal form, i.e. it is of the form ⋁i=1n⋀j=1mi(ℓi,j,ri,j). Then the node n has mi children, for some 1≤i≤n. The j-th child is labelled by (ℓi,j,(ν+ti+1−ti)[ri,j→0]. The definition of an accepting run differs depending on whether the timed word is finite or infinite. If the timed word is finite, then the run is accepting if the label of each leaf contains an accepting location. If the timed word is infinite, then a run is accepting if each branch contains an infinite number of accepting locations.

Run as a game A run can also be defined as a two player game GA,w, with the two players called "player" and "opponent." The goal of the player is to create an accepting run, and the goal of the opponent is to create a rejecting (non-accepting) run. Each state of the game is a tuple composed of a location, a clock valuation, a position in the word, and potentially an element of ℬ+(L×𝒫(C)). Intuitively, a tuple (ℓ,ν,i,b) means that the run has read i letters, is in location ℓ, with clock value ν, and that the transition will be as described by b. The run is defined as follows:

The initial state is of the form (ℓ0,ν0,0), for some ℓ0∈L0. Given a state (ℓ,ν,i), if the length of the word is i, the run ends. Otherwise, its successor state is (ℓ,ν,i,c(ai+1,ℓ,ν)). The successor of a state (ℓ,ν,i,(ℓ′,r)) is the state (ℓ′,ν+ti−ti−1[r→0],i+1), The successor of a state (ℓ,ν,i,ϕ∨ψ) is chosen by the player, it is either (ℓ,ν,i,ϕ) or (ℓ,ν,i,ψ), The successor of a state (ℓ,ν,i,ϕ∧ψ) is chosen by the opponent, it is either (ℓ,ν,i,ϕ) or (ℓ,ν,i,ψ). The set of successive states starting in a state of the form (ℓ,ν,i) and ending before the next such state is called a phase. The definition of an accepting run is the same as that for timed automata.

Subclass of ATA

One clock alternating timed automaton A one clock alternating timed automaton (OCATA) is an alternating timed automaton using a single clock. The expressivity of OCATAs and of timed-automata are incomparable. For example, the language over the alphabet {a} such that there is never exactly one time unit between two letters can not be recognized by a timed-automaton. However, the OCATA pictured accepts it. In this alternating timed automaton, two branches are started. A branch restarts the clock x, and ensures that each time in the future when a letter is emitted, the clock x is distinct from 1. This ensure that between this letter and the next ones, the time elapsed is not one. The second branch only waits for other letters to be emitted and does the same checking.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Alternating timed automaton

Start with the simplest possible case. Write down what Alternating timed automaton claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Alternating timed automaton before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Alternating timed automaton ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Alternating timed automaton

In research
Alternating timed automaton appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Alternating timed automaton in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Alternating timed automaton is common in secondary-school and first-year university syllabi. It links to neighbouring topics Automata (computation), Model checking, so understanding it makes those chapters shorter.
In everyday life
Look for Alternating timed automaton outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Alternating timed automaton” →

How to study Alternating timed automaton in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Alternating timed automaton means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Alternating timed automaton out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Alternating timed automaton in simple terms?

An alternating timed automaton (ATA) is a modeling formalism that combines features of timed automaton and an alternating finite automaton to succinctly express sets of timed event sequences. Classical timed automata only allow existential nondeterministic branching in their transitions, while alte…

Why does Alternating timed automaton matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Alternating timed automaton?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Alternating timed automaton.

Tags

  • Automata (computation)
  • Model checking

Keep exploring