登录
首页 » C# » /* 求解最短路径代码 * 这段代码没有进行任何优化(包括算法上的), 但不意味我不知道该怎样优化它, * 它是为教学目的而做,旨在用易于理解和简洁的代码描述出...

/* 求解最短路径代码 * 这段代码没有进行任何优化(包括算法上的), 但不意味我不知道该怎样优化它, * 它是为教学目的而做,旨在用易于理解和简洁的代码描述出...

于 2022-04-01 发布 文件大小:7.17 kB
0 102
下载积分: 2 下载次数: 1

代码说明:

/* 求解最短路径代码 * 这段代码没有进行任何优化(包括算法上的), 但不意味我不知道该怎样优化它, * 它是为教学目的而做,旨在用易于理解和简洁的代码描述出 A* 算法在求最段路 * 径中的运用. 由于很久没有摸算法书, 本程序不能保证是纯正的 A* 算法 -) * 你可以在理解了这段程序的基础上,按自己的理解写出类似的代码. * * 本程序附带有一个数据文件 map.dat, 保存有地图的数据 */-/* code for the Shortest Path* This code without any optimization (algorithm), but does not mean that I do not know how to optimize it,* it is for the purpose of instruction and so, easy to use and simple to understand code describes the A* algorithm for most of the Road* path use. As long without feeling algorithm, the procedure is no guarantee that the tradition of A* algorithm-)* You can understand this process on the basis of their own understanding to write a similar code.* The procedure is an ancillary data files map.dat preserve land The data* /

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

发表评论

0 个回复

  • DES_C
    基本的DES加密算法,可以实现一些基本的功能,但是大型计算不适合(The basic DES encryption algorithm)
    2013-08-15 01:48:09下载
    积分:1
  • buffer-select
    地图代数相关算法,在八边形距离变换的基础上提取缓冲区边界,进行粘连变换,提取泰森多边形边界(Map Algebra related algorithms, in octagonal distance transformation based on the extraction buffer boundary for adhesions transformation, extraction Thiessen polygon boundary)
    2020-12-10 21:59:18下载
    积分:1
  • jiaotongxinhaodeng
    交通信号灯的功能与实现,自己做的,注意端口(stc89c52rc keil)
    2014-07-16 15:04:15下载
    积分:1
  • 窗口更改控件属性
    说明:  子窗体按钮可以改变父窗体某一图片,试验成功(The child form button can change a picture of the parent form. The experiment is successful.)
    2020-06-22 06:40:01下载
    积分:1
  • 由于在单道批处理系统中,作业一投入运行,它就占有计算机的一切资源直到作业完成为止,因此调度作业时不必考虑它所需要的资源是否得到满足,它所占用的CPU时限等因素。...
    由于在单道批处理系统中,作业一投入运行,它就占有计算机的一切资源直到作业完成为止,因此调度作业时不必考虑它所需要的资源是否得到满足,它所占用的CPU时限等因素。 每个作业由一个作业控制块JCB表示,JCB包括如下信息:作业名、提交时刻、所需运行时间、所需资源、作业状态、链指针等。 在程序开始时对用户提交的作业按作业调度算法排列,用链表形式存储,这里分别采用先来先服务、短作业、响应比高者优先调度算法对作业进行调度。这里为了操作者的方便,每个作业无论所需运行时间多少,都是每敲一次键盘就执行完一个作业。每个作业完成后打印作业的开始运行时刻,完成时刻,周转时间和带权周转时间,一组作业完成后打印这组作业的平均周转时间,带权周转时间。所以要在运行时对运行时间进行记录,这里设置几个全局变量:T时间量; ttime总周转时间; trtime总的带权周转时间。-Road due to the single-batch system, and put into operation an operation, it has all the resources of the computer until the operation is completed, the dispatch operation when it"s not necessary to consider whether the resources needed to be met, it occupied by the CPU time and other factors. Each operation by operating a control block JCB, JCB include the following information : operations, and submitted moment, the run time, the resources required, operational state, chain pointer. At the beginning of the procedure to users of operations by scheduling algorithm with using forms Chain store, were used here fir
    2022-03-15 10:50:46下载
    积分:1
  • ParsingXML__C-CPP
    XML文件解析器,This file contains a summary of what you will find in each of the files that make up your ParsingXML application.(XML anaysis,This file contains a summary of what you will find in each of the files that make up your ParsingXML application.)
    2015-07-07 09:47:00下载
    积分:1
  • C# 农历 操作常用类 源码
    C# 农历 操作常用类 源码
    2014-06-11下载
    积分:1
  • MS Dos 6.0 源代码完整的 rar
    MS Dos 6.0 源代码完整的 rar 卷-11.6 mb 所有系统程序 andutils 包含 QBASIC 源 用于编译和部分编译后的代码的工具 dos shell 包括 外部命令源 驱动程序源 已编译的对象文件 所有资源和原始文档 开发人员有用的意见和提示 使全部和部分编译的文件 等等
    2022-01-22 11:37:06下载
    积分:1
  • SVMDPCPMSM
    使用matlab搭建模型进行电网三相全桥整流闭环控制(Closed-loop control of three-phase full-bridge rectifier in power grid using MATLAB model)
    2020-06-20 03:40:01下载
    积分:1
  • AM4379 input 输入子系统 键盘驱动
    AM4379  input  输入子系统 键盘驱动
    2022-02-04 11:19:10下载
    积分:1
  • 696518资源总数
  • 106174会员总数
  • 31今日下载