Modeling the Covering Test Problem Brahim Hnich, Steven Prestwich, and Evgeny Selensky Cork Constraint Computation Center UCC Supported by SFI.

Slides:



Advertisements
Similar presentations
The Complexity of Linear Dependence Problems in Vector Spaces David Woodruff IBM Almaden Joint work with Arnab Bhattacharyya, Piotr Indyk, and Ning Xie.
Advertisements

Copyright 2000 Cadence Design Systems. Permission is granted to reproduce without modification. Introduction An overview of formal methods for hardware.
1D Bin Packing (or “CP? Who cares?”)
Global Constraints Toby Walsh National ICT Australia and University of New South Wales
Case study 5: balanced academic curriculum problem Joint work with Brahim Hnich and Zeynep Kiziltan (CPAIOR 2002)
November 5, 2007 ACM WEASEL Tech Efficient Time-Aware Prioritization with Knapsack Solvers Sara Alspaugh Kristen R. Walcott Mary Lou Soffa University of.
Leeds: 6 June 02Constraint Technology for the Masses Alan M. Frisch Artificial Intelligence Group Department of Computer Science University of York Collaborators:
1 MERLIN A polynomial solution for the Traveling Salesman Problem Dr. Joachim Mertz, 2005.
Greedy Algorithms Basic idea Connection to dynamic programming
Transforming and Refining Abstract Constraint Specifications Alan Frisch, Brahim Hnich*, Ian Miguel, Barbara Smith, and Toby Walsh *Cork Constraint Computation.
1 2 Extreme Pathway Lengths and Reaction Participation in Genome Scale Metabolic Networks Jason A. Papin, Nathan D. Price and Bernhard Ø. Palsson.
Constraint Models for the Covering Test Problems Authors: Brahim Hnich, Steven D. Prestwich, Evgeny Selensky, Barbara M. Smith Speaker: Pingyu Zhang CSE.
Methods for SAT- a Survey Robert Glaubius CSCE 976 May 6, 2002.
Alan M. Frisch Artificial Intelligence Group Department of Computer Science University of York Extending the Reach of Constraint Technology through Reformulation.
Optimizing General Compiler Optimization M. Haneda, P.M.W. Knijnenburg, and H.A.G. Wijshoff.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
Computational Methods for Management and Economics Carla Gomes
Matrix Modelling Alan M. Frisch and Ian Miguel (York) Brahim Hnich, Zeynep Kiziltan (Uppsala) Toby Walsh (Cork)
Matrix Modelling Pierre Flener (Uppsala) Alan M. Frisch (York) Brahim Hnich, Zeynep Kiziltan (Uppsala) Ian Miguel, and Toby Walsh (York)
Jean-Charles REGIN Michel RUEHER ILOG Sophia Antipolis Université de Nice – Sophia Antipolis A global constraint combining.
Modelling and Solving English Peg Solitaire Chris Jefferson, Angela Miguel, Ian Miguel, Armagan Tarim. AI Group Department of Computer Science University.
Computational Methods for Management and Economics Carla Gomes
Preference Analysis Joachim Giesen and Eva Schuberth May 24, 2006.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
CGRASS A System for Transforming Constraint Satisfaction Problems Alan Frisch, Ian Miguel (York) Toby Walsh (Cork)
Finding Protection Cycles in DWDM Networks 2002 IEEE ICC on Volume 5, 28 April-2 May Page(s): Reporter: Jyun-Yong Du.
Matrix Modelling: Déjà Vu Pierre Flener (Uppsala) Alan M. Frisch (York) Brahim Hnich, Zeynep Kiziltan (Uppsala) Ian Miguel, and Toby Walsh (York)
Global Constraints for Lexicographic Orderings Alan Frisch, Ian Miguel (University of York) Brahim Hnich, Toby Walsh (4C) Zeynep Kiziltan (Uppsala University)
1 Combinatorial Problems in Cooperative Control: Complexity and Scalability Carla Gomes and Bart Selman Cornell University Muri Meeting March 2002.
Cardinality & Sorting Networks. Cardinality constraint Appears in many practical problems: scheduling, timetabling etc’. Also takes place in the Max-Sat.
Ger man Aerospace Center Gothenburg, April, 2007 Coding Schemes for Crisscross Error Patterns Simon Plass, Gerd Richter, and A.J. Han Vinck.
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Deciding ILPs with Branch & Bound ILP References: ‘Integer Programming’
Job Shop Reformulation of Vehicle Routing Evgeny Selensky University of Glasgow
Decision Procedures An Algorithmic Point of View
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
Symmetry Breaking Ordering Constraints Zeynep Kiziltan Department of Information Science Uppsala University, Sweden A progress.
Transformation of Timed Automata into Mixed Integer Linear Programs Sebastian Panek.
Modelling for Constraint Programming Barbara Smith CP 2010 Doctoral Programme.
Disclosure risk when responding to queries with deterministic guarantees Krish Muralidhar University of Kentucky Rathindra Sarathy Oklahoma State University.
Télécom 2A – Algo Complexity (1) Time Complexity and the divide and conquer strategy Or : how to measure algorithm run-time And : design efficient algorithms.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
CP Summer School Modelling for Constraint Programming Barbara Smith 4. Combining Viewpoints, Modelling Advice.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
3.3 Implementation (1) naive implementation (2) revised simplex method
1 1 Slide © 2005 Thomson/South-Western Linear Programming: The Simplex Method n An Overview of the Simplex Method n Standard Form n Tableau Form n Setting.
Chapter 4 Linear Programming: The Simplex Method
Weikang Qian. Outline Intersection Pattern and the Problem Motivation Solution 2.
Linear Program Set Cover. Given a universe U of n elements, a collection of subsets of U, S = {S 1,…, S k }, and a cost function c: S → Q +. Find a minimum.
Quality of LP-based Approximations for Highly Combinatorial Problems Lucian Leahu and Carla Gomes Computer Science Department Cornell University.
Implicit Hitting Set Problems Richard M. Karp Erick Moreno Centeno DIMACS 20 th Anniversary.
CP Summer School Modelling for Constraint Programming Barbara Smith 3. Symmetry, Viewpoints.
272: Software Engineering Fall 2012 Instructor: Tevfik Bultan Lecture 9: Test Generation from Models.
Large-Scale Matrix Factorization with Missing Data under Additional Constraints Kaushik Mitra University of Maryland, College Park, MD Sameer Sheoreyy.
Eliminating non- binary constraints Toby Walsh Cork Constraint Computation Center.
Solving the Logic Satisfiability problem Solving the Logic Satisfiability problem Jesus De Loera.
Chapter 13 Backtracking Introduction The 3-coloring problem
Lecture 2 Algorithm Analysis Arne Kutzner Hanyang University / Seoul Korea.
Custom Computing Machines for the Set Covering Problem Paper Written By: Christian Plessl and Marco Platzner Swiss Federal Institute of Technology, 2002.
10.3 Reformulation The Lex-Leader Method Shant Karakashian 1.
C&O 355 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
Tommy Messelis * Stefaan Haspeslagh Burak Bilgin Patrick De Causmaecker Greet Vanden Berghe *
Computational Geometry
Sudoku Solutions Using Logic Equations Christian Posthoff The University of The West Indies, Trinidad & Tobago Bernd Steinbach Freiberg University of Mining.
Lecture 2 Algorithm Analysis
C. Kiekintveld et al., AAMAS 2009 (USC) Presented by Neal Gupta
Inference and search for the propositional satisfiability problem
Rule Induction for Classification Using
Chapter 4 Linear Programming: The Simplex Method
Branch and Bound.
Presentation transcript:

Modeling the Covering Test Problem Brahim Hnich, Steven Prestwich, and Evgeny Selensky Cork Constraint Computation Center UCC Supported by SFI

Overview Motivation Problem description CP models Naïve model Alternative model Integrated model Symmetry Results Local search approach

Motivation Software and hardware testing: important activity in product development process E.g., s/w testing consumes up to 50% of overall cost Exhaustive testing is infeasible Large number of possible test cases 10 on/off switches lead to 2 10 possible combinations

Motivation To be practical small number of possible test cases such that A small number (3) on/off switches get exercised in all possible 2 3 combinations The question becomes How many test cases do we need? This problem is an instance of the covering arrays problem

Covering array A covering array of size b is: An kxb array (k vectors of length b) Each entry is drawn from {0,…,g-1} The projection of any t coordinates contains all g t possibilities

Covering array: example A covering array of size 10 is:

Covering array: example A covering array of size 10 is:

Covering array: example A covering array of size 10 is:

Covering array: example A covering array of size 10 is:

Covering array: example A covering array of size 10 is:

Covering array: example A covering array of size 10 is:

Covering array: example A covering array of size 10 is:

Covering array: example A covering array of size 10 is:

Covering array: example A covering array of size 10 is:

CP models: naïve model {0,…,g-1} … … … b k M[b,k]

Coverage constraints For every t columns c1,…,ct For every row r For each possible combination p Introduce a Boolean variable B Use reification constraints to state that combination p is true iff Boolean variable B is set to 1 B=1 iff (M[r,c1]= 0 and M[r,c2]=0 and …. And M[r,ct]=0) Enforce that the sum of the Booleans associated with each combination p is at least 1 Too many auxiliary variables Inefficient propagation

Row and column symmetry The naïve matrix model has both row and column symmetry Any permutation of the rows does not affect the set of solutions Any permutation of the columns does not affect the set of solutions Reduce this symmetry: double-lex Lexicographically order the rows Lexicographically order the columns

CP models: alternative model …… 0{0..7}{0,…,g t -1}……… 0{0..7} ……… 1 ……… 2 ……… 3 ……… 4 ……… 5 ……… 6 ……… 7 ….…… b k choose t

Coverage constraints For each column State a global cardinality constraint enforcing that each value occurs between 1..b-2 t +1 times Global constraint Efficient propagation Effective pruning

Intersection constraints Because our columns intersect E.g. and Their values should agree

Symmetry in alternative matrix Rows are still symmetric Lexicographic ordering the rows However, columns are no longer symmetric But, the column symmetry in the naïve model is now a complex symmetry A complex combination of partial column symmetry and value symmetry Difficult to break!

Comparison Naïve model Coverage constraints  Symmetry Row symmetry Column symmetry Alternative model Coverage constraints Intersection constraints  Symmetry Row symmetry Complex symmetry 

Integrated model Naïve model Coverage constraints  Symmetry Row symmetry Column symmetry Alternative model Coverage constraints Intersection constraints  Symmetry Row symmetry Complex symmetry 

Integrated model Naïve model Coverage constraints  Symmetry Row symmetry Column symmetry Alternative model Coverage constraints Intersection constraints  Symmetry Row symmetry Complex symmetry  Channelling constraints  Increased number of variables 

Integrated model Naïve model Symmetry Row symmetry Column symmetry Alternative model Coverage constraints Channelling constraints  Increased number of variables 

CP models: channelling Column Column 1Column 2Column

Experiments Moderate sized instances Naïve model is very inefficient The integrated model is al least one order of magnitude faster than the alternative model New results for t=3 and k <12 Larger Instances Beyond 2000 variables Amount of search is computationally prohibitive

A local search approach An almost “SAT-encoding” of the integrated model The upper bound on the coverage constraints are hard to express (implied constraint) No symmetry breaking No at most one clauses … details in the paper

Local search: results Run model on Walksat reproduced bounds found by solver Solves several larger instances with better results than the state of the art No proof of optimality though!

Conclusion The covering test problem A core problem in combinatorial software testing CP approach Integrated model was able to prove optimality and improve bounds for moderate size instances Local search approach Improved bounds for larger instances Future Push the models further to solver larger instances