Live data from Hacker News

A Parable

cs.virginia.edu

1–10 of 83 posts

Re: A Parable

#6
post #3

I failed to understand the solution :(

Two cars were coupled together correctly (i.e. car with toilet coupled on toilet end to a car without a toilet), and then never decoupled. Each two car couple was then treated as a single unit.

Re: A Parable

#7
post #3

I failed to understand the solution :(

The solution is to permanently couple pairs of the two car types, such that the restroom is in the middle.

Of course, this is exactly equivalent to just making the cars so that they all have restrooms, but are twice as long...

Re: A Parable

#8
Hrm. I was annoyed by the cost-savings idea and at each of the partial fixes, and then reasonably pleased by the solution (but I would have been happier if the root cause was fixed.)

So I'm not a manager, and not a programmer... I'm a sysadmin at heart.

Re: A Parable

#9
post #3

I failed to understand the solution :(

You always keep pairs of carriages, connected like this:

  +----------------+ +---------------+
  |               T| |               |
  +----------------+ +---------------+
    O            O     O            O
where 'T' marks a toilet. You build your train from a bunch of those cars, and now it does not matter how you connect them, you'll always have a toilet within a car's range, plus at worst the additional cost of crossing into the next car (since you can't put the toilet between two cars, there's a slight asymmetry).

Re: A Parable

#10
post #3

I failed to understand the solution :(

You always keep pairs of carriages, connected like this: +----------------+ +---------------+ | T| | | +----------------+ +---------------+ O O O O where 'T' marks a toilet. You build your train from a bunch of those cars, and now it does not matter how you connect them, you'll always have a toilet within a car's range, plus at worst the additional cost of crossing into the next car (since you can't put the toilet be…

Perfect, thanks!!
Post reply on HN