What you described wasn't Hill Climbing at all tho. You have to be able to take the derivative of a function to do that. The derivative is what tells you how to "go uphill" (or down)
You don't need a derivative to hill-climb. You only need an objective function, and a way to generate "moves" (similar, new solutions).
You don't need a derivative to hill-climb. You only need an objective function, and a way to generate "moves" (similar, new solutions).