登录
首页 » Others » 迪杰斯特拉算法求任意两点间最短路径 无向图.rar

迪杰斯特拉算法求任意两点间最短路径 无向图.rar

于 2021-12-04 发布
0 238
下载积分: 1 下载次数: 1

代码说明:

可以计算任意两个指定点之间最短距离 无向图 节点编号为0到nodenum-1 节点容量可以自己修改 起点和终点任意 只要不超过以上范围

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

发表评论

0 个回复

  • python实现 apriori (附详细注释)
    python实现apriori 算法并进行关联规则挖掘,内涵详细注释,帮助理解
    2020-12-10下载
    积分:1
  • labview怎样生成可执行exe文件
    labview怎样生成可执行exe文件labview怎样生成可执行exe文件
    2020-12-09下载
    积分:1
  • 稀疏自码深度学习的Matlab实现
    稀疏自编码深度学习的Matlab实现,sparse Auto coding,Matlab codetrain, m/7% CS294A/CS294W Programming Assignment Starter CodeInstructions%%%This file contains code that helps you get started ontheprogramming assignment. You will need to complete thecode in sampleIMAgEsml sparseAutoencoder Cost m and computeNumericalGradientml For the purpose of completing the assignment, you domot need tochange the code in this filecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencodtrain.m∥%%========%6% STEP 0: Here we provide the relevant parameters valuesthat willl allow your sparse autoencoder to get good filters; youdo not need to9 change the parameters belowvisibleSize =8*8; number of input unitshiddensize 25number of hidden unitssparsity Param =0.01; desired average activation ofthe hidden units7 (This was denoted by the greek alpharho, which looks like a lower-case pcurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod4/57train.,m∥in the lecture notes)1 ambda=0.0001%o weight decay parameterbeta 3%o weight of sparsity penalty term%%==:79 STEP 1: Implement sampleIMAGESAfter implementing sampleIMAGES, the display_networkcommand shouldfo display a random sample of 200 patches from the datasetpatches sampleIMAgES;display_network(patches(:, randi(size(patches, 2), 204, 1)), 8)%为产生一个204维的列向量,每一维的值为0~10000curer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod5/57train.m/v%中的随机数,说明是随机取204个 patch来显示%o Obtain random parameters thetatheta= initializeParameters ( hiddenSize, visibleSize)%%=============三三三三====================================97 STEP 2: Implement sparseAutoencoder CostYou can implement all of the components (squared errorcost, weight decay termsparsity penalty) in the cost function at once, butit may be easier to do%o it step-by-step and run gradient checking (see STEP3 after each stepWecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod6/57train. m vb suggest implementing the sparseAutoencoder Cost functionusing the following steps(a) Implement forward propagation in your neural networland implement the%squared error term of the cost function. Implementbackpropagation tocompute the derivatives. Then (using lambda=beta=(run gradient Checking%to verify that the calculations corresponding tothe squared error costterm are correctcurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod7/57train. m vl(b) Add in the weight decay term (in both the cost funcand the derivativecalculations), then re-run Gradient Checking toverify correctnessl (c) Add in the sparsity penalty term, then re-run gradiChecking toverify correctnessFeel free to change the training settings when debuggingyour%o code. (For example, reducing the training set sizecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod8/57train m vl/number of hidden units may make your code run fasterand setting betaand/or lambda to zero may be helpful for debuggingHowever, in yourfinal submission of the visualized weights, please useparameters web gave in Step 0 abovecoS七grad]sparseAutoencoderCost(theta, visibleSize,hiddensize, lambda,sparsityParam, beta,patches)二〓二二二二二二二〓二〓二〓二〓=二====〓=curer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod9/57train.m vlll96% STeP 3: Gradient CheckingHint: If you are debugging your code, performing gradienchecking on smaller modelsand smaller training sets (e. g, using only 10 trainingexamples and 1-2 hiddenunits) may speed things upl First, lets make sure your numerical gradient computationis correct for a%o simple function. After you have implemented computeNumerun the followingcheckNumericalGradientocurer:YiBinYUyuyibintony@163.com,WuYiUniversityDeep Learning, MATLAB Code for Sparse Autoencode10/57
    2020-12-05下载
    积分:1
  • 基于ANN的6种(2ASK、4ASK、2FSK、4FSK、2PSK、4PSK)调制信号自动调制识别
    基于ANN的6种信号自动调制识别,内附完整代码。6种信号分别为2ASK、4ASK、2FSK、4FSK、2PSK、4PSK。适合初学者使用
    2020-12-01下载
    积分:1
  • STM32F103C8舵机控制序,原创支持12舵机
    STM32F103C8舵机控制程序,原创支持12舵机;调用 void PWM_Test(void),即可。基于原子程序调试成功。
    2020-12-07下载
    积分:1
  • 基于jsp技术的仓库管理系统
    我的毕业设计,设计较为简单,大家一看便懂!
    2020-12-09下载
    积分:1
  • 车联网V2X资料
    车联网V2X各类资料。
    2020-12-09下载
    积分:1
  • Android项目源码利用加速度传感器实现计步
    主要功能记录行走的步数,行走的时间根据录入的体重,步长可以计算出每天行走的历程,消耗的热量对每天行走的历程进行记录,并给出星级评价软件原理判断人是否处于行走中,主要从以下几个方面判断:人如果走起来了,一般会连续多走几步。因此,如果没有连续4-5个波动,那么就极大可能是干扰。人走动的波动,比坐车产生的波动要大,因此可以看波峰波谷的高度,只检测高于某个高度的波峰波谷。人的反射神经决定了人快速动的极限,怎么都不可能两步之间小于0.2秒,因此间隔小于0.2秒的波峰波谷直接跳过通过重力加速计感应,重力变化的方向,大小。与正常走路或跑步时的重力变化比对,达到一定相似度时认为是在走路或跑步
    2021-05-06下载
    积分:1
  • labview生成spwm波
    labview生成spwm波子程序。根据调制波和载波频率以及调制比,生成spwm波高低电平数组
    2020-11-29下载
    积分:1
  • SIFT算法MATLAB源码完整版
    SIFT算法的MATLAB源码,不使用sift_win32,根据论文一步一步编写,对于学习理解SIFT算法有重要意义。建议单步执行学习。
    2020-06-19下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载