“…Hamming distance is the most straightforward metric for approximate search in BCAMs/TCAMs. CAMs, which are traditionally used in routers and caches (Karam et al, 2015;Yin et al, 2020), have been gaining popularity in data-intensive applications such as nearest neighbor search (Kohonen, 2012;Kazemi et al, 2020Kazemi et al, , 2021b, bioinformatics (Laguna et al, 2020), neural networks (Chang, 2009;Wang et al, 2010;Li C. et al, 2020, Li et al, 2021Kazemi et al, 2021a), etc. CAMs also have been used in implementing LSH-based attention (Ni et al, 2019).…”