This isn't technically homework help but arising from my own interest in physics... but whatever I can find on the topic is too technical. Just correct me when I'm wrong. This is Maxwell's daemon:
It is a sacrosanct and inviolable fact of this world that organised stuff becomes disorganised. Life becomes death, heat becomes cold, etc. Never the other way round. Right? You leave a glass of tea on the dresser, it's not going to become hotter.
Except...
We know that the reason it's hot is because the atoms in it are moving fast. The faster they move, the hotter. But they don't ALL move at the same speed X per second; some move a bit faster, and some a bit slower.
So say you hooked up two boxes A and B, both filled with gas Y at X degrees Fahrenheit and therefore also atoms moving at speed X per second on average. There's a wall between the boxes with a close-able pinhole in it, enough to let exactly one atom pass through. This is controlled by a computer. If it senses an atom moving faster than X towards box A, it lets it through; if it senses an atom moving slower than X towards box B, it also lets it through; and both of these on the condition that the number of atoms in boxes A and B remain about equal.
Basically you'll get a "free lunch" in the sense that box A will begin to spontaneously heat up. Right? That much I've been able to gather from Maxwell's writings.
Only here's the problem: the computer needs power to function and to open and close the pinhole. And I'll lay you ten to one that whatever power the computer uses is ten or a hundred times more than whatever you can save by using this gadget. The Universe, being its usual hateful self towards all its inhabitants, refuses to allow even this moderate example of a "free lunch" and thus the energy-saving device is, in practice, an impossibility.
Did I bugger up somewhere or is that the main thrust of the Maxwell's Daemon exercise?