Surely every person who has reached a conscious age, experienced a state of "deja vu".
It is still unknown how and why this happens; there are many hypotheses, but these are just hypotheses.
I want to share my hypothesis on this subject, close to the subject of IT.
The reasoning and terminology used will be simplified, since I set it as my task at the moment not to construct a mathematical apparatus, but to designate an alternative view of a phenomenon familiar to everyone.')
Our brain stores a variety of data collected in the process of life, such as sensations (smell, image in the eyes, sound, etc.), body condition (emotions, mood, etc.) well, and a lot of the rest.
Data is stored separately from each other, so we can, regardless of smell, recall some sound, skin sensations, etc.
But at the same time, the aggregate of these data is also stored, which makes it possible to recall, at the recollection of the smell, the place where it was felt. This is similar to the DB table with a huge number of columns (possibly infinite).
It turns out that the brain should at every change in the situation scan the table in order to compare the current state of affairs with what it already had. But what kind of it requires computational power?
The nature-optimizer introduces a certain “brain-transforming function” - then the MF, which returns some rather short (relative to the initial data) HESH from the initial data. This function is quasi-continuous, i.e. with minor changes in the source data, its result also changes slightly.
Starting with a certain amount of table memories, the brain is much faster to calculate the situation HESH and search by index in the table of memories, than to sort through the entire table.
The range of values of the MF is limited - one way or another, the infinite number of brain values is not enough anyway. A domain can be considered virtually infinite. This means that for different source data the value of the MF can be repeated or be as close as possible (if we assume that the range of values is continuous).
Usually everything goes well, but suddenly - at a certain moment the brain finds in the HESH table that is close or equal to the current one, but separate parameters (smell, light, mood, emotions, logical connections) are categorically not close separately to the current ones.
The brain is perplexed - he remembers that the situation was (hash was found), but he cannot predict further development (the situation itself is actually different). It takes some time, because Since the situation changes smoothly, due to the quasi-continuity of the function, the hash moves away from the one found, too, until it reaches a certain distance at which the brain does not fix the coincidence of the situation and exit the stupor.