We know how Google's algorithm works in no small part because Larry and Sergey came up with it as part of their graduate studies at Stanford. Stanford owns the patent(s?) on it and made hundreds of millions licensing it to Google.
As of four years ago (last time I had any meaningful contact with search quality people at Google), it was a very convoluted layer cake of diverse signals and carefully tuned heuristics.