Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Search 竞选-搜索_Search_Artificial Intelligence_A Star_Heuristics - Fatal编程技术网

Search 竞选-搜索

Search 竞选-搜索,search,artificial-intelligence,a-star,heuristics,Search,Artificial Intelligence,A Star,Heuristics,假设有一个政党从a市竞选到Z市,所有其他城市都以非线性顺序排列在这两个城市之间 我有每个相邻城市之间的距离。 我有关于每个城市如何更接近Z市的启发值,以及在每个城市为该党竞选(更多选票)的启发值 我想尽量减少从A到Z的行程,同时最大限度地提高城市竞选活动的收益(从选票中)。 因此,如果启发式函数为Constant1xDistanceHeuristic+Constant2xVoteSeuristic,A*搜索是否可行?请提供您的代码尝试,请参阅stackoverflow.com/help/qual

假设有一个政党从a市竞选到Z市,所有其他城市都以非线性顺序排列在这两个城市之间

我有每个相邻城市之间的距离。 我有关于每个城市如何更接近Z市的启发值,以及在每个城市为该党竞选(更多选票)的启发值

我想尽量减少从A到Z的行程,同时最大限度地提高城市竞选活动的收益(从选票中)。
因此,如果启发式函数为Constant1xDistanceHeuristic+Constant2xVoteSeuristic,A*搜索是否可行?

请提供您的代码尝试,请参阅stackoverflow.com/help/quality-standards-error