r/AskComputerScience • u/nagix97 • Mar 06 '22
In binary 1 represents the existence of electric flow and 0 reps the none exists of it. Theoretically does sending information that contains more 0s than 1s will consume less power?
7
u/Ragingman2 Mar 06 '22
Sending information is done using protocols such as USB, Ethernet, and HDMI. These protocols specify both the cable to use and what electrical signals should be sent over them.
The amount of power that sending a message takes depends on the protocol. In most modern protocols sending 1s or 0s won't make a difference because of how they are encoded. For example USB uses a differential pair signal in which there are two wires that each typically carry opposite voltages. You can look up various YouTube videos on USB for more details on how / why this is done.
3
u/Filmore Mar 06 '22
Uhm maybe? But not for the reason you think.
Without any other information on the data and only knowing the ratio of 0 to 1s, I would guess that highly lopsided data is probably also low entropy, and therefore can be compressed a lot. This would yield more information per power-unit when transmitting if you compressed it.
Caveat: It is easy to construct data where this assumption breaks (lots of 1s followed by lots of 0s for example)
3
u/Karovex Mar 06 '22
Current balance does play a role in some high-speed transmission designs. Differential pairs should theoretically always have a zero net current since it should always be equal-but-opposite in the pair.
Some protocols take this even further. For example, PCIe used bias encoding to balance the number of low-to-high and high-to-low transitions, which will also drive the net current flow towards 0 as well
48
u/PROvlhma Mar 06 '22
If that were the case you would be correct. But this is not the case.
0s and 1s represent voltage levels not current levels. For the shake of simplicity let's say that binary 1 means 1 volt and binary 0 means 0 volt.
Modern CMOS implementations theoretically consume zero power when idling, that is they consume power only when a transition from 0 to 1 or 1 to 0 happens.
So the count of 0s and 1s does not really play a role in power consumption.