Operations performed on binary data items, i.e. on data having the states ‘1’ or ‘0’. These are usually implemented by logic gates, such as AND, OR, NOT, or exclusive OR gates (see logic circuit). The rules that define these operations are specified in Boolean algebra.