ArticleslgStudy

computer science

Pebble automaton

Pebble 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 Pebble automaton rather than just read about it. In short: In computer science, a pebble automaton is any variant of an automaton which augments the original model with a finite number of "pebbles" that may be used to mark tape positions. History Pebble automata were introduced in 1986, when it was shown that in some cases, a deterministic transducer augmented with a pebble could achieve logarithmic space savings over even a nondeterministic log-space transducer (ie, comput…

Key takeaways

  • Pebble 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 Pebble automaton to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Pebble automaton from memory before moving on to harder problems.

Reference excerpt

In computer science, a pebble automaton is any variant of an automaton which augments the original model with a finite number of "pebbles" that may be used to mark tape positions.

History Pebble automata were introduced in 1986, when it was shown that in some cases, a deterministic transducer augmented with a pebble could achieve logarithmic space savings over even a nondeterministic log-space transducer (ie, compute in log ⁡ log ⁡ n {\displaystyle \log \log n} tape cells functions for which the nondeterministic machine required log ⁡ n {\displaystyle \log n} tape cells), with the implication that a pebble adds power to Turing machines whose functions require space between log ⁡ log ⁡ n {\displaystyle \log \log n} and log ⁡ n . {\displaystyle \log n.} Constructions were also shown to convert a hierarchy of increasingly powerful stack machine models into equivalent deterministic finite automata with up to 3 pebbles, showing additional pebbles further increased power.

Tree-walking automata with nested pebbles A tree-walking automaton with nested pebbles is a tree-walking automaton with an additional finite set of fixed size containing pebbles, identified with { 1 , 2 , … , n } {\displaystyle \{1,2,\dots ,n\}} . Besides ordinary actions, an automaton can put a pebble at a currently visited node, lift a pebble from the currently visited node and perform a test "is the i-th pebble present at the current node?". There is an important stack restriction on the order in which pebbles can be put or lifted - the i+1-th pebble can be put only if the pebbles from 1st to i-th are already on the tree, and the i+1-th pebble can be lifted only if pebbles from i+2-th to n-th are not on the tree. Without this restriction, the automaton has undecidable emptiness and expressive power beyond regular tree languages. The class of languages recognized by deterministic (resp. nondeterministic) tree-walking automata with n pebbles is denoted D P A n {\displaystyle DPA_{n}} (resp. P A n {\displaystyle PA_{n}} ). We also define D P A = ⋃ n D P A n {\displaystyle DPA=\bigcup _{n}DPA_{n}} and likewise P A = ⋃ n P A n {\displaystyle PA=\bigcup _{n}PA_{n}} .

Properties there exists a language recognized by a tree-walking automaton with 1 pebble, but not by any ordinary tree walking automaton; this implies that either T W A ⊊ D P A {\displaystyle TWA\subsetneq DPA} or these classes are incomparable, which is an open problem

P A ⊊ R E G {\displaystyle PA\subsetneq REG} , i.e. tree-walking automata augmented with pebbles are strictly weaker than branching automata it is not known whether D P A = P A {\displaystyle DPA=PA} , i.e. whether tree-walking pebble automata can be determinized it is not known whether tree-walking pebble automata are closed under complementation the pebble hierarchy is strict for tree-walking automata, for every n P A n ⊊ P A n + 1 {\displaystyle PA_{n}\subsetneq PA_{n+1}} and D P A n ⊊ D P A n + 1 {\displaystyle DPA_{n}\subsetneq DPA_{n+1}}

Automata and logic Tree-walking pebble automata admit an interesting logical characterization. Let F O + T C {\displaystyle FO+TC} denote the set of tree properties describable in transitive closure first-order logic, and F O + pos T C {\displaystyle FO+{\text{pos}}\,TC} the same for positive transitive closure logic, i.e. a logic where the transitive closure operator is not used under the scope of negation. Then it can be proved that P A ⊆ F O + T C {\displaystyle PA\subseteq FO+TC} and, in fact, P A = F O + pos T C {\displaystyle PA=FO+{\text{pos}}\,TC} - the languages recognized by tree-walking pebble automata are exactly those expressible in positive transitive closure logic.

See also Tree walking automata Branching automata Transitive closure logic Pebble game

References

Worked examples

Example 1 — a first encounter with Pebble automaton

Start with the simplest possible case. Write down what Pebble 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 Pebble 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 Pebble 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 Pebble automaton

In research
Pebble 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 Pebble 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
Pebble automaton is common in secondary-school and first-year university syllabi. It links to neighbouring topics Automata (computation), Trees (data structures), so understanding it makes those chapters shorter.
In everyday life
Look for Pebble 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.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Pebble automaton in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Pebble 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 Pebble automaton out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Pebble automaton in simple terms?

In computer science, a pebble automaton is any variant of an automaton which augments the original model with a finite number of "pebbles" that may be used to mark tape positions. History Pebble automata were introduced in 1986, when it was shown that in some cases, a deterministic transducer augme…

Why does Pebble 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 Pebble 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 Pebble automaton.

Tags

  • Automata (computation)
  • Trees (data structures)

Keep exploring