# What is ridge in hill climbing algorithm?

I am studying hill climbing algorithm and this topic seems so confusing.

1. What is ridge basically?

2. Can you show an example while searching using hill climbing when ridge occurs?

I have researched in internet about this topic but it only left me with more confusions. It seems like ridge seems very similar to local maximum imo. In the sense there are some big hills later on. But it says a lot of other things which I found very confusing. Need some help here. Here is the pdf that I collected by studying from various sources.

I would like to visualize and understand this figure-:

I have collected some resources for studying this topic. If It is legal to share it here is it-:

https://jmp.sh/OMZtkWF

I first asked this in other forums here are responses from other forums that I didn't understand that deeply-:

My confusion with this is that-:

if that's the case all of hill climbing is filled with ridge. i don't understand this. its name is hill climbing but it says that it can only travel in x or y directions. what does this mean..if we are in a steep hill then how can we travel only x direction or y direction, how can maxima and minima exists in that case if we are moving only in x or y direction? i don't quite get it. Also you say every direction we are allowed to move in sends us downhill. From which point are you talking can you show that in that above figure?

Sadly the guy could not elaborate further so I am here on stackexchange. That conversation is just for reference, no need to answer that, just to get you a view of what I am confused.