Good question; what does it mean to understand anything?
Biologically, it means a sequence of neural firings in the cerebral cortex have occurred, which result in the mental state associated with "I get it!"
I would try to model this in the sense of Kolmogorov complexity, where the brain constructs a program which generates the same data as the object to be understood.
-- Rich