91
Research how not to do it

Research how not to do it

  • Upload
    rock

  • View
    24

  • Download
    0

Embed Size (px)

DESCRIPTION

Research how not to do it. Quick Intro. A refresher Chronological Backtracking (BT) what’s that then? when/why do we need it?. Limited Discrepancy Search (lds) what’s that then. Then the story … how not to do it. An example problem (to show chronological backtracking (BT)). 1. 2. - PowerPoint PPT Presentation

Citation preview

Page 1: Research how not to do it

Research

how not to do it

Page 2: Research how not to do it

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

Page 3: Research 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

1 2

3

4

5

Page 4: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

1 2

3

4

5

v1

v2

v3

v4

v5

Page 5: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

1 2

3

4

5

v1

v2

v3

v4

v5

Page 6: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

1 2

3

4

5

v1

v2

v3

v4

v5

Page 7: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

1 2

3

4

5

v1

v2

v3

v4

v5

Page 8: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

v1

v2

v3

v4

v5

1 2

3

4

5

Page 9: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

v1

v2

v3

v4

v5

1 2

3

4

5

Page 10: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

v1

v2

v3

v4

v5

1 2

3

4

5

Page 11: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

v1

v2

v3

v4

v5

1 2

3

4

5

Page 12: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

v1

v2

v3

v4

v5

1 2

3

4

5

Page 13: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

v1

v2

v3

v4

v5

1 2

3

4

5

Page 14: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

v1

v2

v3

v4

v5

1 2

3

4

5

Page 15: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

v1

v2

v3

v4

v5

1 2

3

4

5

Page 16: Research how not to do it

A Tree Trace of BT (assume domain ordered {R,B,G})

v1

v2

v3

v4

v5

1 2

3

4

5

Page 17: Research how not to do it

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

Page 18: Research how not to do it

What’s a heuristic?

Page 19: Research how not to do it

Limited Discrepancy Search (LDS)

Page 20: Research how not to do it
Page 21: Research how not to do it

Motivation for lds

Page 22: Research how not to do it

Motivation for LDS

Page 23: Research how not to do it

LDS

• show the search process• assume binary branching• assume we have 4 variables only• assume variables have 2 values each

Limited Discrepancy Search

Page 24: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take no discrepancies (go with the heuristic)

Page 25: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take no discrepancies

Page 26: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take no discrepancies

Page 27: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take no discrepancies

Page 28: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 29: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 30: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 31: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 32: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 33: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 34: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 35: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 36: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 37: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 38: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 39: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 1 discrepancy

Page 40: Research how not to do it

Now take 2 discrepancies

Page 41: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 2 discrepancies

Page 42: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 2 discrepancies

Page 43: Research how not to do it

Limited Discrepancy Search (LDS) Ginsberg & Harvey

Take 2 discrepancies

Page 44: Research how not to do it

First proposal

For discrepancies 0 to n

Page 45: Research how not to do it

First proposal

For discrepancies 0 to n

k is remaining discrepancies

Page 46: Research how not to do it

First proposal

For discrepancies 0 to n

k is remaining discrepancies

Go with heuristic

Page 47: Research how not to do it

First proposal

For discrepancies 0 to n

k is remaining discrepancies

Go with heuristic

Go against then go with

Page 48: Research how not to do it

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

Page 49: Research how not to do it

The lds search process: how it goes

NOTE: lds revisits search states with k discrepanciesWhen searching with > k discrepancies

Page 50: Research how not to do it

My pseudo code

Page 51: Research how not to do it

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

Page 52: Research how not to do it

Korf’s improvement

Page 53: Research how not to do it

Korf’s 1st mistake!

Woops!

Do you see it? He’s taking his discrepancies late/deep!

Page 54: Research how not to do it

Wrong way round.

Is that important?

Harvey & Ginsberg

Korf

Page 55: Research how not to do it

Korf’s 1st mistake!

Wrong way round Richard

Page 56: Research how not to do it

Richard, was that a bug?

Page 57: Research how not to do it

Yes, but so?

Page 58: Research how not to do it

Korf’s 2nd bug

Page 59: Research how not to do it

Woops!

Richard, you know there is another bug?

Page 60: Research how not to do it

Richard, you know there is another bug?

Page 61: Research how not to do it

Richard, are you there?

Page 62: Research how not to do it
Page 63: Research how not to do it

My pseudo code

Page 64: Research how not to do it

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?

Page 65: Research how not to do it
Page 66: Research how not to do it
Page 67: Research how not to do it
Page 68: Research how not to do it

Toby, do you do it late or early?

Page 69: Research how not to do it

Chris, late or early?

Page 70: Research how not to do it

Wafa, late or early?

Page 71: Research how not to do it

Wafa’s response

Page 72: Research how not to do it

My pseudo code

I think this has not been reported

Page 73: Research how not to do it

Does it make a difference if we take discrepancies late or early?

An empirical study

Tests Harvey & Ginsberg’s motivation for LDS

Page 74: Research how not to do it

Car Sequencing Problem

Assessed exercise 2

Page 75: Research how not to do it
Page 76: Research how not to do it
Page 77: Research how not to do it
Page 78: Research how not to do it
Page 79: Research how not to do it
Page 80: Research how not to do it
Page 81: Research how not to do it
Page 82: Research how not to do it
Page 83: Research how not to do it
Page 84: Research how not to do it
Page 85: Research how not to do it
Page 86: Research how not to do it

My empirical study on car sequencing problemsUsing 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?

Page 87: Research how not to do it
Page 88: Research how not to do it

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?

Page 89: Research how not to do it

See anything?

Page 90: Research how not to do it

What does this tell us about how we do research?

• we can just follow on without question (read the most recent paper)• forget the basic/initial hypothesis• forget to really look at our results

• we can be frightened or disinterested in –ve results• we can publish papers with multiple errors• we are human

Page 91: Research how not to do it