Fields of entries are mapped into new values with these mapped values
combined into mapped entries for use in lookup operations typically for
packet processing. One implementation identifies a list including
multiple items each having a first field and a second field. The unique
first and second fields of each item are respectively mapped to mapped
first and second fields. A first associative memory is programmed with
the unique first fields, and a first stage memory is programmed with the
mapped first fields at corresponding locations. A second associative
memory is programmed with the unique second fields, a second stage memory
is programmed with the mapped second fields at corresponding locations. A
second stage associative memory is then programmed, using the mapped
first and second fields, with entries corresponding to one or more of the
original multiple items.