English

On the Implementation of Boolean Functions on Content-Addressable Memories

Discrete Mathematics 2023-05-23 v1 Information Theory math.IT

Abstract

Let [q[q\rangle denote the integer set {0,1,,...,q1}\{0,1,\ldots,...,q-1\} and let B={0,1}\mathbb{B}=\{0,1\}. The problem of implementing functions [qB[q\rangle\rightarrow\mathbb{B} on content-addressable memories (CAMs) is considered. CAMs can be classified by the input alphabet and the state alphabet of their cells; for example, in binary CAMs, those alphabets are both B\mathbb{B}, while in a ternary CAM (TCAM), both alphabets are endowed with a "don't care" symbol. This work is motivated by recent proposals for using CAMs for fast inference on decision trees. In such learning models, the tree nodes carry out integer comparisons, such as testing equality (x=tx=t?) or inequality (xtx\le t?), where x[qx \in [q\rangle is an input to the node and t[qt \in [q\rangle is a node parameter. A CAM implementation of such comparisons includes mapping (i.e., encoding) tt into internal states of some number nn of cells and mapping xx into inputs to these cells, with the goal of minimizing nn. Such mappings are presented for various comparison families, as well as for the set of all functions [qB[q\rangle\rightarrow\mathbb{B}, under several scenarios of input and state alphabets of the CAM cells. All those mappings are shown to be optimal in that they attain the smallest possible nn for any given qq.

Keywords

Cite

@article{arxiv.2305.13159,
  title  = {On the Implementation of Boolean Functions on Content-Addressable Memories},
  author = {Ron M. Roth},
  journal= {arXiv preprint arXiv:2305.13159},
  year   = {2023}
}
R2 v1 2026-06-28T10:41:37.199Z