576,258 research outputs found

    An FLP-Style Answer-Set Semantics for Abstract-Constraint Programs with Disjunctions

    Get PDF
    We introduce an answer-set semantics for abstract-constraint programs with disjunction in rule heads in the style of Faber, Leone, and Pfeifer (FLP). To this end, we extend the definition of an answer set for logic programs with aggregates in rule bodies using the usual FLP-reduct. Additionally, we also provide a characterisation of our semantics in terms of unfounded sets, likewise generalising the standard concept of an unfounded set. Our work is motivated by the desire to have simple and rule-based definitions of the semantics of an answer-set programming (ASP) language that is close to those implemented by the most prominent ASP solvers. The new definitions are intended as a theoretical device to allow for development methods and methodologies for ASP, e.g., debugging or testing techniques, that are general enough to work for different types of solvers. We use abstract constraints as an abstraction of literals whose truth values depend on subsets of an interpretation. This includes weight constraints, aggregates, and external atoms, which are frequently used in real-world answer-set programs. We compare the new semantics to previous semantics for abstract-constraint programs and show that they are equivalent to recent extensions of the FLP semantics to propositional and first-order theories when abstract-constraint programs are viewed as theories

    Unit Testing in ASPIDE

    Full text link
    Answer Set Programming (ASP) is a declarative logic programming formalism, which is employed nowadays in both academic and industrial real-world applications. Although some tools for supporting the development of ASP programs have been proposed in the last few years, the crucial task of testing ASP programs received less attention, and is an Achilles' heel of the available programming environments. In this paper we present a language for specifying and running unit tests on ASP programs. The testing language has been implemented in ASPIDE, a comprehensive IDE for ASP, which supports the entire life-cycle of ASP development with a collection of user-friendly graphical tools for program composition, testing, debugging, profiling, solver execution configuration, and output-handling.Comment: 12 pages, 4 figures, Proceedings of the 25th Workshop on Logic Programming (WLP 2011

    ON SIMPLE BUT HARD RANDOM INSTANCES OF PROPOSITIONAL THEORIES AND LOGIC PROGRAMS

    Get PDF
    In the last decade, Answer Set Programming (ASP) and Satisfiability (SAT) have been used to solve combinatorial search problems and practical applications in which they arise. In each of these formalisms, a tool called a solver is used to solve problems. A solver takes as input a specification of the problem – a logic program in the case of ASP, and a CNF theory for SAT – and produces as output a solution to the problem. Designing fast solvers is important for the success of this general-purpose approach to solving search problems. Classes of instances that pose challenges to solvers can help in this task. In this dissertation we create challenging yet simple benchmarks for existing solvers in ASP and SAT.We do so by providing models of simple logic programs as well as models of simple CNF theories. We then randomly generate logic programs as well as CNF theories from these models. Our experimental results show that computing answer sets of random logic programs as well as models of random CNF theories with carefully chosen parameters is hard for existing solvers. We generate random logic programs with 2-literals, and our experiments show that it is hard for ASP solvers to obtain answer sets of purely negative and constraint-free programs, indicating the importance of these programs in the development of ASP solvers. An easy-hard-easy pattern emerges as we compute the average number of choice points generated by ASP solvers on randomly generated 2-literal programs with an increasing number of rules. We provide an explanation for the emergence of this pattern in these programs. We also theoretically study the probability of existence of an answer set for sparse and dense 2-literal programs. We consider simple classes of mixed Horn formulas with purely positive 2- literal clauses and purely negated Horn clauses. First we consider a class of mixed Horn formulas wherein each formula has m 2-literal clauses and k-literal negated Horn clauses. We show that formulas that are generated from the phase transition region of this class are hard for complete SAT solvers. The second class of Mixed Horn Formulas we consider are obtained from completion of a certain class of random logic programs. We show the appearance of an easy-hard-easy pattern as we generate formulas from this class with increasing numbers of clauses, and that the formulas generated in the hard region can be used as benchmarks for testing incomplete SAT solvers

    Semi Automated Partial Credit Grading of Programming Assignments

    Get PDF
    The grading of student programs is a time consuming process. As class sizes continue to grow, especially in entry level courses, manually grading student programs has become an even more daunting challenge. Increasing the difficulty of grading is the needs of graphical and interactive programs such as those used as part of the UNH Computer Science curriculum (and various textbooks). There are existing tools that support the grading of introductory programming assignments (TAME and Web-CAT). There are also frameworks that can be used to test student code (JUnit, Tester, and TestNG). While these programs and frameworks are helpful, they have little or no no support for programs that use real data structures or that have interactive or graphical features. In addition, the automated tests in all these tools provide only “all or nothing” evaluation. This is a significant limitation in many circumstances. Moreover, there is little or no support for dynamic alteration of grading criteria, which means that refactoring of test classes after deployment is not easily done. Our goal is to create a framework that can address these weaknesses. This framework needs to: 1. Support assignments that have interactive and graphical components. 2. Handle data structures in student programs such as lists, stacks, trees, and hash tables. 3. Be able to assign partial credit automatically when the instructor can predict errors in advance. 4. Provide additional answer clustering information to help graders identify and assign consistent partial credit for incorrect output that was not predefined. Most importantly, these tools, collectively called RPM (short for Rapid Program Management), should interface effectively with our current grading support framework without requiring large amounts of rewriting or refactoring of test code

    An Investigation into the Use of Word Lists in University Foundation Programs in the United Arab Emirates

    Get PDF
    There has been increasing interest in research on creating word lists in the past decade with more than 60 separate lists being published along with Nation’s (2016) timely Making and Using Word Lists for Language Learning and Testing. However, this focus on word lists has primarily been on creating them and has not necessarily extended to looking at how they are actually used. In order to help answer the question of how these lists are utilized in practice, this exploratory, interpretive study based on interviews with teachers and assessment/curriculum developers looks at how word lists are used at five tertiary English foundation programs in the United Arab Emirates. The main findings include the following. Insufficient vocabulary knowledge was deemed one of the most significant problems that students faced. Additionally, word lists played a role in all five of the institutions represented in the study, and the Common European Framework (CEFR) was used in conjunction with vocabulary frequency lists to help set expected vocabulary learning in some programs. Furthermore, teacher intuition was used to modify lists in three of the five programs and online applications were used in all five programs. The thesis explores a number of areas in depth including: how vocabulary lists are being used in the programs, the use of the AWL in this context and potential problems related to this, the role of teacher intuition in the customization of lists, the role of CEFR related frameworks in these programs, the use of computer applications to assist with list vocabulary acquisition, what the selected vocabulary acquisition activities tell us about beliefs about vocabulary teaching and learning, and some final comments about utilizing a list. One of the key findings was the development of a novel framework for categorizing the use of word lists into four general areas: course planning, teaching and learning, assessment and materials development with sub-categories for each. This framework and the related examples could be utilized to evaluate the suitability of specific lists and to help set developmental targets for the process of adopting a new list and transforming it into something that could be used to direct and support vocabulary teaching and learning. It could also be developed further as more examples of practice emerge in different contexts and hopefully set the stage for more development about how vocabulary lists are used
    • …
    corecore