Constraint functional logic programming over finite domains

被引:8
作者
Fernandez, Antonio J. [1 ]
机构
[1] Univ Malaga, Dpto Lenguajes & Ciencias Computac, E-29071 Malaga, Spain
[2] Univ Complutense Madrid, Dpto Sistemas Informat & Programac, E-28040 Madrid, Spain
关键词
constraint logic programming; functional logic programming; finite domains;
D O I
10.1017/S1471068406002924
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper, we present our proposal to Constraint Functional Logic Programming over Finite Domains (CFLP(FD)) with a lazy functional logic programming language which seamlessly embodies finite domain (FD) constraints. This proposal increases the expressiveness and power of constraint logic programming over finite domains (CLP(FD)) by combining functional and relational notation, curried expressions, higher-order functions, patterns, partial applications, non-determinism, lazy evaluation, logical variables, types, domain variables, constraint composition, and finite domain constraints. We describe the syntax of the language, its type discipline, and its declarative and operational semantics. We also describe TOY(FD), an implementation for CFLP(FD), and a comparison of our approach with respect to CLP(FD) from a programming point of view, showing the new features we introduce. And, finally, we show a performance analysis which demonstrates that our implementation is competitive with respect to existing CLP(FD) systems and that clearly outperforms the closer approach to CFLP(FD).
引用
收藏
页码:537 / 582
页数:46
相关论文
共 54 条
  • [1] TOWARDS A MEANING OF LIFE
    AITKACI, H
    PODELSKI, A
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1993, 16 (3-4): : 195 - 234
  • [2] [Anonymous], 2003, OVERVIEW SWI PROLOG
  • [3] [Anonymous], 1993, FDN CONSTRAINT SATIS
  • [4] Antoy S, 2000, LECT NOTES ARTIF INT, V1794, P171
  • [5] ANTOY S, 1992, LECT NOTES COMPUT SC, V632, P143, DOI 10.1007/BFb0013825
  • [6] A needed narrowing strategy
    Antoy, S
    Echahed, R
    Hanus, M
    [J]. JOURNAL OF THE ACM, 2000, 47 (04) : 776 - 822
  • [7] Apt Krzysztof., 2003, PRINCIPLES CONSTRAIN
  • [8] ARENAS P, 1996, JOINT C DECL PROGR A
  • [9] BARNIER N, 2001, ALP NEWSLETTER MAY, V14
  • [10] CABALLERO R, 1997, SIP5797 U COMPL MADR