Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/1069774.1069797acmconferencesArticle/Chapter ViewAbstractPublication PagesppdpConference Proceedingsconference-collections
Article

Optimization with mode-directed preferences

Published: 11 July 2005 Publication History

Abstract

Traditional constraint programming specifies an optimization problem by using a set of constraints and minimizing (or maximizing) objective functions. Unfortunately, general optimization problems may involve compound objectives whose optima are difficult to be represented by a simple minimization (or maximization). Even worse, for many applications, especially those defined over structural domains, it is difficult to specify any objective functions. In this paper we presents a declarative method for specifying generalized optimization problems based on comparison and selection among alternative solutions. The method introduces a formal predicate mode declaration for designating certain predicates as optimization predicates, and uses preference rules for stating the criteria for determining their optimal solutions. We illustrate their uses with two representative examples: one is matrix-chain multiplication from dynamic programming, and the other is ambiguity resolution for recursively-defined grammars. This paper also addresses how to extend a tabled Prolog system with preferences. The execution of logic programs with preferences is achieved in two steps. First, an automatic transformation is applied to embed the preferences into the problem specification to form an executable program. Second, the new program is then evaluated using tabled resolution, while the mode declaration provides a selection mechanism among the alternative solutions. We show that the transformation scheme preserves the semantics for each optimization predicate. Experimental results are shown to indicate that preferences provide a declarative approach without sacrificing efficiency.

References

[1]
Applied Logic Systems, Inc. http://www.als.com
[2]
A. Brown, S. Mantha, and T. Wakayama: Preference Logics: Towards a Unified Approach to Non-Monotonicity in Deductive Reasoning. Annals of Mathematics and Artificial Intelligence, 10:233--280, 1994.
[3]
Weidong Chen and David S. Warren: Tabled Evaluation with Delaying for General Logic Programs. Journal of the ACM, 43(1), pp. 20--74, 1996.
[4]
Baoqiu Cui and Terrance Swift: Preference Logic Grammars: Fixed Point Semantics and Application to Data Standardization. Artificial Intelligence, 138(1-2): 117--147, 2002.
[5]
M.H. van Emden and R.A. Kowalski: The Semantics of Predicate Logic as a Programming Language. JAMC, 23(4): 733--742, 1976.
[6]
F. Fages: On the Semantics of Optimization Predicates in CLP Languages. In Proc. 13th FST-TCS, 1993.
[7]
S. Ganguly, S. Greco, and C. Zaniolo: Minimum and Maximum Predicates in Logic Programming. In Proc. Tenth PODS, 1991.
[8]
K. Govindarajan, B. Jayaraman, and S. Mantha: Preference Logic Programming. In Proceedings of International Conference on Logic Programming (ICLP), pages 731--745, 1995.
[9]
K. Govindarajan, B. Jayaraman, and S. Mantha: Optimization and Relaxation in Constraint Logic Languages. POPL 1996: 91--103.
[10]
Hai-Feng Guo and Gopal Gupta: A Simple Scheme for Implementing Tabled Logic Programming Systems Based on Dynamic Reordering of Alternatives. In Proceedings of International Conference on Logic Programming (ICLP), pages 181--196, 2001.
[11]
Hai-Feng Guo and Gopal Gupta: Simplifying Dynamic Programming via Tabling. Practical Aspects of Declarative Languages (PADL), pages 163--177, 2004.
[12]
Hai-Feng Guo and Bharat Jayaraman: Mode-directed Preferences for Logic Programs. The 20th Annual ACM Symposium on Applied Computing, Mar. 2005.
[13]
J. Hintikka: Knowledge and Belief. Cornell University Press: Ithaca, NY, 1962.
[14]
J.W. Lloyd. Foundations of Logic Programming. Springer-Verlag, 1987.
[15]
J. Jaffar and M. J. Maher: Constraint Logic Programming: A Survey. Journal of Logic Programming, Vol. 19/20: pages 503--581, 1994.
[16]
Bharat Jayaraman, Kannan Govindarajan, and Surya Mantha: Preference Logic Grammars. Computer Languages, 24(3): pages 179--196, 1998.
[17]
M.J. Maher and Peter J. Stuckey: Expanding Query power in Constraint Logic Programming Languages. Proceedings of NACLP, 1989.
[18]
Kim Marriott and Peter J. Stuckey: Programming with Constraints: An Introduction. The MIT Press, 1998.
[19]
S. Parker: Partial Order Programming. In Proc. 16th POPL, 1989.
[20]
F.C.N. Pereira and D.H.D. Warren: Definite Clause Grammars for Language Analysis - A Survey of the Formalism and a Comparison with Augmented Transition Networks. Artificial Intelligence, 13:231--278, 1980.
[21]
R. Rocha, F. Silva, and V. S. Costa: On a Tabling Engine That Can Exploit Or-Parallelism. In ICLP Proceedings, pages 43--58, 2001.
[22]
XSB system. http://xsb.sourceforge.net
[23]
M. Wilson and A. Borning: Hierarchical Constraint Logic Programming Journal of Logic Programming, 16:277--318, 1993.
[24]
G.H. von Wright: The Logic of Preference. University of Edinburgh Press, 1963.
[25]
Neng-Fa Zhou, Y. Shen, L. Yuan, and J. You: Implementation of a Linear Tabling Mechanism. Journal of Functional and Logic Programming, 2001(10), 2001.

Cited By

View all
  • (2008)A Memoized Strategy for Preference Logic ProgramsProceedings of the 2008 2nd IFIP/IEEE International Symposium on Theoretical Aspects of Software Engineering10.1109/TASE.2008.9(255-262)Online publication date: 17-Jun-2008

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
PPDP '05: Proceedings of the 7th ACM SIGPLAN international conference on Principles and practice of declarative programming
July 2005
260 pages
ISBN:1595930906
DOI:10.1145/1069774
  • General Chair:
  • Pedro Barahona,
  • Program Chair:
  • Amy Felty
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 11 July 2005

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. mode
  2. preference logic programming
  3. tabled prolog

Qualifiers

  • Article

Conference

PPDP05
Sponsor:

Acceptance Rates

Overall Acceptance Rate 230 of 486 submissions, 47%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)1
  • Downloads (Last 6 weeks)0
Reflects downloads up to 13 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2008)A Memoized Strategy for Preference Logic ProgramsProceedings of the 2008 2nd IFIP/IEEE International Symposium on Theoretical Aspects of Software Engineering10.1109/TASE.2008.9(255-262)Online publication date: 17-Jun-2008

View Options

Get Access

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media