When will a Genetic Algorithm Outperform Hill Climbing