登录
首页 » c » 节约算法

节约算法

于 2022-03-25 发布 文件大小:1.74 kB
0 79
下载积分: 2 下载次数: 1

代码说明:

其中的车场0的坐标为(25,90) 其余的客户坐标分别为:(56,72),(10,107),(6,125),(27,79),(18,115)就是在这几个中间进行距离的优化,优化原则是上面所说的c-w算法。不是作业,要给出各部的实现思想也可以。能够给全源码,那当然是感谢咯! 注意,c-w算法不是最优算法,但相当好。 我自己对这个算法的理解不一定和上面给出的一样。请你认真运行检查我下面的代码:

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

发表评论

0 个回复

  • reply_1_646228
    银行家算法,希望大家喜欢(bankers algorithm, hope you like)
    2004-11-10 19:41:05下载
    积分:1
  • LEDdianzhen
    ATMEG128单片机开发板上自带的LED点阵源程序,给大家分享一下(ATMEG128 microcontroller development board comes with the LED dot matrix source, to share with you)
    2013-12-17 14:44:46下载
    积分:1
  • 将一个正整数分解质因数。例如:输入90,打印出90=2*3*3*5。 程序分析:对n进行分解质因数,应先找到一个最小的质数k,然后按下述步骤完成:...
    将一个正整数分解质因数。例如:输入90,打印出90=2*3*3*5。 程序分析:对n进行分解质因数,应先找到一个最小的质数k,然后按下述步骤完成: (1)如果这个质数恰等于n,则说明分解质因数的过程已经结束,打印出即可。 (2)如果nk,但n能被k整除,则应打印出k的值,并用n除以k的商,作为新的正整数你n,  重复执行第一步。 (3)如果n不能被k整除,则用k+1作为k的值,重复执行第一步。 -Will be a positive integer decomposition of the quality factor. For example: enter 90, print out 90 = 2* 3* 3* 5. Program analysis: the decomposition of n quality factor, should be to find a smallest prime number k, then complete the following steps: (1) If the prime number exactly equal to n, is illustrated in the process of decomposition of the quality factor has come to an end, you can print out . (2) If n
    2022-08-16 12:56:27下载
    积分:1
  • good-zoom_scale
    图片放大缩小,good example to learn menubar, a demo can be use in ur poject.(image to enlarge narrow, good example to learn menubar. a demo can be use in ur poject.)
    2007-05-12 18:02:12下载
    积分:1
  • SHIN12-HJCS
    每次开机都将次数加1 并存储到EEPROM。这样就能直观的看到机器的使用次数 用P1口 LED做为显示,次数大于256是将溢出,按复位模拟开机 或者直接通过开关开机(Each boot will add a number of times and stored to the EEPROM. So you can visually see the frequency of use of the machine as with P1 port LED display, the number is greater than 256 will overflow, analog power or press the reset switch power directly through)
    2013-06-13 21:03:46下载
    积分:1
  • DizzyClient
    说明:  another generic upload.
    2020-06-16 10:12:23下载
    积分:1
  • 温湿度传感器-c51
    温湿度传感器只是传感器其中的一种而已,只是把空气中的温湿度通过一定检测装置,测量到温湿度后,按一定的规律变换成电信号或其他所需形式的信息输出,用以满足用户需求。
    2022-04-17 11:37:53下载
    积分:1
  • MapCG
    cpu与GPU协同计算一个同时支持GPU与CPU的MapReduce框架实现(cpu and GPU collaborative computing)
    2014-12-04 23:06:54下载
    积分:1
  • 四参数随机生长法生成多孔介质代码
    利用四参数随机生成法生成三维多孔介质,以研究黏土、页岩等的微观流动机制(Using QSGS to construct 3D porous media)
    2021-03-29 17:29:10下载
    积分:1
  • Neural-network-hanshunihe
    设计并训练一神经网络使之逼近下列函数,x,y取值范围(0,3),函数精度0.02。函数为三角函数(Design and training of a neural network approximation the following functions, x, y in the range (0,3), the function accuracy 0.02. Function trigonometric functions)
    2013-03-17 12:36:00下载
    积分:1
  • 696518资源总数
  • 105714会员总数
  • 27今日下载