There is definitely a component of familiarity in the feeling or mental state that we call "understanding" (which is why analogies help understanding: they explain a lesser known thing using a more familiar thing). The brain is a neural network and repeated learning inputs definitely help. It's an oversimplification to look at the brain as if it's a simple Turing machine.