爬山法實現 八皇后問題 (Python 實現)

本文主要簡單闡述爬山法的基本算法思想,並給出用此算法實現八皇后問題詳細過程 最基本的爬上搜索算法表示:(節選自《人工智能》第二版): function HILL-CLIMBING(problem) return a state thate is a locak maximum     inputs: problem     local variables: current, a node     
相關文章
相關標籤/搜索