A talk with 3 titles By Patrick Prosser Research … how not to do it LDS revisited (aka Chinese whispers) Yet Another Flawed Talk by Patrick Prosser.

Slides:



Advertisements
Similar presentations
DCS Lecture how to solve it Patrick Prosser. Put a different number in each circle (1 to 8) such that adjacent circles cannot take consecutive numbers.
Advertisements

Slides by Peter van Beek Edited by Patrick Prosser.
Constraint Satisfaction Patrick Prosser. An Example, Exam Timetabling Someone timetables the exams We have a number of courses to examine how many? Dept.
How to finish your project on time ?
Backward Checking Search BT, BM, BJ, CBJ. An example problem Colour each of the 5 nodes, such that if they are adjacent, they take different colours 12.
Backward Checking Search BT, BM, BJ, CBJ. An example problem Colour each of the 5 nodes, such that if they are adjacent, they take different colours.
Branch-and-Bound In this handout,  Summary of branch-and-bound for integer programs Updating the lower and upper bounds for OPT(IP) Summary of fathoming.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
2. NP + to Vt + O + Prep NP + to Vi + Prep 1. be always/constantly + V-ing.
Multiplying with Integers
Lecture 12: Revision Lecture Dr John Levine Algorithms and Complexity March 27th 2006.
CP2014: Teaching CP. Context Final Year 120 credits (1 credit approx 10 hours) 30 credit project 4 modules in semester 1 4 modules in semester 2.
CPM!. Just do it! JChoco We jumped in, and took it for a spin Some counting problems Meeting scheduling problem … you got your hands dirty.
Foundations of Constraint Processing, Fall 2004 November 8, 2004Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Foundations of Constraint Processing, Fall 2005 October 20, 2005Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Constraint Satisfaction Problems
Other time considerations Source: Simon Garrett Modifications by Evan Korth.
1 Solving Ponnuki-Go on Small Board Paper: Solving Ponnuki-Go on small board Authors: Erik van der Werf, Jos Uiterwijk, Jaap van den Herik Presented by:
B-Trees. CSM B-Trees 2 Motivation for B-Trees So far we have assumed that we can store an entire data structure in main memory What if we have so.
Chapter 5 Outline Formal definition of CSP CSP Examples
Backtracking.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 2 Ryan Kinworthy CSCE Advanced Constraint Processing.
© J. Christopher Beck Lecture 19: Timetabling with Operator Constraints.
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
CRACKING THE CODING INTERVIEW Nitish Upreti. Nitish
Graph Colouring Various Models. an obvious model SAT sets demo random graphs chromatic number maxCol phase transition.
Constrainedness Including slides from Toby Walsh.
Scene from an imaginary dinghy race. Constructing Sailing Match Race Schedules Round-Robin Pairing Lists Craig Macdonald, Ciaran McCreesh, Alice Miller,
Problem Solving with Constraints Ordering heuristics1 Foundations of Constraint Processing CSCE496/896, Fall
Shop Scheduling Reformulation of Vehicle Routing Evgeny Selensky Dept of Computing Science Glasgow University.
B-Trees. CSM B-Trees 2 Motivation for B-Trees So far we have assumed that we can store an entire data structure in main memory What if we have so.
I am Patrick Prosser I am a senior lecturer at Glasgow (and Strathclyde till mid April) I teach algorithms & data structures in java I am a member of.
Constraint Satisfaction Read Chapter 5. Model Finite set of variables: X1,…Xn Variable Xi has values in domain Di. Constraints C1…Cm. A constraint specifies.
1 Steiner Tree Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Problem Solving with Constraints Lookahead Schemas 1 Foundations of Constraint Processing CSCE496/896, Fall
B-Trees. Motivation for B-Trees So far we have assumed that we can store an entire data structure in main memory What if we have so much data that it.
B-Trees. CSM B-Trees 2 Motivation for B-Trees So far we have assumed that we can store an entire data structure in main memory What if we have so.
CP Summer School Modelling for Constraint Programming Barbara Smith 4. Combining Viewpoints, Modelling Advice.
lds revisited (aka chinese whispers) Send reinforcements. We’re going to advance.
Revision How to help yourself learn. Barriers to learning.
CSE 461 University of Washington1 Topic How do we connect nodes with a switch instead of multiple access – Uses multiple links/wires – Basis of modern.
Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer.
Foundations of Constraint Processing Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Spring
Ian F. C. Smith Preparing and presenting a poster.
2101INT – Principles of Intelligence Systems Lecture 3.
Put a different number in each circle (1 to 8) such that adjacent circles cannot take consecutive numbers.
Eliminating non- binary constraints Toby Walsh Cork Constraint Computation Center.
Foundations of Constraint Processing, Spring 2008 Feb 11, 2008 Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Spring 2008:
Shortcomings of Traditional Backtrack Search on Large, Tight CSPs: A Real-world Example Venkata Praveen Guddeti and Berthe Y. Choueiry The combination.
Where are the hard problems?. Remember Graph Colouring? Remember 3Col?
INTRO2CS Tirgul 8 1. Searching and Sorting  Tips for debugging  Binary search  Sorting algorithms:  Bogo sort  Bubble sort  Quick sort and maybe.
Code: BCA302 Data Structures with C Prof. (Dr.) Monalisa Banerjee By.
Where are the hard problems?
CSC317 Greedy algorithms; Two main properties:
I am a senior lecturer at Glasgow
Lesson Objectives Aims – Know about…
I am a senior lecturer at Glasgow
CSCI1600: Embedded and Real Time Software
Computer Science cpsc322, Lecture 13
Other time considerations
Computer Science Testing.
Constraint Satisfaction Problems
Foundations of Constraint Processing All questions to Piazza
Constraints and Search
at Glasgow (and Strathclyde till mid April)
Artificial Intelligence
Foundations of Constraint Processing All questions to Piazza
B-Trees.
CSCI1600: Embedded and Real Time Software
Presentation transcript:

A talk with 3 titles By Patrick Prosser

Research … how not to do it LDS revisited (aka Chinese whispers) Yet Another Flawed Talk by Patrick Prosser

Send reinforcements. We’re going to advance.

Send three and fourpence. We’re going to a dance!

A refresher Chronological Backtracking (BT) what’s that then? when/why do we need it? Quick Intro Limited Discrepancy Search (lds) what’s that then Then the story … how not to do it

An example problem (to show chronological backtracking (BT)) Colour each of the 5 nodes, such that if they are adjacent, they take different colours

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v5

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v5

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v5

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v5

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v

A Tree Trace of BT (assume domain ordered {R,B,G}) v1 v2 v3 v4 v

Could do better Improvements: when colouring a vertex with colour X remove X from the palette of adjacent vertices when selecting a vertex to colour choose the vertex with the smallest palette tie break on adjacency with uncoloured vertices An inferencing step A heuristic (Brelaz) Conjecture: our heuristic is more reliable as we get deeper in search

What’s a heuristic?

Limited Discrepancy Search (LDS)

Motivation for lds

Motivation for LDS

LDS show the search process assume binary branching assume we have 4 variables only assume variables have 2 values each Limited Discrepancy Search

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take no discrepancies (go with the heuristic, go left!)

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take no discrepancies

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take no discrepancies

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take no discrepancies

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 1 discrepancy

Now take 2 discrepancies

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 2 discrepancies

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 2 discrepancies

Limited Discrepancy Search (LDS)Ginsberg & Harvey Take 2 discrepancies

First proposal For discrepancies 0 to n

First proposal For discrepancies 0 to n k is remaining discrepancies

First proposal For discrepancies 0 to n k is remaining discrepancies Go with heuristic

First proposal For discrepancies 0 to n k is remaining discrepancies Go with heuristic Go against then go with

The lds search process: how it goes (a cartoon)

The lds search process: how it goes NOTE: lds revisits search states with k discrepancies When searching with > k discrepancies

My pseudo code

lds revisits nodes: Korf’s improvement (AAAI 96)

Korf’s improvement

Korf’s 1 st mistake! Woops! Do you see it? He’s taking his discrepancies late/deep!

Wrong way round. Is that important? Harvey & Ginsberg Korf

Korf’s 1 st mistake! Wrong way round Richard

Richard, was that a bug?

Yes, but so?

Korf’s 2 nd bug

Woops! Richard, you know there is another bug?

My pseudo code

Has anyone noticed Korf’s bug? Have people been using Korf’s LDS? Have people been using Harvey & Ginsberg’s LDS? Has anyone remembered the motivation for LDS?

Chris, late or early?

Wafa, late or early?

Wafa’s response

My pseudo code I think this has not been reported

Does it make a difference if we take discrepancies late or early? An empirical study Tests Harvey & Ginsberg’s motivation for LDS

Car Sequencing Problem Assessed exercise 2

My empirical study on car sequencing problems Using various search algorithms, heuristics. Question: does the order (late/early) that we take discrepancies in lds matter? is the order sensitive to the heuristics used?

Performing the experiments (what’s involved) code up lds in JChoco for non-binary domains paramaterised late/early discrepancies using Korf’s improvement code up model of car sequencing problem using Pascal Van Hentenryk’s model code up my BT (as a gold standard) code up a certificate checker is a solution a solution? code up 4 different heuristics 2 published heuristics for car sequencing the 2 anti-heuristics Perform experiments on benchmark problems limits on CPU time (minutes sometimes hours per instance) test that all solutions are solutions (paranoia?) problems typically have 200 cars (non-trivial) NOTE TO SELF also did Golomb rulers started on HC did this to show results were general and not car seqn specific

and now the results …

Well, did you see a pattern? If there is no pattern what does this say about H&G’s hypothesis? And, if no pattern, why is lds any good?

See anything?

Got my act together for ECAI08 reject

How about another problem domain? Hamiltonian Circuit ecai08 rejects

What’s involved? ecai08 rejects

HCP: What’s involved? constraint model, single successor subtour elimination constraint heuristic constraint model maintains information resultant model is then Algorithm 595 (a surprise) locate benchmark problems perform experiments late v early discrepancies heuristics static v dynamic ecai08 rejects

Still to do lds - extremely early and extremely late jobshop scheduling using Cheng & Smith’s heuristic repeat H & G’s experiments going late/early number partitioning with CKK repeat Korf’s experiments going late/early fair bit of implementation and analysis 2 months work at least should get 2 more tables might get new ****09 rejection 

What lessons can we learn? we can just follow on without question (read the most recent paper) forget the basic/initial hypothesis forget to really look at our results take too much for granted it is not uninteresting to repeat someone elses’s experiments. do not be frightened or disinterested in –ve results or different results (above) don’t do just one set of experiments when you can do many (different domains) published papers may have multiple errors (beware) be paranoid (Am I right? Is he right? How do I know I’m right?) know that we are human

Latest reject Available from the kiosk ecai08 rejects

Start without me Questions?