How is the algorithm defined for Related/ Recommended content?

How is the search algorithm defined for Related/ Recommended content that appears at the bottom of a Wiki? I'm guessing it's based upon tags and key words, but would like to better understand how these populate. 

Parents Reply Children
No Data