登录
首页 » 算法 » 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 200
下载积分: 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 个回复

  • 黄金分割法,抛物线插值法,单行替换法是机械优化设计中的三中重要方法。...
    黄金分割法,抛物线插值法,单行替换法是机械优化设计中的三中重要方法。-Golden section method, parabolic interpolation method, one-way is to replace mechanical optimal design method of the three most important.
    2022-01-25 23:40:14下载
    积分:1
  • Bayes的matlab实现
    自己写的一个Bayes分类器的matlab程序,比较简单。 使用方法 >> [ train_x, train_y ] = readdata("train_data.txt" ); >> [ test_x, test_y ] = readdata("test_data.txt" ); >> [mode]=MyBayes_train( train_x, train_y); >> [ acurracy, predict_y]=MyBayes_test( test_x, test_y, mode);
    2022-03-09 19:08:01下载
    积分:1
  • particle filter
    unlike kalman filter this filter is more suitable to deal with nonlinear data types. the source code is of omnet++ simulators. which contains a c++ file and other two files is used for network description and the general initialization files.
    2022-01-28 02:07:30下载
    积分:1
  • 八数码Debug程序,A*算法 字数补丁.exe
    八数码Debug程序,A*算法 字数补丁.exe-8 digital Debug program, A* algorithm
    2022-01-30 12:56:47下载
    积分:1
  • 简单二叉树的连表算法
    简单二叉树的连表算法-even simple binary tree algorithm Table
    2022-01-24 13:44:58下载
    积分:1
  • MATLAB编写的模拟退火算法的m文件,蛮不错的呦。
    MATLAB编写的模拟退火算法的m文件,蛮不错的呦。-MATLAB prepared simulated annealing algorithm m documents Yo pretty good.
    2022-11-10 06:55:03下载
    积分:1
  • 我的数字信号处理 作业。FFT的C语言实现。运行时将2个c文件放在同一目录,运行draw.c。最好Turbo.c 如用VC运行,把头文件改下,很容易的...
    我的数字信号处理 作业。FFT的C语言实现。运行时将2个c文件放在同一目录,运行draw.c。最好Turbo.c 如用VC运行,把头文件改下,很容易的-digital signal processing operations. FFT C language. When running two c files on the same directory, run draw.c. Best Turbo.c as VC running headfirst document change, it is very easy
    2022-03-19 11:41:29下载
    积分:1
  • VC++实现高斯约当消去法。(数值分析)
    VC++实现高斯约当消去法。(数值分析)-VC++ to achieve Gauss Jordan elimination method. (Numerical Analysis)
    2023-04-10 05:50:03下载
    积分:1
  • mumford source code
    mumford source code-mumford source code........
    2022-12-30 05:20:03下载
    积分:1
  • 四轴源码以及原理图
    小四轴的源码以及原理图    #include "led.h"#include "delay.h"#include "sys.h"#include "key.h"#include "usart.h"#include "exti.h"#include "wdg.h"#include "timer.h"#include "pwm.h"#include "lcd.h"#include "MPU6050.h"#include "lsm330.h"u8 SPI1_Buffer_Rx1[6]="432423";s16 SPI1_Buffer_Rx[30];u8  k = 0;void SPI_Configuration(){ SPI_InitTypeDef   SPI_InitStructure;   /* SPI1 Config -------------------------------------------------------------*/  SPI_InitStructure.SPI_Direction = SPI_Direction_2Lines_FullDuplex;  SPI_InitStructure.SPI_Mode = SPI_Mode_Master;  SPI_InitStructure.SPI_DataSize = SPI_DataSize_8b;  SPI_InitStructure.SPI_CPOL = SPI_CPOL_High;  SPI_
    2023-03-12 15:55:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载