water calculation

3 moment(s) that assert this concept — showing 1–3 of 3

moderateTwo independent sources — corroborated, but not broadly
↣ how this spread over time →
provenance — click a node to open its encoding unit
[1] The[2] The[3] Google
showing 3 of 3 moments
The Julia Programming Language · youtube · en
1The water held in each bar can be computed by taking the maximum height on the left and right, finding the smaller of the two, and subtracting the bar's height.
“what you need to do is look to your left and look to your right and see what's the highest thing on either side and uh the lower of those two is going to limit how much water you can hold because otherwise it'll spill off on the lower side and then from that lower limit you subtract the height of the bar you're sitting on top and that same amount of water you got”
spoken · 557s · 2016-07-10
The Julia Programming Language · youtube · en
2The water calculation can be implemented in a purely functional way using map and reduce operations, enabling parallel execution.
“it's a purely functional solution uh it's clearly amendable to map reduce style parallelism”
spoken · 619s · 2016-07-10
Google TechTalks · youtube · en-US
3A decomposition of the water calculation into independent pieces allows for parallel computation of water on each bar.
“we might be able to compute the water on top of each bar separately and then just add them up this gives us a decomposition into independent pieces in turn gives us the opportunity for parallelism possibly”
spoken · 563s · 2016-01-28