登录
首页 » Matlab » TSP–搜索BFS和DFS

TSP–搜索BFS和DFS

于 2022-06-27 发布 文件大小:4.01 kB
0 59
下载积分: 2 下载次数: 1

代码说明:

应用背景该项目由实施DFS和BFS算法解决TSP问题的案例。对于一个给定的起始城市,我们将尝试找到“最短”的路径到一个给定的目标,通过实施上述算法。下面的章节将描述我选择的方法,以及我所获得的结果。关键技术方法(整个项目将进行使用MATLAB。该脚本可在“源代码”目录中。>;>;以下是执行步骤,获得期望的结果:1)从文件中加载数据2)硬编码的邻接和连接输入3)计算的距离;仅由邻接矩阵定义的现有边的成本。4)生成相应的图,并将所有下面的步骤都限制在表示起点和终点之间的所有可能的路径上。2一、DFS算法5)生成列表的顺序图节点的访问DFS算法。6)基于节点ID在非加权图得到DFS路径。7)基于边缘的成本获得最小成本路径(DFS在加权图)8)找到最低成本。二。BFS算法9)产生有序的节点列表发现的BFS。10)生成的路径连接起点到目的地所产生的节点列表的列表结合前人。数据在这项工作中所使用的数据提供了内部。我将文件转换成txt文件。为了让它更容易导入MATLAB。有一次,转换后的文件上传,城市数量(节点)只要相应的坐标将存储在表命名为“坐标”。从这些坐标的边缘将成本计算。邻接信息将手动输入。

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

发表评论

0 个回复

  • 5431045
    partial delay selection algorithm matlab
    2015-01-03 17:20:49下载
    积分:1
  • emg_extract
    emg feature extract using matlab
    2015-06-18 12:36:08下载
    积分:1
  • simulink-car
    汽车整车模型,matlab可运行仿真,内包括整车动力性模块以及发动机变数箱选择模块。档位选择方式根据驱动力及速度联合判断加减档(Automobile model, matlab can run the simulation, including the vehicle power module and the engine variable box selection module. Gear selection mode according to the driving force and speed of the joint judgment and addition and subtraction)
    2016-03-14 11:07:19下载
    积分:1
  • 车道线检测
    无人驾驶汽车首先要解决的就是车道检测问题,用于车道线检测的代码,其中用到了hough变换,能有效实现车道线的检测
    2022-02-04 06:26:39下载
    积分:1
  • fusetool
    图像融合的matlab工具包,希望大家能用得到。(Image fusion matlab toolkit, hope everyone can get.)
    2020-09-15 15:47:56下载
    积分:1
  • MATLAB
    matlab常用代码,包括常用的图像图形处理。详细请下载查阅。(commonly matlab code, including commonly used in image and graphics processing. For details, please download the inspection.)
    2013-04-09 22:28:55下载
    积分:1
  • STK-training-tutorial
    STK 是卫星仿真工具包,由美国AGI开发的一款在航天工业领域中处于绝对领先地位的商品化分析软件。这里附上的是这个软件的教程。(STK is a satellite simulation tool kit developed by the United States AGI a field in the aerospace industry in the commercialization of the absolute leading position analysis software. Here attached is the software tutorial.)
    2007-12-14 16:17:07下载
    积分:1
  • zjdwork
    语音信号滤波程序(低通、带通、多带通、fft卷积滤波 自己动手做的(Voice signal filtering process (low-pass, band-pass, multi-band-pass, fft convolution filtering)
    2009-04-14 16:01:45下载
    积分:1
  • largest_lyapunov_exponent
    Lyapunov exponent Lyapunov exponent solving, By viture of this prompt, you can solve the lyapunov exponent of linear and nonlinear dynamic systems, for example duffing equation, Lorenz equation, henon and Vdp equation etc.(Lyapunov exponent solving, By viture of this prompt, you can solve the lyapunov exponent of linear and nonlinear dynamic systems, for example duffing equation, Lorenz equation, henon and Vdp equation etc.)
    2009-11-03 20:01:11下载
    积分:1
  • 674143
    tutorial based on researchdddd
    2010-12-25 21:22:24下载
    积分:1
  • 696518资源总数
  • 105722会员总数
  • 0今日下载