Novel quantum algorithm proposed for high-quality solutions