d and d sc the apples are in the basket near the door on your way out iterative optimization approaches can be used to find solutions in other cases