登录
首页 » 终端 » 也是用贪心算法,来求解一个最优解,不过,它是根据当前的最好加油位置,来决定下一个加油位置;...

也是用贪心算法,来求解一个最优解,不过,它是根据当前的最好加油位置,来决定下一个加油位置;...

于 2023-01-20 发布 文件大小:794.00 B
0 82
下载积分: 2 下载次数: 1

代码说明:

也是用贪心算法,来求解一个最优解,不过,它是根据当前的最好加油位置,来决定下一个加油位置;

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

发表评论

0 个回复

  • 旅行商问题的动态规划方法已加入票据。
    用动态规划法求解旅行商问题 已经加入注释 欢迎批评指正-dynamic programming method for the traveling salesman problem has joined Notes welcome criticism correction
    2022-01-27 20:41:09下载
    积分:1
  • example code of thundering process by vc++6.0,can run
    vc++6.0异常处理演示源代码,运行通过-example code of thundering process by vc++6.0,can run
    2022-01-28 12:33:07下载
    积分:1
  • VB 6的高校管理系统
    2023-05-30 05:20:03下载
    积分:1
  • 表达式求值(C语言) 输入完成后直接回车进行计算 前后均不需要#...
    表达式求值(C语言) 输入完成后直接回车进行计算 前后均不需要#-Expression evaluator (C language) input directly after the completion of return calculated both before and after do not need#
    2023-09-07 18:30:03下载
    积分:1
  • Primitives, simple draw using Glut (opengl) on c
    Primitives, simple draw using Glut (opengl) on c-Primitives, simple draw using Glut (opengl) on c++
    2022-08-25 11:51:09下载
    积分:1
  • 超声波测距LC1602显示实验2
    应用背景目前一般都采用波在介质传播速度和时间关系进行测量。常用的技术主要有 激光测距、微波雷达测距超声波测距三种。激光测距。这是利用激光的单色性和相传播 速度V 易受空气中温度、湿度、压强等因素的影响,其中干性好、方向性强等特点,以 实现高精度的计量和检测,如量长度、距离、速度、角度等等。手持式和便携式测距 仪,作用距离为数百米至数十千米。一般应用到远距离测量。微波雷达测距是利用目标 对电磁波反射来发现目标并测定其位置。根据微波雷达的用途不同,所测定的目标可能 是飞机、导弹、车辆、建筑物、云雨等。微波测距一般应用于雷达系统,GPS 定位系 统。超声波测距就是利用其反射特性,超声波发生器不断地发射出40kHz 超声波遇到 障碍物后反射回反射波,超声波接收器接收到发射波信号,并将其转换为电信号。相比 于其它定位技术超声波定位技术成本低,制作容易,非常适合于短距离测量定位。关键技术超声波测距LC1602显示实验1                                                                                                                                         &n
    2022-01-26 07:04:35下载
    积分:1
  • 关于猎人过河问题 要解决这个问题就要使过河时载两个过河,返回时尽量只有一个回来。用一个字符串数组来存猎人,狼,羊,白菜;下标依次为0,1,2,3;但他们都有河这...
    关于猎人过河问题 要解决这个问题就要使过河时载两个过河,返回时尽量只有一个回来。用一个字符串数组来存猎人,狼,羊,白菜;下标依次为0,1,2,3;但他们都有河这边和那边两种状态;为方便则定义一个结构,只含一个int型变量n;当在河这边时n设为0;在河那边时n设为1。由于每次过河与返回都要考虑狼能否吃羊或羊能否吃白菜;则需要一个函数来判断每次选择是否满足条件。-Hunters across the river on the issues to resolve this issue so we should cross the river when the two set out across the river to return to when there is only one back as far as possible. Using a string array to keep hunters, the wolf, sheep, and cabbage subscript followed by 0,1,2,3 but they have a river here and there two states To facilitate the definition of a structure containing only an int variable n When in the river here when n is set to 0 in the river when n is set to one side. Due to cross the river and return each time to consider whether the wolf can eat the sheep吃羊or cabbage you need a function to determine each choose whether or not to meet the conditions.
    2022-09-15 08:35:04下载
    积分:1
  • 用vc开发快速Fourier变换原理及其应用实例源代码
    用vc开发快速Fourier变换原理及其应用实例源代码-Vc development with the principle of fast Fourier transform and its application source code
    2022-04-30 18:57:00下载
    积分:1
  • 使用JBuilder 9.0部署Java应用程序
    使用JBuilder 9.0部署Java应用程序-use JBuilder 9.0 deployment of Java applications
    2022-05-18 08:48:29下载
    积分:1
  • 对广义表形式的输入的字符串建二叉树,并中序输出
    对广义表形式的输入的字符串建二叉树,并中序输出-In put a Glist and Create a Binary Tree with it then output the Binary tree inorder
    2023-06-13 17:00:03下载
    积分:1
  • 696518资源总数
  • 105549会员总数
  • 12今日下载