Hill climbing algorithm simple example

前端 未结 7 1224
无人共我
无人共我 2021-02-05 11:39

I am a little confused with Hill Climbing algorithm. I want to \"run\" the algorithm until i found the first solution in that tree ( \"a\" is initial and h and k are final state

7条回答
  •  深忆病人
    2021-02-05 11:41

    Hill climbing has no guarantee against getting stuck in a local minima/maxima. However, only the purest form of hill climbing doesn't allow you to either backtrack.

    A simple riff on hill climbing that will avoid the local minima issue (at the expense of more time and memory) is a tabu search, where you remember previous bad results and purposefully avoid them.

提交回复
热议问题