A chassis is the trailer to carry the container. The truck pulls the trailer/chassis.
Often chassis dont have cranes to (un)load containers themselves and therefore require cranes (capex heavy assets). Such cranes aren't everywhere/in surplus.
Slightly offtopic, but very practical use of a comparable algorithm is to determine to what extent a date ranges falls between a first and last date (e.g. first date of the year, last date of year).
e.g. in Excel it would look like: MAX((MIN(end date range; last date) - MAX(Start date range;first date) + 1);0)/(last date - first date + 1). This results in 0 in case of no match, a fraction when only a part of the date range falls between the first and last date, and 1 in case it matches completely or even exceeds the first and last date.
I use a system where I've a max of 7 sub directories per directory. In that way I can quickly navigate to the directory or file I'm looking for.
It is based on the theory that one can process up to 7 items quickly. (Currently, I've no reference to this).
This implies that when a directory becomes too 'crowded', I add sub directories for further categorization. E.g. a directory containing an archive consultancy projects is split based on year of project. The current year is split up by proposal, ongoing, and archive.
For each project directory, I use standard sub-directories: Analysis, Input, Data, Report, Visuals, PM (Project Management)
The difference between Input and Data is qualative and quantative data from the client.
Probably room for improvement, but it works quite good. For now a 80/20 trade off not to invest in a better system.
Often chassis dont have cranes to (un)load containers themselves and therefore require cranes (capex heavy assets). Such cranes aren't everywhere/in surplus.