共 50 条
Reversible Top-Down Syntax Analysis
被引:1
|作者:
Kutrib, Martin
[1
]
Meyer, Uwe
[2
]
机构:
[1] Univ Giessen, Inst Informat, Arndtstr 2, D-35392 Giessen, Germany
[2] TH Mittelhessen, Wiesenstr 14, D-35390 Giessen, Germany
来源:
关键词:
D O I:
10.1007/978-3-030-81508-0_21
中图分类号:
TP18 [人工智能理论];
学科分类号:
081104 ;
0812 ;
0835 ;
1405 ;
摘要:
Top-down syntax analysis can be based on LL(k) grammars. The canonical acceptors for LL(k) languages are deterministic stateless pushdown automata with input lookahead of size k. We investigate the computational capacity of reversible computations of such automata. A pushdown automaton with lookahead k is said to be reversible if its predecessor configurations can uniquely be computed by a pushdown automaton with backward input lookahead (lookback) of size k. It is shown that we cannot trade a lookahead for states or vice versa. The impact of having states or a lookahead depends on the language. While reversible pushdown automata with states accept all regular languages, we are going to prove that there are regular languages that cannot be accepted reversibly without states, even in case of an arbitrarily large lookahead. This completes the comparison of reversible with ordinary pushdown automata in our setting. Finally, it turns out that there are problems which can be solved by reversible deterministic stateless pushdown automata with lookahead of size k + 1, but not by any reversible deterministic stateless pushdown automaton with lookahead of size k. So, an infinite and tight hierarchy of language families dependent on the size of the lookahead is shown.
引用
收藏
页码:255 / 266
页数:12
相关论文