Easy Solutions for the K–Center Problem or the Dominating Set Problem on Random Graphs