Discrete math · Boolean algebra and logic circuits
Logic expressions with variables that are 0 or 1 follow algebra rules similar to ordinary algebra, with a few differences.