What structures does our brain use for a quick indexing of all the data we store in our heads?
From how my brains work (i.e. that I can very quickly recollect something from the past) I would say that my brain does not do a linear scan of all the memories, otherwise it would take a lot of time to recollect something. So, we for sure have indexing structures in our head.
From the time complexity point of view I would say it should be at least logarithmic or even faster. Do we maybe have B-trees or LSM-trees implemented in our brains?
I am curious to learn more about the topic, but so far I was not able to find a good explanation about it.
I am playing around with creating my own database and would like to try to simulate the workings of my brain to get something similar. Hence, the curiosity in the question.