Hill climbing algorithm simple example

前端 未结 7 1226
无人共我
无人共我 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:39

    the path according to pure hill climb will be a-> J -> k if you expand children's from left to right, if you expand them from right to left then you will get in this local minima A -> F -> G, but generally we expand from left to right.

提交回复
热议问题