1. An apparatus comprising: a first group of memory cells coupled to a first access line and configured to store a first element; a second group of memory cells coupled to a second access line and configured to store a second element; sensing circuitry coupled to the first group of memory cells and the second group of memory cells; and a controller coupled to the sensing circuitry and configured to use the sensing circuitry to compare the first element with the second element by performing a number of AND operations, OR operations, SHIFT operations, and INVERT operations without transferring data via an input/output (I/O) line.