虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

全<b>搜索算法</b>

  • 五子棋是一种受大众广泛喜爱的游戏

    五子棋是一种受大众广泛喜爱的游戏,这里介绍五子棋程序的数据结构、评分规则、胜负判断方法,重点分析了搜索算法,并在传统的博弈算法在五子棋应用中进行一些改进,从而使剪枝更有效,运算性能更好。改进包括:不使用closed表;改变棋盘搜索顺序;增加记录最大棋盘信息的指针。实验证明,这几点改进对提高效率有很高帮助。

    标签: 大众

    上传时间: 2014-01-03

    上传用户:ainimao

  • We have a group of N items (represented by integers from 1 to N), and we know that there is some tot

    We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.

    标签: represented integers group items

    上传时间: 2016-01-17

    上传用户:jeffery

  • 构造一个有向图或无向图

    构造一个有向图或无向图,选用一种存储结构,分别输出其深度优先和广度优先的结果。 先按自己的意图画出一个顶点不少于8个、边不少于6条的有向图或无向图,用邻接矩阵或邻接表的存储结构,输入图的顶点信息和边的信息,然后调用深度优先和广度优先搜索算法,看结果是否正确。

    标签: 无向图

    上传时间: 2014-01-16

    上传用户:yzy6007

  • 以八数码问题为例

    以八数码问题为例,设计一类滑块问题的求解系统,初步掌握智能搜索算法中的盲目搜索和启发式搜索这两类基本方法,同时通过具体的问题体会搜索算法、数据结构、程序设计等知识的综合应用。

    标签: 数码

    上传时间: 2016-03-21

    上传用户:13681659100

  • 求解野人与传教士问题

    求解野人与传教士问题,利用C语言实现宽度搜索算法。

    标签:

    上传时间: 2014-12-05

    上传用户:saharawalker

  • 一个简单的计算块的运动矢量源码

    一个简单的计算块的运动矢量源码,使用四步搜索算法

    标签: 计算 源码 运动矢量

    上传时间: 2016-04-21

    上传用户:qilin

  • 对于一个给定的任意边数和顶点值的有向图或无向图

    对于一个给定的任意边数和顶点值的有向图或无向图,用邻接表存储,并用深度优先搜索算法实现对图的遍历。

    标签: 无向图

    上传时间: 2016-05-19

    上传用户:com1com2

  • 对于一个给定的任意边数和顶点值的有向图或无向图

    对于一个给定的任意边数和顶点值的有向图或无向图,用邻接表存储,并用广度优先搜索算法实现对图的遍历,借助队列实现。

    标签: 无向图

    上传时间: 2013-12-27

    上传用户:wqxstar

  • 用游标的方法实现对称差的计算

    用游标的方法实现对称差的计算,即 (A-B)+(B-A)

    标签: 对称 计算

    上传时间: 2016-05-23

    上传用户:远远ssad

  • 用A star

    用A star,先深搜索等搜索算法搜索puzzle。

    标签: star

    上传时间: 2013-12-11

    上传用户:ynwbosss