爬山& 8拼图 [英] hill-climing &8puzzle
本文介绍了爬山& 8拼图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用c ++或c#实现带有爬山算法的8难题,但我不知道该如何开始,请帮我我的朋友.
问候
hi i want to implement the 8 puzzle with hill-climing algorithm by c++or c# but i don know how should i start please help me my firends.
regards
推荐答案
首先要熟悉这个问题并获得逻辑上的帮助.如果您无法用语言解释它,那么您将很难向编译器解释它.
http://www.8puzzle.com/8_puzzle_algorithm.htm [
Start by familiarizing yourself well with the problem and getting a handle on the logic. If you can''t explain it with language, you''ll have a hard time explaining it to the compiler.
http://www.8puzzle.com/8_puzzle_algorithm.htm[^]
That should get you started. If you have trouble with a specific piece of code, post a sample of what you''re working through and we''ll do our best.
Cheers.
这篇关于爬山& 8拼图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文