Complete.Org: Mailing Lists: Archives: freeciv-ai: April 2003:
[freeciv-ai] Re: [RFC] Ferry code
Home

[freeciv-ai] Re: [RFC] Ferry code

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv AI development <freeciv-ai@xxxxxxxxxxx>
Subject: [freeciv-ai] Re: [RFC] Ferry code
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sun, 6 Apr 2003 11:39:01 +0000 (GMT)

On Sun, 6 Apr 2003, Raimar Falke wrote:
> > > > If for U you consider every boat B(i) (i: [0,n)), then you can pick the
> > > > optimal boat to get you where you want to go.This is an O(n)
> > > > operation, but probably no worse than having to look at every city on
> > > > your continent.
> > >
> > > Come to think of it, not much worse...
> >
> > If we cache the pf map for all ferries, we can just overlay this pf map
>
> You would have to invalide (and update at next use) this map after
> each move.

Why?

  - Per



[Prev in Thread] Current Thread [Next in Thread]