Abstract
In previous work we added justifications to Constraint Handling Rules (CHR) to enable logical retraction of constraints for dynamic algorithms. We presented a straightforward source-to-source transformation to implement this conservative extension. In this companion paper, we improve the performance of the transformation. We discuss its worst-case time complexity in general. Then we perform experiments. We benchmark the dynamic problem of maintaining shortest paths under addition and retraction of paths. The results validate our complexity considerations.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Dynamic algorithms for dynamic problems should not be confused with dynamic programming.
- 2.
More precisely, a simplification rule is generated if there are no kept constraints and a propagation rule is generated if there are no removed constraints.
References
Abdennadher, S., Frühwirth, T.: Integration and optimization of rule-based constraint solvers. In: Bruynooghe, M. (ed.) LOPSTR 2003. LNCS, vol. 3018, pp. 198–213. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-25938-1_17
Duck, G.J., Stuckey, P.J., de la Banda, M.G., Holzbaur, C.: The refined operational semantics of constraint handling rules. In: Demoen, B., Lifschitz, V. (eds.) ICLP 2004. LNCS, vol. 3132, pp. 90–104. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-27775-0_7
Duck, G.J.: SMCHR: satisfiability modulo constraint handling rules. Theory Pract. Log. Program. 12(4–5), 601–618 (2012)
Frühwirth, T., Raiser, F. (eds.): Constraint Handling Rules - Compilation, Execution, and Analysis. BOD, Norderstedt (2018). ISBN 9783746069050
Frühwirth, T.: As time goes by II: more automatic complexity analysis of concurrent rule programs. ENTCS 59(3), 185–206 (2002). Di Pierro, A., Wiklicky, H. (eds.) QAPL 2001: Proceedings of First International Workshop on Quantitative Aspects of Programming Languages. Elsevier
Frühwirth, T.: Constraint Handling Rules. Cambridge University Press, Cambridge (2009)
Frühwirth, T.: Constraint handling rules - what else? In: Bassiliades, N., Gottlob, G., Sadri, F., Paschke, A., Roman, D. (eds.) RuleML 2015. LNCS, vol. 9202, pp. 13–34. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-21542-6_2
Frühwirth, T.: Justifications in constraint handling rules for logical retraction in dynamic algorithms. In: Fioravanti, F., Gallagher, J.P. (eds.) LOPSTR 2017. LNCS, vol. 10855, pp. 147–163. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-94460-9_9
McAllester, D.A.: Truth maintenance. In: AAAI, vol. 90, pp. 1109–1116 (1990)
Schrijvers, T., Frühwirth, T.: Optimal union-find in constraint handling rules, programming pearl. Theory Pract. Log. Program. (TPLP) 6(1), 213–224 (2006)
Wolf, A., Gruenhagen, T., Geske, U.: On the incremental adaptation of chr derivations. Appl. Artif. Intell. 14(4), 389–416 (2000)
Wolf, A.: Adaptive constraint handling with CHR in Java. In: Walsh, T. (ed.) CP 2001. LNCS, vol. 2239, pp. 256–270. Springer, Heidelberg (2001). https://doi.org/10.1007/3-540-45578-7_18
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Switzerland AG
About this paper
Cite this paper
Frühwirth, T. (2018). Implementation of Logical Retraction in Constraint Handling Rules with Justifications. In: Seipel, D., Hanus, M., Abreu, S. (eds) Declarative Programming and Knowledge Management. WFLP WLP INAP 2017 2017 2017. Lecture Notes in Computer Science(), vol 10997. Springer, Cham. https://doi.org/10.1007/978-3-030-00801-7_3
Download citation
DOI: https://doi.org/10.1007/978-3-030-00801-7_3
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-00800-0
Online ISBN: 978-3-030-00801-7
eBook Packages: Computer ScienceComputer Science (R0)