Saltar al contenido ForoHackers

Can I put a negative road into my trolley map so it prefers the lift?

AlgoritmosTeoría de grafos
#7826 · · Citar · Denunciar

In my toy aisle graph I want the route to prefer the lift. I wrote minus two for the journey up, minus two for the journey down. There's still a positive cost to go to the bread. As far as I can tell the cheapest shop in town involves never buying any bread again.

#8047 · · Citar · Denunciar

Up plus down is minus four. Any route through the lift is "improved" by inserting that round trip again. There isn't a cheapest finite route under those costs. What real thing are you trying to minimise?

#8048 · · Citar · Denunciar

Carrying a crate up the stairs. can give the stairs a positive cost for that instead. Hadn't occurred to me that I built a lift which issues store credit.

#8049 · · Citar · Denunciar

I enter with an empty trolley and leave six weeks later as your landlord.

#8055 · · Citar · Denunciar

Stairs now cost eight, lift costs two either way. no free flat for @Fezzap. The route does still go down in the lift and up the moving walkway because I forgot to say it only goes down. New department, same wages.

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder