Genetic Algorithms for Map Labeling Steven van Dijk 10th December - - PDF document

genetic algorithms for map labeling
SMART_READER_LITE
LIVE PREVIEW

Genetic Algorithms for Map Labeling Steven van Dijk 10th December - - PDF document

Genetic Algorithms for Map Labeling Steven van Dijk 10th December 2001 Typeset by Foil T EX Outline of talk What is the map-labeling problem? What are genetic algorithms (GAs)? A GA for the basic


slide-1
SLIDE 1

Genetic Algorithms for Map Labeling

Steven van Dijk 10th December 2001

– Typeset by FoilT

EX –

slide-2
SLIDE 2

Outline of talk

  • What is the map-labeling problem?
  • What are genetic algorithms (GAs)?
  • A GA for the basic map-labeling problem.
  • Does the algorithm scale well?
  • Application of techniques to other problems.
  • A GA for labeling a map with cities and rivers.
  • Conclusion.

– Typeset by FoilT

EX –

1

slide-3
SLIDE 3

What is the map-labeling problem?

  • A map contains point-, line- and area features.

The depiction of the feature name on the map is called its label.

  • The map-labeling problem: place the labels of the

features on the map.

Delft Vlaardingen Schiedam Dordrecht Gouda

Hoogvliet Sliedrecht Zwijndrecht Middelharnis

Hoek van Holland

ROTTERDAM

Z u i d - H o l l a n d

N i e u we W a t e r w e g H a r t e l k a n a a l

H a r i n g v l i e t

S p u i O u d e M a a s

– Typeset by FoilT

EX –

2

slide-4
SLIDE 4

What is the map-labeling problem?

Why is this a difficult problem?

  • 1. Even basic instances are NP-hard. (Exhaustive

search has exponential scale-up.)

  • 2. There exist numerous cartographic rules which

need to be considered.

Delft Vlaardingen Schiedam Dordrecht Gouda

Hoogvliet Sliedrecht Zwijndrecht Middelharnis

Hoek van Holland

ROTTERDAM

Z u i d - H o l l a n d

N i e u we W a t e r w e g H a r t e l k a n a a l

H a r i n g v l i e t

S p u i O u d e M a a s

– Typeset by FoilT

EX –

3

slide-5
SLIDE 5

What is the map-labeling problem?

The basic map-labeling problem: given is a set of points in the plane. Each point has a rectangular la- bel of fixed dimensions which can be placed in one

  • f four positions. Find a labeling which assigns a po-

sition to the label of each point such that the number

  • f free labels is maximized.

– Typeset by FoilT

EX –

4

slide-6
SLIDE 6

What are genetic algorithms (GAs)?

Genetic algorithms are heuristic solvers for combi- natorial problems, based on the theory of Darwinian evolution. Outline of algorithm:

1: initialize population of solutions 2: repeat 3:

select parents from population

4:

with probability Prc perform crossover and gen- erate children

5:

with probability Prm perform mutation on chil- dren

6:

replace members

  • f

population with chil- dren

7: until termination criterion satisfied 8: return best individual

– Typeset by FoilT

EX –

5

slide-7
SLIDE 7

What are genetic algorithms (GAs)?

Why do GAs work?

  • Schema theorem:

partial solutions which con- tribute much to the fitness and are unlikely to be disrupted will propagate through the population. (Result of selection.)

  • Building block hypothesis: (close-to) optimal solu-

tions are assembled from partial solutions by the

  • GA. (Result of crossover.)

Disruptive crossover: Perfect crossover: Shaded parts are building blocks.

– Typeset by FoilT

EX –

6

slide-8
SLIDE 8

What are genetic algorithms (GAs)?

Key concepts:

  • Linkage: what is are the building blocks and how

can they be preserved from disruption?

  • Mixing: assure that parts are exchanged quickly

enough to allow assembly. Disruptive crossover: Perfect crossover:

– Typeset by FoilT

EX –

7

slide-9
SLIDE 9

A GA for the basic map-labeling problem.

Encoding:

1 4 2 4 2

Initialization: assign a random position to each la- bel. Selection: elitist recombination (see below). Crossover: rival crossover (see later). Mutation: no traditional mutation.

– Typeset by FoilT

EX –

8

slide-10
SLIDE 10

A GA for the basic map-labeling problem.

Crossover is done by repeatedly choosing rival

  • groups. Two points are rivals if their labels can over-
  • lap. A point together with its rivals is called a rival

group.

q p r

Crossover is complementary: half of a parent is copied to a child and the other half is copied from the other parent.

Parents: Children:

– Typeset by FoilT

EX –

9

slide-11
SLIDE 11

A GA for the basic map-labeling problem.

After crossover the geometrically local optimizer is applied to points which may have a conflict.

Parents: Children:

The geometrically local optimizer for the map- labeling problem is slot filling:

– Typeset by FoilT

EX –

10

slide-12
SLIDE 12

A GA for the basic map-labeling problem.

Results: comparison against best algorithm at the time (based on simulated annealing).

– Typeset by FoilT

EX –

11

slide-13
SLIDE 13

Does the algorithm scale well?

Design of GA allows an analysis of its scale-up be- havior: what happens to run time when input is dou- bled?

RT

  • efit
✁ n ✂ ✁ t ✂ ✄

where

RT

  • run time,

efit

  • time needed for a single fitness evalua-

tion,

n

  • critical population size, and

t

  • number of generations when n
  • n
✂ .

Every term is dependent on l, the input size (number

  • f cities).

– Typeset by FoilT

EX –

12

slide-14
SLIDE 14

Does the algorithm scale well?

How do the terms of the formula scale?

  • efit
  • O
l ✁ , since each city can be checked in con-

stant time.

  • n
✂ : If the gambler’s-ruin model can be applied,

prediction is O

  • ✂ l
✁ .
  • t
✂ : If convergence models can be applied, predic-

tion is O

  • ✂ l
✁ .

Therefore, run time is quadratic: RT

  • O
l2 ✁ ☎

Double input

four times the computation time. Compare with exponential scale-up of exhaustive search. Question: can the models be applied?

– Typeset by FoilT

EX –

13

slide-15
SLIDE 15

Does the algorithm scale well?

Question: can the models be applied?

n

✂ :

t

✂ :

Short answer: YES.

– Typeset by FoilT

EX –

14

slide-16
SLIDE 16

Does the algorithm scale well?

Assumptions of models can be satisfied because:

  • Fitness function can be kept simple (uniformly

scaled, semi-separable, and additively decom- posable).

  • Crossover is linkage-respecting and mixes well.
  • Disruption is minimized by the geometrically local
  • ptimizer.

Bottom line: theoretical insights can be used to de- sign efficient genetic algorithms for real-world prob- lems.

– Typeset by FoilT

EX –

15