计算机科学 > 程序设计语言
[提交于 2011年12月16日]
标题:Bijective Term Encodings
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We encode/decode Prolog terms as unique natural numbers. Our encodings have the following properties: a) are bijective b) natural numbers always decode to syntactically valid terms c) they work in low polynomial time in the bitsize of the representations d) the bitsize of our encodings is within constant factor of the syntactic representation of the input. We describe encodings of term algebras with finite signature as well as algorithms that separate the "structure" of a term, a natural number encoding of a list of balanced parenthesis, from its "content", a list of atomic terms and Prolog variables. The paper is organized as a literate Prolog program available from \url{http://logic.cse.unt.edu/tarau/research/2011/bijenc.pl}.
提交历史
来自:Salvador Abreu[v1] 2011年12月16日 星期五 12:27:09 UTC