48
Planning your route: where to start? Lahari Sengupta Radu Mariescu-Istodor Pasi Fränti 14.3.2019 L. Sengupta, R. Mariescu-Istodor and P. Fränti, "Planning your route: where to start?" Computational Brain & Behavior, 1 (3-4), 252-265, December 2018.

Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Planning your route: where to start?

Lahari SenguptaRadu Mariescu-Istodor

Pasi Fränti

14.3.2019

L. Sengupta, R. Mariescu-Istodor and P. Fränti, "Planning your route: where to start?" Computational Brain & Behavior, 1 (3-4), 252-265, December 2018.

Page 2: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

What is O-Mopsi?

Page 3: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Classical orienteeringDevices: Map and compass

Targets brought to nature for the event

• Find all controls• In pre-defined order• Fastest wins

Presenter
Presentation Notes
Motivation: Orienteering is difficult to create and maintain. Easier with O-Mopsi. Control points may be lost. Targets might become outdated in O-Mopsi. Not everyone can play the game at 17:00. In O-Mopsi you can play at any time. Disadvantages: Battery, Weather,
Page 4: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Mopsi orienteering (O-Mopsi)

• Find all controls• In free order• Fastest wins

Picturesof targets

Targets real objects

Smartphone and GPS

Page 5: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Challenges of playing

Orienteering:• Knowing your location• Optimizing paths to targets

?

O-Mopsi:• Finding best order• Optimizing paths to targets

Page 6: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Winning the game

Page 7: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

What matters

Order of visiting targets- Travelling salesman problem (TSP)- Human strategies: nearest neighbor, clustering- Computer strategies: optimal, optimization

Where to start playing- Remove longest edge from TSP?- Blind selection- Comparison of various heuristics

Navigating to targets- Effects of routing

250 m

228 m

250 m

228 m

Corner

? Center

Shortedge

Page 8: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Order of targets

Page 9: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

? Bounding box

Player

Page 10: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Terminal point

Terminal point

Bounding box

Optimal tour(2.9 km)

Player

Page 11: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Algorithmic problem

• Minimize total distance• With N targets there are N! possible orders• Variant of travelling salesman problem (TSP)

250 m250 m

228 m

30 m

478 m 280 m

Page 12: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Algorithmic problem

• Minimize total distance• With N targets there are N! possible orders• Variant of travelling salesman problem (TSP)

250 m250 m

228 m

30 m

478 m 280 m

N = 10 N!= 3,628,800

Page 13: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Nearest target strategy

Optimal order

4 km

5 km

How much it matters?

12

3

1

2

3

• More targets,harder to solve

• Nearest target strategy

• 24% longer than optimal (on average)

• Median: 20%

• Minimum: 0.06%• Maximum: 109%

?

Game NT (km)

Opt. (km) Diff.

Scifest 2014 short

1.14 0.97 17%

Helsinki downtown 4.97 4.08 22%

Page 14: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Navigating to the targets

Page 15: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

?

Fastest route?

Page 16: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

• Buildings and small housing in city area• Real distance on ~50% longer than bird’s distance• Can also affect the order of the targets

411 m 752 m

Routing vs. Bird’s distance

Bird distance Routing

Page 17: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Effect of route network Start point changes

13.4 km

Bird distance Routing

21.4 km

Page 18: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Limitations of routing

No routes viaopen plaza

No shortcuts

Limitations in street crossing

Page 19: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Bird’s distance Road distance Real lifeBird’s distance Road distance Real life

Examples of the limitations

Page 20: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Effect of transport mode

Routing by car

Shorter routing by walk

Page 21: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Effect of starting point

Page 22: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Where to start?

Before start

• Targets not visible before start (if known, can start at one target)

• No time for planning route (Time starts when game opens)

• Ony game area shown (bounding box)

• Start must be chosen blindly

After start

Bounding box

Page 23: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Start point strategy 1 Center of the area

Center

?

1.105 km

Page 24: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Corner

Start point strategy 2 Corner of the area

?

1.053 km

Page 25: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Shortedge

Start point strategy 3 Somewhere at the shorter edge

?

976 m

Page 26: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Start point matters

xmax

xminymin

ymax

Likely direction of optimal route

• Every side has at least one target• Optimal order likely to go along longer side

(rather than random zig zag)

• Heuristic: Start from the shorter side

Longer side

Shorter side

Start

Page 27: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Optimal start point located:

First/last target on corners: 42%First/last target along the long side: 22 %First/last target along the short side: 29 %Some other target: 7 %

Start point statistics according to target location

Page 28: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Game  Area

20% of the Height

20% of The width

Game area Divided into 5x5 grid

Page 29: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

20% of the Height

20% of The width

Labeling grid cells Corner, middle, long and short edge

Corner Long edge Corner

Short  edge Middle Short 

edge

Corner Long edge Corner

Page 30: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Start point examples

Page 31: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Start point statistics according to grid

• Calculate optimal tour• Divide the area into 20%20% grid• Locate the start and end points of the tour in the grid

Page 32: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

3 km

2.2 km

Terminal  point

Terminal point

Optimal tour

Closed-loop case Open-loop case

Page 33: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Original problem Added large constant to start node

Phantom node added

Solve it by ConcordePhantom node removedRemoved large constant from start node

Original problemOriginal problem Added large constant to start node

Added large constant to start node

Phantom node addedPhantom node added

Solve it by ConcordeSolve it by ConcordePhantom node removedPhantom node removedRemoved large constant from start node

Removed large constant from start node

Solving the optimal tour Using Concorde algorithm

Page 34: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Optimum vs. player’s choice

Page 35: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Computer performance

Page 36: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Location of terminal points

AR = Aspect ratio = width/height

AR=1

AR=0.5

AR=2.0

Page 37: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Human performance Average performance

Page 38: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Corner to same side corner

Corner to opposite long edge

Corner to opposite corner

Corner to opposite short edge Corner to adjacent long edge

Corner to adjacent short edge

Short edge to short edge

Long edge to short edge

Corner to…• opposite corner• opposite short edge• opposite long edge

45%

Corner to…• same side corner• adjacent long edge• adjacent short edge

30%

Short edge to…• short edge• long edge

17%

Most common optimal patterns

Page 39: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Human performance

Page 40: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Experimental setupVisible task

• Student volunteers (30)• Design and Analysis of Algorithms course

• Player selects only start point• Concorde algorithm solves

the rest of the tour

• Calculate the gap between the resulting tour and the optimum

Page 41: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Experimental setupBlind task

• Player sees only the bounding box!

• Otherwise the same test setup

• Significantly more challenging

Page 42: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

0 %

1 %

2 %

3 %

4 %

5 %

6 %

7 %

Visible

Blind

Topgroup

Bottom group

Human performance (gap)

Page 43: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

0%

20%

40%

60%

80%

100%

0% 20% 40% 60% 80% 100%Exam result

Am

ount

sol

ved

(%)

High gradeLow grade

Visible

Bottom‐group

Top group

Correlation to study results Design and Analysis of Algorithms

Page 44: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

0%

20%

40%

60%

80%

100%

0% 10% 20% 30% 40% 50% 60%Furthest point chosen

Am

ount

sol

ved

(%)

High gradeLow grade

Visible

0%

20%

40%

60%

80%

100%

0% 20% 40% 60% 80% 100%Convex Hull point chosen

Am

ount

sol

ved

(%)

High gradeLow grade

Visible

Effect of playing strategy

Furthest pointstrategy

Points on convex hull

Page 45: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Summary of affecting factors

Page 46: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Exam resultCorner point

strategy

0%

10%

20%

30%

40%

50%

60%

0 % 20 % 40 % 60 % 80 % 100 %Exam result

Am

ount

sol

ved

(%)

High gradeLow grade

Blind

0%

10%

20%

30%

40%

50%

60%

70% 80% 90% 100%Corner chosen

Am

ount

sol

ved

(%)

High gradeLow grade

Blind

Blind performance

Page 47: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

What did we learn?

Page 48: Where to Start? - UEFcs.uef.fi/sipu/pub/WhereToStart-presentation.pdf · Divided into 5x5 grid. ... Original problem Added Phantomlarge Phantomconstant Phantom to start node node

Conclusions

• Selecting the start point surprisingly tricky

• Best human strategies: Visible: Furthest points and convex hull Blind: Corner!

• Best computer strategy (blind): Shortest edge