Digital circuits are categorized into two main types: combinational and sequential logic. In combinational logic, the output is a pure function of the present input values only (e.g., an adder). In sequential logic, the output depends not only on the current inputs but also on the past sequence of inputs, as these circuits have memory elements (e.g., a flip-flop).
