Re: proper name of a "k-stops bus route" optimization problem?



cerios <spamfree@xxxxxxxxxxx> writes:


Hello,

I have an optimization problem that I think is equivalent to
the problem of choosing stops for a bus:

There are N possible stops, ordered,
and the bus is required to make exactly K (<N) stops.
The cost of travelling from any stop to another is known.

.... and you want to minimize the total cost?

Does this problem have a standard name?

The Floyd/Dijkstra problems come to mind, but I think
they are actually different in that the current
in problem exactly K stops are required.

Floyd's and Dijkstra's are algorithms, not problems AFAIK.
The problems are called shortest-path problems.

In this case you can make it into a shortest-path problem
with N K vertices: vertex (j,k) for 1<=j<=N, 1<=k<=K corresponds
to making your k'th stop at stop number j. Directed edges go
from (i,k) to (j,k+1) with the cost of going from stop i to stop j.

Dynamic programming provides an easy solution. If c(i,j) is the
cost of going from i to j and X(i,j,k) is the minimum cost of
going from i to j in exactly k steps, then X(i,j,1) = c(i,j) and
X(i,j,k+1) = min_{j'} (X(i,j',k) + c(j',j)).
--
Robert Israel israel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia Vancouver, BC, Canada V6T 1Z2
.



Relevant Pages

  • Re: [bername] How Thinkers In Malaysia Think
    ... you admit that you don't have answer for things like cost of building the speed train system and the locations of the stops, ... and the locations of the stops, ...
    (soc.culture.malaysia)
  • lookup/total
    ... I have a list of employees and they all work for different ... In column D is there company and in column E is the cost to ... value in column E. Once it hits the bottom of the range, it stops ... totaling. ...
    (microsoft.public.excel.misc)
  • Re: Canon telephoto zoom
    ... maximum zoom, but that will cost you more money, and a couple ... of stops. ... David Littlewood ...
    (rec.photo.equipment.35mm)
  • Re: Complusory Bus Stops
    ... All buses SHOULD stop at a bus stop if it looks like someone wishes to ... difference between Bus Stops and Request Stops. ... Bus stop flags at Bus Stops consist of a red roundel on a white background with "Bus Stop" underneath; bus stop flags at Request Stops consist of a white roundel on a red background with "Request Stop" underneath. ... Buses will stop without a signal for pedestrians waiting at Bus Stops; buses will not stop without a signal for pedestrians waiting at request stops. ...
    (uk.transport.london)
  • Re: Belgian?
    ... I rode a public bus to school and was familiar with this system. ... > The terms we used were: Compulsory stop and Request stop. ... > preferred the compulsory stops especially as a small child. ... > then life would be more comfortable and relaxed but the buses would be ...
    (sci.lang)