so here's thing ......

-whenever i'm stuck on a an engineering/math problem while studying for an exam or something ... i kind of wake up the next day; try solving the problem again and it just works right away ...
-i'll usually be working on the problem for a long time (like 5hrs of intense thinking/problem solving) and not figuring out the solution ...
-and sometimes (but rarely) i do recall having dreams about me working the same problem out ...

so here's my question:

1) could it be that dreams are the reason behind succeeding in solving the problem right the next morning .... or is it just that i got some rest and woke up the next morning with a fresh start ?
2) has anybody experienced something similar ?


thanks in advance,

wa'el