A method and apparatus for determining the longest prefix match in a
content addressable memory. A content addressable memory device comprises
an application specific integrated circuit which interfaces between a
general microprocessor and a random access memory so as to create an
associative memory structure which includes transition nodes, significant
nodes and arcs. A table including multiple data structures is created in
the random access memory by the device for storing prefixes and associated
data in a predetermined manner. The table is manipulated by the device in
response to commands such as add data, delete data, and search for data by
the microprocessor.