Google succes started with 1 good idea : pagerank.
Every webpage is given a rank calculated with a sophisticated algorithm (how many links from other pages go to this page).
Thanks to this “pagerank”, google search feedback to users to best results.
I’ve found this infographic that lists all the changes applied to the algorithm years after years.
A lot of work ! Impressive, isn’t it ?