登录
首页 » 算法 » issue a travel home to travel home to drive a car with the minimum of cost yi us...

issue a travel home to travel home to drive a car with the minimum of cost yi us...

于 2023-09-07 发布 文件大小:885.00 B
0 183
下载积分: 2 下载次数: 1

代码说明:

旅行家问题 一个旅行家想驾驶汽车以最少的费yi 用从一个城市到另一个城市(假设出发时油箱是空的)。给定两个城市之间的距离为D1、汽车油箱的容量为C(以升为单位),每升汽油能行驶的距离为 D2,出发点每升汽油价格P和沿途油站数N(N可以为零),油站i离出发点距离Di,每升汽油价格Pi(i=1,2...N)。计算结果四舍五入至小数点后两位。 如果无法到达目的地,则输出“No Solution"。-issue a travel home to travel home to drive a car with the minimum of cost yi used from one city to another city (assuming starting at the fuel tank was empty). Given the two cities for the distance between D1, car fuel tank capacity of the C (in liters) per liter petrol traveling distance to the D2, the starting point liter gasoline prices P and several petrol stations along the N (N can be zero), PFS i distance from the starting point Di per liter Steam oil prices Pi (i = 1,2 ... N). Calculation results rounded to two decimal places. If unable to reach their destination, the export of "No Solution."

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

发表评论

0 个回复

  • 基于背景差分的目标提取opencv
    基于背景建模差分提取视频中的运动目标,基于vs2010+opencv1.0,对提取目标做外接矩形标注及文字提示
    2022-07-01 04:36:31下载
    积分:1
  • 农夫过河问题的广度优先搜索的PASCAL程序
    农夫过河问题的广度优先搜索算法的PASCAL程序-farmer across the river in breadth- first search algorithm procedures PASCAL
    2022-04-27 04:15:46下载
    积分:1
  • design an O (n2) time algorithm to identify by the number n of the longest seque...
    设计一个O(n*n)时间的算法,找出由n个数组成的序列的最长单调递增子序列--design an O (n2) time algorithm to identify by the number n of the longest sequence monotonically increasing sequences.
    2022-03-01 13:31:38下载
    积分:1
  • lzw的c语言实现
    lzw算法,LZW就是通过建立一个字符串表,用较短的代码来表示较长的字符串来实现压缩。此项目,压缩、解压算法都有
    2022-05-21 10:20:54下载
    积分:1
  • MD5VBMD5码生成的程序
    vb编写关于MD5码生成的程序,主要用于MD5码的生成。经测试没有什么错误,可以正常使用。可以生成短MD5和长MD5两种码。
    2023-02-27 10:45:02下载
    积分:1
  • C图像处理
    包括数字图像处理的绝大部分算法,都是用C语言是实现,算法包括灰度变换,图像平滑,图像消噪,图像分割,图像边缘检测,图像的几何变换(比例缩放、图像的平移、图像镜像,图像旋转等),图像的二值计算,图像编码,图像复原。
    2022-05-30 01:23:30下载
    积分:1
  • 模式识别中关于CYK代码
    模式识别中关于CYK代码,费了好大力气才从别处弄来的,与大家分享,希望可以为需要的人带来帮助哦
    2023-04-24 20:05:03下载
    积分:1
  • 单元最短路径
    应用背景以文档形式详细说明单元最短路径问题(用两种方法说明:贪心算法和分支限界法),并附有源码和运行结果关键技术源码用C++语言编写,可在VC和VS环境下运行
    2022-03-31 05:10:50下载
    积分:1
  • K-Means mapreduce
    public class KmeansMapper extends MapReduceBase implements   Mapper {  // one coodinate(data)  private List coordinate = new ArrayList();  private BasicKMeansTool basicKmeans = new BasicKMeansTool();  public void map(LongWritable key, Text value,    OutputCollector midoutput,    Reporter arg3) throws IOException {   // TODO Auto-generated method stub   String line = value.toString();   String[] dataList = line.split(",");   List distances = null;   StringTokenizer itr;   for (int i = 0; i < dataList.length; i++) {    itr = new StringTokenizer(dataList[i]);  &nbs
    2023-02-01 17:45:04下载
    积分:1
  • FFT的程序
    可运算的FFT算法。加载到程序里面后可以正常运行。程序稳定,抑制能力强大。里面包含了四种FFT算法可供选择使用。实验效果显著,程序可用。
    2022-01-27 18:03:57下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载