Given many intervals and costs, consider combining them to cover a particular interval at the lowest cost This is attributed to the shortest path problem and can be solved by the [Dijkstra method

image


This page is auto-translated from /nishio/ๅŒบ้–“ใง่ฆ†ใ†ใ‚ณใ‚นใƒˆๆœ€ๅฐๅŒ–โ†’ใƒ€ใ‚คใ‚ฏใ‚นใƒˆใƒฉ using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. Iโ€™m very happy to spread my thought to non-Japanese readers.