请输入您要查询的字词:

 

单词 DeterministicPushdownAutomaton
释义

deterministic pushdown automaton


A pushdown automaton M=(Q,Σ,Γ,T,q0,,F) is usually called “non-deterministic” because the image of the transition function T is a subset of Q×Γ*, which may possibly contain more than one element. In other words, the transition from one configuration to the next is not uniquely determined. When there is uniqueness, M is called “deterministicMathworldPlanetmath”.

Formally, a deterministic pushdown automaton, or DPDA for short, is a non-deterministic pushdown automaton M=(Q,Σ,Γ,T,q0,,F) where the transition function T has the following properties: for any pQ, aΣ, and AΓ,

  1. 1.

    T(p,a,A)T(p,λ,A) is at most a singleton,

  2. 2.

    T(p,a,A)T(p,λ,A)=.

The properties can be interpreted as follows: given any configuration of M, if there is a transition to the next configuration, the transition must be unique. The second property just insures that T(p,a,A)T(p,λ,A), so that when a λ-transition is possible for a given (p,A), no other transitions are possible for the same (p,A).

The way a DPDA works is exactly the same as an NPDA, with several modes of acceptance: acceptance on final state, acceptance on empty stack, and acceptance on final state and empty stack. However, unlike a NPDA, these acceptance methods are not equivalentMathworldPlanetmathPlanetmathPlanetmathPlanetmath. It can be shown that the set of languagesPlanetmathPlanetmath accepted on empty stack is a proper subsetMathworldPlanetmathPlanetmath of the set of languages determined on final state. In fact, every language in is prefix-free, while some languages in are not.

Nevertheless, any regular language can be accepted by a DPDA on empty stack, and any language accepted by a DPDA on final state is unambiguous, and, as a result, is a proper subset of the family of all context-free languages. This is quite unlike the case for finite automata: every non-deterministic finite automaton is equivalent to a deterministic finite automaton. A language in called a deterministic language.

Some examples: the set of palindromes {uΣ*u=rev(u)} is unambiguous, but not deterministic. The language {ambnmn0} is deterministic, but not prefix-free, and hence can not be accepted by any DPDA on empty stack. The language {anbnn0} can be accepted by a DPDA on empty stack, but is not regular.

Any formal grammar that generates a deterministic language is said to be deterministic context-free. A deterministic context-free grammar can be described by what is known as the LR(k) (http://planetmath.org/LRk) grammars.

The family of deterministic languages is closed under complementation, intersectionMathworldPlanetmath with a regular language, but not arbitrary (finite) intersection, and hence not union.

Remark. The reason why can be traced back to the definition of a DPDA: it allows for the following possibilities for a DPDA M:

  • M completely stops reading an input word because either there are no available transitions from one configuration to the next:

    T(p,a,A)T(p,λ,A)=,

    or the stack is emptied before the last input symbol is read: a configuration (p,u,λ) is reached and u is not empty.

  • M consumes the last input symbol, and continues processing because of λ-transitions.

Some authors consider these imperfections of M as being “non-deterministic”, and put additional constraints on M, such as making sure T is a total functionMathworldPlanetmath, the stack is never empty, and delimiting input strings.

References

  • 1 A. Salomaa Computation and Automata, Encyclopedia of Mathematics and Its Applications, Vol. 25. Cambridge (1985).
  • 2 S. Ginsburg, The Mathematical Theory of Context-Free Languages, McGraw-Hill, New York (1966).
  • 3 D. C. Kozen, Automata and Computability, Springer, New York (1997).
  • 4 J.E. Hopcroft, J.D. Ullman, Formal Languages and Their RelationMathworldPlanetmath to Automata, Addison-Wesley, (1969).

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/5 0:55:28