Think of your brain as not only a perception and aesthetic machine, but also as a game engine. In terms of games you could play, a déjà vu might be thought of as a hash collision with a previously encountered (or simulated) state of a game with characteristic and irreducibly-complex decision-points similar to the ones you are experiencing right now. The microaffect that was deemed appropriate for that given situation, within the context of the game that was being played, is triggered in an inappropriate situation. This can be expected in so far as the hashing function is both quick and imperfect; it trades complete accuracy for speed, as the latter is critical in real-world scenarios. This explains why nearly universally déjà vus have a characteristic affect- it’s not so much that you feel that “the situation is the same” as that the way it feels emotionally is reminiscent of a “game situation” you’ve encountered before. A déjà vu is a repeat of a game-state-specific feeling of behavioral restriction.