登录
首页 » c++ » 贪心算法实例―单源最短路径

贪心算法实例―单源最短路径

于 2022-02-10 发布 文件大小:2.09 kB
0 89
下载积分: 2 下载次数: 1

代码说明:

一、 实验目的 掌握贪心算法的基本思想,学习利用贪心算法设计和实现算法的方法。 二、实验内容 理解贪心法的设计思想,利用贪心法来设计并实现单源最短路径。 要求: 理解单源最短路径的贪心选择性质 设计并实现单源最短路径的贪心选择算法。

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

发表评论

0 个回复

  • matlab
    基于matlab的7阶不变矩,以源码的形式展示出来(Based on the 7-order invariant moments matlab)
    2011-04-19 21:48:23下载
    积分:1
  • VCPP-image-processing-chapter02
    VisualC++数字图像处理技术详解第2版光盘-第二章(VisualC++ digital image processing technology Detailed Version 2 CD- Chapter 2)
    2016-04-16 13:20:57下载
    积分:1
  • opencv_hog_test
    本文主要介绍下opencv中怎样使用hog算法,因为在opencv中已经集成了hog这个类。其实使用起来是很简单的,从后面的代码就可以看出来。本文参考的资料为opencv自带的sample。   开发环境:opencv2.4.2+Qt4.8.2+ubuntu12.04+QtCreator2.5.   实验功能:   单击Open Image按钮,选择需要进行人检测的一张图片,确定后自动显示出来。该图片的大小没限制。   单击People Detect按钮,则程序会自动对该图片进行行人检测,且将检测到的效果显示出来,即用1个矩形框将行人框出来。   单击Close按钮,退出程序。(This article describes how to use the next opencv the hog algorithm has been integrated in the opencv hog this. In fact, it is easy to use, can be seen from the code behind. Reference information in this article comes with sample for opencv. Development environment: opencv2.4.2+Qt4.8.2+ubuntu12.04+QtCreator2.5 experimental feature: Click the Open Image button to select a picture of the need for people detection, to determine automatically displayed. No limit on the size of the picture. Click the People Detect button, the program automatically the picture of pedestrian detection, and the detected results show a rectangular box, pedestrian box out. Click the Close button to exit the program.)
    2021-04-14 20:58:55下载
    积分:1
  • 王浩算法c语言实现
    王浩算法c语言实现,每一步 都有步骤和结论。亲测好用
    2023-07-22 04:25:03下载
    积分:1
  • 按键识别
    说明:  单片机按键识别,用于实现不同的键盘输入的识别与后续操作。(The single-chip button recognition is used to realize the recognition and subsequent operation of different keyboard inputs.)
    2019-06-19 19:47:09下载
    积分:1
  • OperateFile
    VC++拷贝、删除和移动文件的演示,呵,虽然很简单,但是很基础 ,每一个VC的编程高手都是从这里学起的,不要小看它简单,当初本人也研究了两天呢(VC++ copy, delete and move files in the demo, oh, although very simple, but very basic, every VC is a master of programming by learning from here, do not underestimate it simple, I had also studied it for two days)
    2011-04-25 21:33:42下载
    积分:1
  • OV5640摄像头模块
    基于stm32的ov5640开发例程(Ov5640 development routines based on stm32)
    2018-02-21 16:35:11下载
    积分:1
  • 简易版ATM机
    本系统旨在通过模拟真实取款机的一些功能而做出的简易版系统,器功能包括开户、销户、存款、取款、查询余额,转账等基本内容,相信会对你有所帮助。
    2022-02-12 12:07:04下载
    积分:1
  • C++串口类
    This class can read, write and watch one serial port. ** It sends messages to its owner when something happends on the port ** The class creates a thread for reading and writing so the main ** program is not blocked. 改进 **    1) 增加ClosePort **    2) 增加 writetoProt() 两个方法 **    3) 增加 SendData 与 RecvData 方法 改进  **    1)增加 ClosePort中交出控制权,防止死锁问题  **    2) 增加 ReceiveChar中防止线程死锁  改进 **    1) 解决COM10以上端口无法显示的问题 **    2) 扩展可选择端口,最大值MaxSerialPortNum可以自定义 **    3) 添加QueryKey()和Hkey2ComboBox两个方法,用于自动查询当前有效的串口号
    2022-06-25 22:55:01下载
    积分:1
  • static displacement eight Serial Digital Display Function Set, a very good oh
    静态串行移位8位数码管显示函数集,很不错得哦-static displacement eight Serial Digital Display Function Set, a very good oh
    2023-01-16 16:15:03下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载