Formation of evolutionary patterns in cancer dynamics