0% found this document useful (0 votes)
43 views32 pages

Toot

Uploaded by

piggioggio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views32 pages

Toot

Uploaded by

piggioggio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

Answer Set Solving in Practice

Torsten Schaub1
University of Potsdam
[email protected]

Potassco Slide Packages are licensed under a Creative Commons Zero v1.0 Universal License.

1
Standing on the shoulders of a great research group and community!
Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 1 / 536
Administration: Overview

1 Reserve
2 Courses
3 Service
4 Performance
5 Resources

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 2 / 536
Reserve

Outline

1 Reserve
2 Courses
3 Service
4 Performance
5 Resources

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 3 / 536
Reserve

Reserve

People
Javier Romero
Torsten Schaub
and you !

Registration https://puls.uni-potsdam.de
Platform https://moodle.uni-potsdam.de
Contact [email protected]

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 4 / 536
Reserve

Reserve

People
Javier Romero
Torsten Schaub
and you !

Registration https://puls.uni-potsdam.de
Platform https://moodle.uni-potsdam.de
Contact [email protected]

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 4 / 536
Reserve

Reserve

People
Javier Romero
Torsten Schaub
and you !

Registration https://puls.uni-potsdam.de
Platform https://moodle.uni-potsdam.de
Contact [email protected]

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 4 / 536
Courses

Outline

1 Reserve
2 Courses
3 Service
4 Performance
5 Resources

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 5 / 536
Courses

Course
Advanced Problem Solving Techniques
MSc Cognitive Systems, Module BM3

Lecture: 2h weekly
Exercises: 2h weekly
Credits: 9 if
1 Passed written exam
2 Three successful mini projects (= Implementation+Consultation)
3 One successful medium project (= Implementation+Presentation)
Mark: mark of written exam (plus bonuses)
Bonus: mini and medium projects, short tests

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 6 / 536
Courses

Course
Declarative Problem Solving and Optimization
MSc Computational Science, Module 7070
MSc Data Science, Module INF-DS-C4

Lecture: 2h weekly
Exercises: 2h weekly
Credits: 6 if
1 Passed written exam
2 Three successful mini projects (= Implementation+Consultation)
3 —
Mark: mark of written exam (plus bonuses)
Bonus: mini projects, short tests

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 6 / 536
Service

Outline

1 Reserve
2 Courses
3 Service
4 Performance
5 Resources

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 7 / 536
Service

Service
Self-study
video
quiz
Lecture
discussion
Exercises
demonstration videos
self study (+ correction)
practice
Tests
presence
feedback
Projects
presentation

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 8 / 536
Performance

Outline

1 Reserve
2 Courses
3 Service
4 Performance
5 Resources

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 9 / 536
Performance

Performance in more detail


Graded Performance — written exam
all non-alive and non-electronic auxiliary means permitted
planned first week of exam period

Non-graded performance — mini projects


automatic testing
consultations

Non-graded performance — medium project


project implementation (until end of semester)
final presentation (last day of semester)

Bonus performance
additional points can be gathered via voluntary performance:
three short tests (0-2 points each)
particular results at third mini (and medium) project (0-2 points)
every bonus point adds 0.05 on top of the exam mark
Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 10 / 536
Performance

Performance in more detail


Graded Performance — written exam
all non-alive and non-electronic auxiliary means permitted
planned first week of exam period

Non-graded performance — mini projects


automatic testing
consultations

Non-graded performance — medium project


project implementation (until end of semester)
final presentation (last day of semester)

Bonus performance
additional points can be gathered via voluntary performance:
three short tests (0-2 points each)
particular results at third mini (and medium) project (0-2 points)
every bonus point adds 0.05 on top of the exam mark
Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 10 / 536
Performance

Performance in more detail


Graded Performance — written exam
all non-alive and non-electronic auxiliary means permitted
planned first week of exam period

Non-graded performance — mini projects


automatic testing
consultations

Non-graded performance — medium project


project implementation (until end of semester)
final presentation (last day of semester)

Bonus performance
additional points can be gathered via voluntary performance:
three short tests (0-2 points each)
particular results at third mini (and medium) project (0-2 points)
every bonus point adds 0.05 on top of the exam mark
Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 10 / 536
Resources

Outline

1 Reserve
2 Courses
3 Service
4 Performance
5 Resources

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 11 / 536
Resources

Material

Platform https://moodle.uni-potsdam.de
videos
slides
quizzes
exercises
projects
tests
schedule
Slides
https://teaching.potassco.org
https://github.com/potassco-asp-course
Communication
forum https://moodle.uni-potsdam.de
mail [email protected]
announcements https://puls.uni-potsdam.de
Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 12 / 536
Auf Wiedersehen!

“Tomorrow isn’t staying out


I’ll be back, without a doubt!”
Pink panther

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 535 / 536
Bibliography

The following list of references is compiled from the


open source bibliography available at

https://github.com/krr-up/bibliography

Feel free to submit corrections via pull requests !

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

[1] S. Abiteboul, R. Hull, and V. Vianu. Foundations of Databases.


Addison-Wesley, 1995.
[2] M. Alviano et al. “The ASP System DLV2”. In: Proceedings of the
Fourteenth International Conference on Logic Programming and
Nonmonotonic Reasoning (LPNMR’17). Ed. by M. Balduccini and
T. Janhunen. Vol. 10377. Lecture Notes in Artificial Intelligence.
Springer-Verlag, 2017, pp. 215–221.
[3] M. Alviano et al. “The Fourth Answer Set Programming
Competition: Preliminary Report”. In: Proceedings of the Twelfth
International Conference on Logic Programming and Nonmonotonic
Reasoning (LPNMR’13). Ed. by P. Cabalar and T. Son. Vol. 8148.
Lecture Notes in Artificial Intelligence. Springer-Verlag, 2013,
pp. 42–53.
[4] M. Alviano et al. “WASP: A Native ASP Solver Based on Constraint
Learning”. In: Proceedings of the Twelfth International Conference
on Logic Programming and Nonmonotonic Reasoning (LPNMR’13).

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

Ed. by P. Cabalar and T. Son. Vol. 8148. Lecture Notes in Artificial


Intelligence. Springer-Verlag, 2013, pp. 54–66.
[5] C. Baral. Knowledge Representation, Reasoning and Declarative
Problem Solving. Cambridge University Press, 2003.
[6] C. Baral, G. Brewka, and J. Schlipf, eds. Proceedings of the Ninth
International Conference on Logic Programming and Nonmonotonic
Reasoning (LPNMR’07). Vol. 4483. Lecture Notes in Artificial
Intelligence. Springer-Verlag, 2007.
[7] C. Baral and M. Gelfond. “Logic Programming and Knowledge
Representation”. In: Journal of Logic Programming 12 (1994),
pp. 1–80.
[8] P. Borchert et al. “Towards Systematic Benchmarking in Answer Set
Programming: The Dagstuhl Initiative”. In: Proceedings of the
Seventh International Conference on Logic Programming and
Nonmonotonic Reasoning (LPNMR’04). Ed. by V. Lifschitz and
I. Niemelä. Vol. 2923. Lecture Notes in Artificial Intelligence.
Springer-Verlag, 2004, pp. 3–7.
Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

[9] G. Brewka, T. Eiter, and M. Truszczynski. “Answer Set


Programming: An Introduction to the Special Issue”. In: AI
Magazine 37.3 (2016), pp. 5–6.
[10] G. Brewka, T. Eiter, and M. Truszczyński. “Answer set
programming at a glance”. In: Communications of the ACM 54.12
(2011), pp. 92–103.
[11] P. Cabalar and T. Son, eds. Proceedings of the Twelfth International
Conference on Logic Programming and Nonmonotonic Reasoning
(LPNMR’13). Vol. 8148. Lecture Notes in Artificial Intelligence.
Springer-Verlag, 2013.
[12] F. Calimeri et al. “ASP-Core-2 Input Language Format”. In: Theory
and Practice of Logic Programming 20.2 (2019), pp. 294–309.
[13] F. Calimeri et al. “ASP-Core-2 Input Language Format”. In: Theory
and Practice of Logic Programming 20.2 (2020), pp. 294–309.
[14] F. Calimeri et al. “I-DLV: The new intelligent grounder of DLV”. In:
Intelligenza Artificiale 11.1 (2017), pp. 5–20.

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

[15] F. Calimeri et al. “The Design of the Fifth Answer Set Programming
Competition”. In: Technical Communications of the Thirtieth
International Conference on Logic Programming (ICLP’14). Ed. by
M. Leuschel and T. Schrijvers. Vol. arXiv:1405.3710v4. Theory and
Practice of Logic Programming, Online Supplement. 2014. url:
http://arxiv.org/abs/1405.3710v4.
[16] F. Calimeri et al. “The Third Answer Set Programming
Competition: Preliminary Report of the System Competition Track”.
In: Proceedings of the Eleventh International Conference on Logic
Programming and Nonmonotonic Reasoning (LPNMR’11). Ed. by
J. Delgrande and W. Faber. Vol. 6645. Lecture Notes in Artificial
Intelligence. Springer-Verlag, 2011, pp. 388–403.
[17] M. D’Agostino et al., eds. Handbook of Tableau Methods. Kluwer
Academic Publishers, 1999.
[18] J. Delgrande and W. Faber, eds. Proceedings of the Eleventh
International Conference on Logic Programming and Nonmonotonic

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

Reasoning (LPNMR’11). Vol. 6645. Lecture Notes in Artificial


Intelligence. Springer-Verlag, 2011.
[19] M. Denecker et al. “The Second Answer Set Programming
Competition”. In: Proceedings of the Tenth International Conference
on Logic Programming and Nonmonotonic Reasoning (LPNMR’09).
Ed. by E. Erdem, F. Lin, and T. Schaub. Vol. 5753. Lecture Notes in
Artificial Intelligence. Springer-Verlag, 2009, pp. 637–654.
[20] T. Eiter, G. Ianni, and T. Krennwallner. “Answer Set Programming:
A Primer”. In: Fifth International Reasoning Web Summer School
(RW’09). Ed. by S. Tessaris et al. Vol. 5689. Lecture Notes in
Computer Science. Slides at
http://www.kr.tuwien.ac.at/staff/tkren/pub/2009/rw2009-
lecture.zip. Springer-Verlag, 2009, pp. 40–110. url: http:
//www.kr.tuwien.ac.at/staff/tkren/pub/2009/rw2009-
asp.pdf.
[21] E. Erdem, F. Lin, and T. Schaub, eds. Proceedings of the Tenth
International Conference on Logic Programming and Nonmonotonic
Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

Reasoning (LPNMR’09). Vol. 5753. Lecture Notes in Artificial


Intelligence. Springer-Verlag, 2009.
[22] M. Fitting. “A Kripke-Kleene Semantics for Logic Programs”. In:
Journal of Logic Programming 2.4 (1985), pp. 295–312.
[23] M. Fitting. “Fixpoint semantics for logic programming: A survey”.
In: Theoretical Computer Science 278.1-2 (2002), pp. 25–51.
[24] M. Gebser, B. Kaufmann, and T. Schaub. “Conflict-Driven Answer
Set Solving: From Theory to Practice”. In: Artificial Intelligence
187-188 (2012), pp. 52–89.
[25] M. Gebser, T. Schaub, and S. Thiele. “Gringo: A New Grounder for
Answer Set Programming”. In: Proceedings of the Ninth
International Conference on Logic Programming and Nonmonotonic
Reasoning (LPNMR’07). Ed. by C. Baral, G. Brewka, and J. Schlipf.
Vol. 4483. Lecture Notes in Artificial Intelligence. Springer-Verlag,
2007, pp. 266–271.
[26] M. Gebser et al. “Abstract Gringo”. In: Theory and Practice of
Logic Programming 15.4-5 (2015), pp. 449–463.
Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

[27] M. Gebser et al. “Advances in gringo Series 3”. In: Proceedings of


the Eleventh International Conference on Logic Programming and
Nonmonotonic Reasoning (LPNMR’11). Ed. by J. Delgrande and
W. Faber. Vol. 6645. Lecture Notes in Artificial Intelligence.
Springer-Verlag, 2011, pp. 345–351.
[28] M. Gebser et al. Answer Set Solving in Practice. Synthesis Lectures
on Artificial Intelligence and Machine Learning. Morgan and
Claypool Publishers, 2012.
[29] M. Gebser et al. “Conflict-Driven Answer Set Solving”. In:
Proceedings of the Twentieth International Joint Conference on
Artificial Intelligence (IJCAI’07). Ed. by M. Veloso. AAAI/MIT
Press, 2007, pp. 386–392.
[30] M. Gebser et al. “Multi-shot ASP solving with clingo”. In: Theory
and Practice of Logic Programming 19.1 (2019), pp. 27–82.
[31] M. Gebser et al. “On the Input Language of ASP Grounder Gringo”.
In: Proceedings of the Tenth International Conference on Logic
Programming and Nonmonotonic Reasoning (LPNMR’09). Ed. by
Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

E. Erdem, F. Lin, and T. Schaub. Vol. 5753. Lecture Notes in


Artificial Intelligence. Springer-Verlag, 2009, pp. 502–508.
[32] M. Gebser et al. Potassco User Guide. 2nd ed. University of
Potsdam. 2015. url: http://potassco.org.
[33] M. Gebser et al. “The First Answer Set Programming System
Competition”. In: Proceedings of the Ninth International Conference
on Logic Programming and Nonmonotonic Reasoning (LPNMR’07).
Ed. by C. Baral, G. Brewka, and J. Schlipf. Vol. 4483. Lecture Notes
in Artificial Intelligence. Springer-Verlag, 2007, pp. 3–17.
[34] M. Gelfond. “Answer Sets”. In: Handbook of Knowledge
Representation. Ed. by V. Lifschitz, F. van Harmelen, and B. Porter.
Elsevier Science, 2008. Chap. 7, pp. 285–316.
[35] M. Gelfond and Y. Kahl. Knowledge Representation, Reasoning, and
the Design of Intelligent Agents: The Answer-Set Programming
Approach. Cambridge University Press, 2014.

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

[36] M. Gelfond and N. Leone. “Logic programming and knowledge


representation — the A-Prolog perspective”. In: Artificial
Intelligence 138.1-2 (2002), pp. 3–38.
[37] M. Gelfond and V. Lifschitz. “Logic Programs with Classical
Negation”. In: Proceedings of the Seventh International Conference
on Logic Programming (ICLP’90). Ed. by D. Warren and P. Szeredi.
MIT Press, 1990, pp. 579–597.
[38] M. Gelfond and V. Lifschitz. “The Stable Model Semantics for Logic
Programming”. In: Proceedings of the Fifth International
Conference and Symposium of Logic Programming (ICLP’88).
Ed. by R. Kowalski and K. Bowen. MIT Press, 1988, pp. 1070–1080.
[39] R. Kaminski, T. Schaub, and P. Wanko. “A Tutorial on Hybrid
Answer Set Solving with clingo”. In: Proceedings of the Thirteenth
International Summer School of the Reasoning Web. Ed. by G. Ianni
et al. Vol. 10370. Lecture Notes in Computer Science.
Springer-Verlag, 2017, pp. 167–203.

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

[40] J. Lee. “A Model-Theoretic Counterpart of Loop Formulas”. In:


Proceedings of the Nineteenth International Joint Conference on
Artificial Intelligence (IJCAI’05). Ed. by L. Kaelbling and
A. Saffiotti. Professional Book Center, 2005, pp. 503–508.
[41] N. Leone et al. “The DLV System for Knowledge Representation and
Reasoning”. In: ACM Transactions on Computational Logic 7.3
(2006), pp. 499–562.
[42] V. Lifschitz. Answer Set Programming. Springer-Verlag, 2019.
[43] V. Lifschitz. “Answer set programming and plan generation”. In:
Artificial Intelligence 138.1-2 (2002), pp. 39–54.
[44] V. Lifschitz. “Introduction to answer set programming”.
Unpublished draft. 2004. url:
http://www.cs.utexas.edu/users/vl/papers/esslli.ps.
[45] V. Lifschitz. “Thirteen Definitions of a Stable Model”. In: Fields of
Logic and Computation, Essays Dedicated to Yuri Gurevich on the
Occasion of His 70th Birthday. Ed. by A. Blass, N. Dershowitz, and

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

W. Reisig. Vol. 6300. Lecture Notes in Computer Science.


Springer-Verlag, 2010, pp. 488–503.
[46] V. Lifschitz. “Twelve Definitions of a Stable Model”. In:
Proceedings of the Twenty-fourth International Conference on Logic
Programming (ICLP’08). Ed. by M. Garcia de la Banda and
E. Pontelli. Vol. 5366. Lecture Notes in Computer Science.
Springer-Verlag, 2008, pp. 37–51.
[47] V. Marek and M. Truszczyński. Nonmonotonic logic:
context-dependent reasoning. Artifical Intelligence. Springer-Verlag,
1993.
[48] V. Marek and M. Truszczyński. “Stable models and an alternative
logic programming paradigm”. In: The Logic Programming
Paradigm: a 25-Year Perspective. Ed. by K. Apt et al.
Springer-Verlag, 1999, pp. 375–398.
[49] I. Niemelä. “Logic Programs with Stable Model Semantics as a
Constraint Programming Paradigm”. In: Annals of Mathematics and
Artificial Intelligence 25.3-4 (1999), pp. 241–273.
Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
References

[50] I. Niemelä and P. Simons. “Efficient Implementation of the


Well-founded and Stable Model Semantics”. In: Proceedings of the
Joint International Conference and Symposium on Logic
Programming. Ed. by M. Maher. MIT Press, 1996, pp. 289–303.
[51] D. Saccá and C. Zaniolo. “Stable Models and Non-Determinism in
Logic Programs with Negation”. In: Proceedings of the Ninth ACM
SIGACT-SIGMOD-SIGART Symposium on Principles of Database
Systems. ACM Press, 1990, pp. 205–217.
[52] T. Schaub and S. Woltran. “Answer set programming unleashed!”
In: Künstliche Intelligenz 32.2-3 (2018), pp. 105–108.
[53] T. Schaub and S. Woltran. “Special Issue on Answer Set
Programming”. In: Künstliche Intelligenz 32.2-3 (2018),
pp. 101–103.
[54] P. Simons, I. Niemelä, and T. Soininen. “Extending and
implementing the stable model semantics”. In: Artificial Intelligence
138.1-2 (2002), pp. 181–234.

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536
[55] T. Syrjänen. “Omega-Restricted Logic Programs”. In: Proceedings
of the Sixth International Conference on Logic Programming and
Nonmonotonic Reasoning (LPNMR’01). Ed. by T. Eiter, W. Faber,
and M. Truszczyński. Vol. 2173. Lecture Notes in Computer Science.
Springer-Verlag, 2001, pp. 267–279.
[56] M. Truszczyński. “An introduction to the stable and well-founded
semantics of logic programs”. In: Declarative Logic Programming:
Theory, Systems, and Applications. Ed. by M. Kifer and Y. Liu.
ACM / Morgan & Claypool, 2018, pp. 121–177.
[57] A. Van Gelder, K. Ross, and J. Schlipf. “The Well-Founded
Semantics for General Logic Programs”. In: Journal of the ACM
38.3 (1991), pp. 620–650.

Torsten Schaub (KRR@UP) Answer Set Solving in Practice October 22, 2022 536 / 536

You might also like