it is often used if the search space is discrete