ArticleslgStudy

computer science

Embedded pushdown automaton

Embedded pushdown 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 Embedded pushdown automaton rather than just read about it. In short: An embedded pushdown automaton (EPDA) is a computational model for parsing languages generated by tree-adjoining grammars (TAGs). It is similar to the context-free grammar-parsing pushdown automaton, but instead of using a plain stack to store symbols, it has a stack of iterated stacks that store symbols, giving TAGs a generative capacity between context-free and context-sensitive grammars, or a subset of mildly con…

Key takeaways

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

Reference excerpt

An embedded pushdown automaton (EPDA) is a computational model for parsing languages generated by tree-adjoining grammars (TAGs). It is similar to the context-free grammar-parsing pushdown automaton, but instead of using a plain stack to store symbols, it has a stack of iterated stacks that store symbols, giving TAGs a generative capacity between context-free and context-sensitive grammars, or a subset of mildly context-sensitive grammars. Embedded pushdown automata should not be confused with nested stack automata which have more computational power.

History and applications EPDAs were first described by K. Vijay-Shanker in his 1988 doctoral thesis. They have since been applied to more complete descriptions of classes of mildly context-sensitive grammars and have had important roles in refining the Chomsky hierarchy. Various subgrammars, such as the linear indexed grammar, can thus be defined. While natural languages have traditionally been analyzed using context-free grammars (see transformational-generative grammar and computational linguistics), this model does not work well for languages with crossed dependencies, such as Dutch, situations for which an EPDA is well suited. A detailed linguistic analysis is available in Joshi, Schabes (1997).

Theory An EPDA is a finite state machine with a set of stacks that can be themselves accessed through the embedded stack. Each stack contains elements of the stack alphabet Γ, and so we define an element of a stack by σi∈Γ∗, where the star is the Kleene closure of the alphabet. Each stack can then be defined in terms of its elements, so we denote the jth stack in the automaton using a double-dagger symbol: Υj=‡σj={σj,k,σj,k−1,…,σj,1}, where σj,k would be the next accessible symbol in the stack. The embedded stack of m stacks can thus be denoted by {Υj}={‡σm,‡σm−1,…,‡σ1}∈(‡Γ+)∗. We define an EPDA by the septuple (7-tuple)

M=(Q,Σ,Γ,δ,q0,QF,σ0) where Q is a finite set of states; Σ is the finite set of the input alphabet; Γ is the finite stack alphabet; q0∈Q is the start state; QF⊆Q is the set of final states; σ0∈Γ is the initial stack symbol δ:Q×Σ×Γ→S is the transition function, where S are finite subsets of Q×(‡Γ+)∗×Γ∗×(‡Γ+)∗. Thus the transition function takes a state, the next symbol of the input string, and the top symbol of the current stack and generates the next state, the stacks to be pushed and popped onto the embedded stack, the pushing and popping of the current stack, and the stacks to be considered the current stacks in the next transition. More conceptually, the embedded stack is pushed and popped, the current stack is optionally pushed back onto the embedded stack, and any other stacks one would like are pushed on top of that, with the last stack being the one read from in the next iteration. Therefore, stacks can be pushed both above and below the current stack. A given configuration is defined by

C(M)={q,Υm…Υ1,x1,x2}∈Q×(‡Γ+)∗×Σ∗×Σ∗ where q is the current state, the Υs are the stacks in the embedded stack, with Υm the current stack, and for an input string x=x1x2∈Σ∗, x1 is the portion of the string already processed by the machine and x2 is the portion to be processed, with its head being the current symbol read. Note that the empty string ϵ∈Σ is implicitly defined as a terminating symbol, where if the machine is at a final state when the empty string is read, the entire input string is accepted, and if not it is rejected. Such accepted strings are elements of the language

L(M)={x|{q0,Υ0,ϵ,x}→M∗{qF,Υm…Υ1,x,ϵ}} where qF∈QF and →M∗ defines the transition function applied over as many times as necessary to parse the string. An informal description of EPDA can also be found in Joshi, Schabes (1997), Sect.7, p. 23-25.

k-order EPDA and the Weir hierarchy

A more precisely defined hierarchy of languages that correspond to the mildly context-sensitive class was defined by David J. Weir. Based on the work of Nabil A. Khabbaz, Weir's Control Language Hierarchy is a containment hierarchy of countable set of language classes where the Level-1 is defined as context-free, and Level-2 is the class of tree-adjoining and the other three grammars. Following are some of the properties of Level-k languages in the hierarchy:

Level-k languages are properly contained in the Level-(k + 1) language class Level-k languages can be parsed in O(n3⋅2k−1) time Level-k contains the language {a1n…a2kn|n≥0}, but not {a1n…a2k+1n|n≥0} Level-k contains the language {w2k−1|w∈{a,b}∗}, but not {w2k−1+1|w∈{a,b}∗} Those properties correspond well (at least for small k > 1) to the conditions of mildly context-sensitive languages imposed by Joshi, and as k gets bigger, the language class becomes, in a sense, less mildly context-sensitive.

See also Combinatory categorial grammar

References

Further reading Laura Kallmeyer (2010). Parsing Beyond Context-Free Grammars. Springer Science & Business Media. ISBN 978-3-642-14846-0.

Worked examples

Example 1 — a first encounter with Embedded pushdown automaton

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

In research
Embedded pushdown 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 Embedded pushdown 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
Embedded pushdown automaton is common in secondary-school and first-year university syllabi. It links to neighbouring topics Automata (computation), Models of computation, so understanding it makes those chapters shorter.
In everyday life
Look for Embedded pushdown 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 “Embedded pushdown automaton” →

How to study Embedded pushdown automaton in 20 minutes

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

Frequently asked questions

What is Embedded pushdown automaton in simple terms?

An embedded pushdown automaton (EPDA) is a computational model for parsing languages generated by tree-adjoining grammars (TAGs). It is similar to the context-free grammar-parsing pushdown automaton, but instead of using a plain stack to store symbols, it has a stack of iterated stacks that store s…

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

Tags

  • Automata (computation)
  • Models of computation

Keep exploring