Dreaming is like an intelligent brute-force algorithm. Sometimes it searches for what it seeks and goes right to it, sometimes it goes through everything else in the most meandering order, but every dream gets to its point. That is the nature of dream.