When I saw the book referenced in excerpt below first, I thought "that's exactly how these giant companies will eventually run the world", with little to no human(ized) layers of decision left to a free will, once the desired algorithms are ironed in for "maximum efficiency".
"To solve the problem, Burger-G contracted with a software consultant and commissioned a piece of software. The goal of the software was to replace the managers and tell the employees what to do in a more controllable way. Manna version 1.0 was born.
Manna was connected to the cash registers, so it knew how many people were flowing through the restaurant. The software could therefore predict with uncanny accuracy when the trash cans would fill up, the toilets would get dirty and the tables needed wiping down. The software was also attached to the time clock, so it knew who was working in the restaurant."