607
edits
m (→Boolean Logic) |
|||
| Line 35: | Line 35: | ||
== Boolean Logic == | == Boolean Logic == | ||
If we use different weights of balls for 1 and 0 then a simple balance test could compare numbers. If the high order bit of each number was farthest from the fulcrum then if the lever balances then the values are equal, otherwise is leans to the sizes which is larger. | If we use different weights of balls for 1 and 0 then a simple balance test could compare numbers. If the high order bit of each number was farthest from the fulcrum then if the lever balances then the values are equal, otherwise is leans to the sizes which is larger. This does mean that the bit order in a nibble needs to be reversed for one of the numbers. | ||
== Encoding == | == Encoding == | ||