An associative-memory model and its optical implementation with gratin
g structures are presented. The transmission function of each pixel of
the content-addressable memory is calculated by use of scalar diffrac
tion theory. The filter of the calculated transmission function can be
fabricated with computer-generated holography and a multiexposure hol
ographic technique. The proposed approach is found useful in terms of
storage and the simple thresholding at the number of on-state pixels i
n the input.