{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,28]],"date-time":"2026-07-28T01:30:47Z","timestamp":1785202247657,"version":"3.55.0"},"reference-count":52,"publisher":"Cambridge University Press (CUP)","issue":"3","license":[{"start":{"date-parts":[[2011,11,1]],"date-time":"2011-11-01T00:00:00Z","timestamp":1320105600000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Theory and Practice of Logic Programming"],"published-print":{"date-parts":[[2013,5]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>For some computational problems (e.g., product configuration, planning, diagnosis, query answering, phylogeny reconstruction), computing a set of similar\/diverse solutions may be desirable for better decision-making. With this motivation, we have studied several decision\/optimization versions of this problem in the context of Answer set programming (ASP), analyzed their computational complexity, and introduced offline\/online methods to compute similar\/diverse solutions of such computational problems with respect to a given distance function. All these methods rely on the idea of computing solutions to a problem by means of finding the answer sets for an ASP program that describes the problem. The offline methods compute all solutions of a problem in advance using the ASP formulation of the problem with an existing ASP solver, like <jats:sc>clasp<\/jats:sc>, and then identify similar\/diverse solutions using some clustering methods (possibly in ASP as well). The online methods compute similar\/diverse solutions of a problem following one of the three approaches: by reformulating the ASP representation of the problem to compute similar\/diverse solutions at once using an existing ASP solver; by computing similar\/diverse solutions iteratively (one after the other) using an existing ASP solver; by modifying the search algorithm of an ASP solver to compute similar\/diverse solutions incrementally. All these methods are sound; the offline method and the first online method are complete whereas the others are not. We have modified <jats:sc>clasp<\/jats:sc> to implement the last online method and called it <jats:sc>clasp-nk<\/jats:sc>. In the first two online methods, the given distance function is represented in ASP; in the last one, however, it is implemented in C++. We have shown the applicability and the effectiveness of these methods using <jats:sc>clasp<\/jats:sc> or <jats:sc>clasp-nk<\/jats:sc> on two sorts of problems with different distance measures: on a real-world problem in phylogenetics (i.e., reconstruction of similar\/diverse phylogenies for Indo-European languages), and on several planning problems in a well-known domain (i.e., Blocks World). We have observed that in terms of computational efficiency (both time and space), the last online method outperforms the others; also, it allows us to compute similar\/diverse solutions when the distance function cannot be represented in ASP (e.g., due to some mathematical functions not supported by the ASP solvers) but can be easily implemented in C++.<\/jats:p>","DOI":"10.1017\/s1471068411000548","type":"journal-article","created":{"date-parts":[[2011,11,1]],"date-time":"2011-11-01T07:55:29Z","timestamp":1320134129000},"page":"303-359","source":"Crossref","is-referenced-by-count":9,"title":["Finding similar\/diverse solutions in answer set programming"],"prefix":"10.1017","volume":"13","author":[{"given":"THOMAS","family":"EITER","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"ESRA","family":"ERDEM","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"HALIT","family":"ERDOGAN","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"MICHAEL","family":"FINK","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2011,11,1]]},"reference":[{"key":"S1471068411000548_ref45","doi-asserted-by":"publisher","DOI":"10.1111\/1467-968X.00091"},{"key":"S1471068411000548_ref41","unstructured":"McIlraith S. A. and Son T. C. 2002. Adapting Golog for composition of semantic web services. In Proc. of KR, 482\u2013496."},{"key":"S1471068411000548_ref46","doi-asserted-by":"publisher","DOI":"10.1016\/0025-5564(81)90043-2"},{"key":"S1471068411000548_ref50","unstructured":"Srivastava B. , Nguyen T. A. , Gerevini A. , Kambhampati S. , Do M. B. and Serina I. 2007. Domain independent approaches for finding diverse plans. In Proc. of IJCAI, 2016\u20132022."},{"key":"S1471068411000548_ref38","doi-asserted-by":"publisher","DOI":"10.1023\/A:1018978005636"},{"key":"S1471068411000548_ref43","doi-asserted-by":"publisher","DOI":"10.1093\/bioinformatics\/bti720"},{"key":"S1471068411000548_ref35","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-60085-2_16"},{"key":"S1471068411000548_ref33","unstructured":"Kautz H. A. and Selman B. 1992. Planning as satisfiability. In Proc. of ECAI, 359\u2013363."},{"key":"S1471068411000548_ref32","first-page":"369","volume-title":"Algorithms and Computation","author":"Hon","year":"2000"},{"key":"S1471068411000548_ref29","doi-asserted-by":"publisher","DOI":"10.1002\/j.1538-7305.1950.tb00463.x"},{"key":"S1471068411000548_ref28","first-page":"389","volume-title":"Handbook of Graph Theory","author":"Gutin","year":"2003"},{"key":"S1471068411000548_ref27","doi-asserted-by":"crossref","first-page":"239","DOI":"10.1613\/jair.1183","article-title":"Planning through stochastic local search and temporal action graphs in LPG","volume":"20","author":"Gerevini","year":"2003","journal-title":"Journal of Artificial Intelligence Research"},{"key":"S1471068411000548_ref25","unstructured":"Gebser M. , Kaufmann B. , Neumann A. and Schaub T. 2007b. T.: Conflict-driven answer set solving. In Proc. of IJCAI, 386\u2013392."},{"key":"S1471068411000548_ref24","unstructured":"Gebser M. , Kaufmann B. , Neumann A. and Schaub T. 2007a. clasp: A conflict-driven answer set solver. In Proc. of LPNMR, 260\u2013265."},{"key":"S1471068411000548_ref23","doi-asserted-by":"publisher","DOI":"10.1017\/S1471068403001923"},{"key":"S1471068411000548_ref40","doi-asserted-by":"publisher","DOI":"10.1109\/12.769433"},{"key":"S1471068411000548_ref9","doi-asserted-by":"publisher","DOI":"10.1111\/j.1558-5646.1965.tb01722.x"},{"key":"S1471068411000548_ref22","unstructured":"Felsenstein J. 2009. Phylip. URL: http:\/\/evolution.genetics.washington.edu\/phylip.html."},{"key":"S1471068411000548_ref21","unstructured":"Erdem E. and Wong M. D. F. 2004. Rectilinear Steiner tree construction using answer set programming. In Proc. of ICLP, 386\u2013399."},{"key":"S1471068411000548_ref6","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-007-9082-1"},{"key":"S1471068411000548_ref42","first-page":"169","volume-title":"Proc. of PADL","author":"Nogueira","year":"2001"},{"key":"S1471068411000548_ref1","doi-asserted-by":"publisher","DOI":"10.1137\/S089548019528280X"},{"key":"S1471068411000548_ref15","doi-asserted-by":"publisher","DOI":"10.1016\/S0004-3702(01)00128-X"},{"key":"S1471068411000548_ref16","first-page":"67","volume-title":"Phenetic and Phylogenetic Classification","author":"Edwards","year":"1964"},{"key":"S1471068411000548_ref19","unstructured":"Erdem E. 2009. PHYLO-ASP: Phylogenetic systematics with answer set programming. In Proc. of LPNMR, 567\u2013572."},{"key":"S1471068411000548_ref5","volume-title":"Phylogeny, Ecology, and Behavior: A Research Program in Comparative Biology","author":"Brooks","year":"1991"},{"key":"S1471068411000548_ref31","unstructured":"Hebrard E. , O'Sullivan B. and Walsh T. 2007. Distance constraints in constraint satisfaction. In Proc. of IJCAI, 106\u2013111."},{"key":"S1471068411000548_ref8","unstructured":"Caldiran O. , Haspalamutgil K. , Ok A. , Palaz C. , Erdem E. and Patoglu V. 2009. Bridging the gap between high-level reasoning and low-level control. In Proc. of LPNMR, 342\u2013354."},{"key":"S1471068411000548_ref36","unstructured":"Lifschitz V. 2008. What is answer set programming? In Proc. of. AAAI, 1594\u20131597."},{"key":"S1471068411000548_ref17","doi-asserted-by":"publisher","DOI":"10.1016\/S0004-3702(99)00006-5"},{"key":"S1471068411000548_ref3","doi-asserted-by":"crossref","unstructured":"Bluis J. and Shin D.-G. 2003. Nodal distance algorithm: Calculating a phylogenetic tree comparison metric. In Proc. of BIBE, 87\u201394.","DOI":"10.1109\/BIBE.2003.1188933"},{"key":"S1471068411000548_ref14","doi-asserted-by":"publisher","DOI":"10.1145\/368273.368557"},{"key":"S1471068411000548_ref4","unstructured":"Bodenreider O. , \u00c7oban Z. H. , Do\u011fanay M. C. , Erdem E. and Ko\u015fucu H. 2008. A preliminary report on answering complex queries related to drug discovery using answer set programming. In Proc. of ALPSWS, 85\u201390."},{"key":"S1471068411000548_ref10","unstructured":"Chafle G. , Dasgupta K. , Kumar A. , Mittal S. and Srivastava B. 2006. Adaptation in web service composition and execution. In Proc. of ICWS, 549\u2013557."},{"key":"S1471068411000548_ref44","volume-title":"Computational Complexity","author":"Papadimitriou","year":"1994"},{"key":"S1471068411000548_ref2","unstructured":"Bailleux O. and Marquis P. 1999. DISTANCE-SAT: Complexity and algorithms. In Proc. of AAAI, 642\u2013647."},{"key":"S1471068411000548_ref12","unstructured":"Coban E. , Erdem E. and Ture F. 2008. Comparing ASP, CP, ILP on two challenging applications: Wire routing and haplotype inference. In Proc. of the 2nd International Workshop on Logic and Search (LaSh 2008), 166\u2013180."},{"key":"S1471068411000548_ref7","unstructured":"Brooks D. R. , Erdem E. , Minett J. W. and Ringe D. 2005. Character-based cladistics and answer set programming. In Proc. of PADL, 37\u201351."},{"key":"S1471068411000548_ref37","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-15025-8_24"},{"key":"S1471068411000548_ref11","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1995.1087"},{"key":"S1471068411000548_ref52","volume-title":"A Prehistory of Australia, New Guinea, and Sahul","author":"White","year":"1982"},{"key":"S1471068411000548_ref18","unstructured":"Erdem E. 2002. Theory and Applications of Answer Set Programming. PhD thesis, Department of Computer Sciences, University of Texas at Austin."},{"key":"S1471068411000548_ref30","unstructured":"Hebrard E. , Hnich B. , O'Sullivan B. and Walsh T. 2005. Finding diverse and similar solutions in constraint programming. In Proc. of AAAI, 372\u2013377."},{"key":"S1471068411000548_ref47","doi-asserted-by":"publisher","DOI":"10.1016\/S0004-3702(02)00187-X"},{"key":"S1471068411000548_ref48","unstructured":"Soininen T. and Niemel\u00e4 I. 1998. Developing a declarative rule language for applications in product configuration. In Proc. of PADL, 305\u2013319."},{"key":"S1471068411000548_ref49","unstructured":"Son T. , Pontelli E. and Sakama C. 2009. Logic programming for multiagent planning with negotiation. In Proc. of ICLP, 99\u2013114."},{"key":"S1471068411000548_ref26","doi-asserted-by":"publisher","DOI":"10.1007\/BF03037169"},{"key":"S1471068411000548_ref51","volume-title":"PAUP*: Phylogenetic Analysis under Parsimony (and Other Methods)","author":"Swofford","year":"2003"},{"key":"S1471068411000548_ref13","unstructured":"DasGupta B. , He X. , Jiang T. , Li M. , Tromp J. and Zhang L. 1997. On distances between phylogenetic trees. In Proc. of SODA, 427\u2013436."},{"key":"S1471068411000548_ref34","first-page":"459","article-title":"A simulation comparison of phylogeny algorithms under equal and unequal evolutionary rates [published erratum appears in Mol Biol Evol 1995 May;12(3):525]","volume":"11","author":"Kuhner","year":"1994","journal-title":"Molecular Biology and Evolution"},{"key":"S1471068411000548_ref20","doi-asserted-by":"publisher","DOI":"10.1017\/S1471068406002729"},{"key":"S1471068411000548_ref39","doi-asserted-by":"publisher","DOI":"10.1017\/S1471068403001777"}],"container-title":["Theory and Practice of Logic Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S1471068411000548","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2019,4,23]],"date-time":"2019-04-23T17:55:20Z","timestamp":1556042120000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S1471068411000548\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2011,11,1]]},"references-count":52,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2013,5]]}},"alternative-id":["S1471068411000548"],"URL":"https:\/\/doi.org\/10.1017\/s1471068411000548","relation":{},"ISSN":["1471-0684","1475-3081"],"issn-type":[{"value":"1471-0684","type":"print"},{"value":"1475-3081","type":"electronic"}],"subject":[],"published":{"date-parts":[[2011,11,1]]}}}