This is a question I am asked regularly, and although no one outside of Google knows for sure there are a lot of theories, proven through testing and monitoring the results.
To explain how it works would take a lot of words and time, but as they say a picture is worth a thousand words, so here’s one from the PPC Blog which gives a great insight into the Googledom.
Infographic by PPC Blog

