computeSG