登录
首页 » 算法 » HDU1010迷宫问题

HDU1010迷宫问题

于 2023-05-07 发布 文件大小:3.69 MB
0 140
下载积分: 2 下载次数: 1

代码说明:

POJ1010迷宫问题的的源码,采用了搜索+剪枝 思想:由于本题中规定只有在固定时刻到达目的点才能逃脱, 不能提早,更不能延迟,故不能用bfs。可以用dfs找出所有情况, 若有可行解,直接返回即可。本题比较郁闷的是,在tzc上将方向 数组int dir[4][2]稍微变动两下,就会超时。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 一个毕业程序设计,是用小波和支持向量机对电能质量扰动的识别与分类,主要利用的能量特征。...
    一个毕业程序设计,是用小波和支持向量机对电能质量扰动的识别与分类,主要利用的能量特征。-A graduate program design is the use of wavelet and support vector machines for power quality disturbance recognition and classification, the main characteristics of energy use.
    2022-05-14 22:36:54下载
    积分:1
  • 实现图片描边vb代码
    Private Sub wzmb_Click()给图片描边
    2022-09-20 01:25:03下载
    积分:1
  • random number algorithm,including code.
    随机数算法,包含文档和源代码-random number algorithm,including code.
    2022-01-27 10:29:16下载
    积分:1
  • 二进制搜索 java 代码
    导入 java.util.* ;类 BinarySearch{int [] ;无效的 get){扫描仪 sc = 新的 Scanner(System.in) ;System.out.println ("输入 no。元素") ;= 新 int[sc.nextInt()] ;System.out.println ("输入元素") ;为 (int 我 = 0 ; 我 < a.length;i++)a[i]=sc.nextInt() ;}int binarySearch (int n){int 低 = 0 ;int high=a.length-1 ;虽然 (低 < = 高){int 中期 =(low+high)/2 ;if(a[mid]==n)返回 (中期) ;if(n = 1 & & a [j-1] > t; j — —)[j] = [j-1] ;[j] = t ;}}空 display(){System.out.println ("给定的列表是") ;为 (int 我 = 0 ; 我 < a.length;i++)System.out.print ([i] +"") ;System.out.println() ;
    2023-01-30 23:10:03下载
    积分:1
  • lempel encoding algorithm
    你好,
    2022-08-23 02:34:29下载
    积分:1
  • 高速公路客运仿真
    高速公路客运仿真- Highway passenger transportation simulation
    2023-08-30 15:35:03下载
    积分:1
  • 哈夫曼
    数据结构与算法设计作业,有助于理解,哈弗曼算法简单实现,哈夫曼树,可用于写小型压缩解压缩软件作为核心算法,对数据结构有兴趣,或对压缩软件工作机理有兴趣者可以看看。
    2022-11-28 09:25:03下载
    积分:1
  • SURF
    应用背景 It approximates or even outperforms previously proposed schemes with respect to repeatability, distinctiveness, and robustness, yet can be computed and compared much faster.关键技术This is achieved by relying on integral images for image convolutions; by building on the strengths of the leading existing detectors and descriptors (in casu, using a Hessian matrix-based measure for the detector, and a distribution-based descriptor); and by simplifying these methods to the essential. 
    2023-07-28 12:25:06下载
    积分:1
  • 杭州电子科技大学acm 赛题第1001题的源代码
    杭州电子科技大学acm 赛题第1001题的源代码-Hangzhou University of Electronic Science and Technology acm title section 1001 title game source code
    2022-03-17 09:48:22下载
    积分:1
  • STM32 AD采集程序
    资源描述本程序代码是基于STM32中的ADC采集,模拟信号转化为数字信号是控制类芯片一个重要的功能,该程序代码是基于STM32来做的ADC采集,其中,STM32可以开启多路AD采集的信息,采集的结果可以选择打印到串口或者到液晶屏。
    2023-03-13 18:35:03下载
    积分:1
  • 696516资源总数
  • 106450会员总数
  • 5今日下载