A ternary content addressable memory includes at least one first memory cell, at least one second memory cell and at least one switch set. The first memory cell receives a first search signal, determines whether to send first stored data to a common end or not according to the first search signal. The second memory cell receives a second search signal, determines whether to send second stored data to the common end or not according to the second search signal. The switch set adjusts a resistance of a path between the match line and the reference ground according to a voltage on the common end and a third search signal. |