Fast interpreter for logical reasoning in general game playing

被引:8
作者
Swiechowski, Maciej [1 ]
Mandziuk, Jacek [2 ]
机构
[1] Polish Acad Sci, Syst Res Inst, Newelska 6, PL-01447 Warsaw, Poland
[2] Warsaw Univ Technol, Fac Math & Informat Sci, Koszykowa 75, PL-00662 Warsaw, Poland
关键词
First-order logic; general game playing; game description language; prolog; logical programming;
D O I
10.1093/logcom/exu058
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In this article, we present an efficient construction of the Game Description Language (GDL) interpreter. GDL is a first-order logic language used in the General Game Playing (GGP) framework. Syntactically, the language is a subset of Datalog and Prolog, and like those two, is based on facts and rules. Our aim was to achieve higher execution speed than anyone's of the currently available tools, including other Prolog interpreters applied to GDL. Speed is a crucial factor of the state space search methods used by most GGP agents, since the faster the GDL reasoner, the more game states can be evaluated in the allotted time. The cornerstone of our interpreter is the resolution tree which reflects the dependencies between rules. Our paradigm was to expedite any heavy workload to the preprocessing step to optimize the real-time usage. The proposed enhancements effectively maintain a balance between the time needed to build the internal data representation and the time required for data analysis during actual play. Therefore we refrain from using tree-based dictionary approaches such as TRIE to store the results of logical queries in favour of a memory-friendly linear representation and dynamic filters to reduce space complexity. Experimental results show that our interpreter outperforms the two most popular Prolog interpreters used by GGP programs: Yet Another Prolog (YAP) and ECLiPSe, respectively, in 22 and 26 games, out of the 28 tested. We give some insights into possible reasons for the edge of our approach over Prolog.
引用
收藏
页码:1697 / 1727
页数:31
相关论文
共 30 条
[1]  
Abiteboul Serge, 1995, FDN DATABASES, DOI DOI 10.5555/551350
[2]  
[Anonymous], 2007, Proceedings of the AAAI National Conference on Artificial Intelligence
[3]  
Apt K.R., 2007, CONSTRAINT LOGIC PRO
[4]  
Bjornsson Y., 2013, P IJCAI 11 WORKSH GE
[5]  
Buro Michael., 2002, IWEC, P81
[6]  
FINNSSON H, 2008, AAAI
[7]  
Genesereth M, 2005, AI MAG, V26, P62
[8]  
Hsu F-H., 2002, Behind Deep Blue: building the computer that defeated the world chess champion
[9]  
Huang Shan Shan, 2011, P 2011 ACM SIGMOD IN, P1213, DOI DOI 10.1145/1989323.1989456
[10]  
Kaiser L., 2011, P 2 INT GEN GAM PLAY, P91