文件名称:5140309123_4_1
介绍说明--下载内容来自于网络,使用问题请自行百度
这是一个车辆的排队问题,很容易联想到用队列解决该问题
规则中写到客车4辆后才能上一辆货车,4辆客车以下可以用货车代替客车,因此一艘船上客车和货车数之比为4:1是一个分界点,注意一艘船只能放10辆车,当前在码头的第一艘船走了第二艘船来的这10分钟内停留的客车和货车数我们是可以确定的,因此我们可以直接将4:1这个分界点转化为实际中的8辆对两辆的分界,如果这10分钟内有8辆以上的客车,我们先让8辆客车上了之后必须开始上货车,有两辆货车满足“客车四辆上一辆货车”条件,如果没有两辆货车再开始上客车也满足“客车四辆上一辆货车”条件,因为这里无法上货车用客车代替是允许的,如果此时没有8辆客车上货车则刚好满足“4辆客车以下可以用货车代替客车”条件。因此程序以8辆客车为分界点,然后之后分别先装货车再装客车,这两个循环均以满船为分界点。
-This is a vehicle queuing problem, it is easy to associate with the queue to resolve the issue after the rule written to bus 4 on a lorry, the following four passenger buses can be used instead of trucks, buses and trucks on board and therefore a number of ratio of 4: 1 is a cut-off point, note that a ship can only put 10 vehicles, currently in the first ship pier to go to the second vessel which passenger and freight numbers stay within 10 minutes we can determine , so we can be 4: 1 the actual cut-off point into the eight pairs of two boundaries, if there are more than eight passenger cars within these 10 minutes, we let eight passenger must begin on the following trucks, two trucks have to meet the " four buses on a truck" condition, if not two trucks then began buses also meet the " four buses on a truck" conditions, because they can not use buses instead of vans on here are allowed if at this time there is no passenger on the eight trucks is just to meet the &quo
规则中写到客车4辆后才能上一辆货车,4辆客车以下可以用货车代替客车,因此一艘船上客车和货车数之比为4:1是一个分界点,注意一艘船只能放10辆车,当前在码头的第一艘船走了第二艘船来的这10分钟内停留的客车和货车数我们是可以确定的,因此我们可以直接将4:1这个分界点转化为实际中的8辆对两辆的分界,如果这10分钟内有8辆以上的客车,我们先让8辆客车上了之后必须开始上货车,有两辆货车满足“客车四辆上一辆货车”条件,如果没有两辆货车再开始上客车也满足“客车四辆上一辆货车”条件,因为这里无法上货车用客车代替是允许的,如果此时没有8辆客车上货车则刚好满足“4辆客车以下可以用货车代替客车”条件。因此程序以8辆客车为分界点,然后之后分别先装货车再装客车,这两个循环均以满船为分界点。
-This is a vehicle queuing problem, it is easy to associate with the queue to resolve the issue after the rule written to bus 4 on a lorry, the following four passenger buses can be used instead of trucks, buses and trucks on board and therefore a number of ratio of 4: 1 is a cut-off point, note that a ship can only put 10 vehicles, currently in the first ship pier to go to the second vessel which passenger and freight numbers stay within 10 minutes we can determine , so we can be 4: 1 the actual cut-off point into the eight pairs of two boundaries, if there are more than eight passenger cars within these 10 minutes, we let eight passenger must begin on the following trucks, two trucks have to meet the " four buses on a truck" condition, if not two trucks then began buses also meet the " four buses on a truck" conditions, because they can not use buses instead of vans on here are allowed if at this time there is no passenger on the eight trucks is just to meet the &quo
(系统自动生成,下载前可以参看下载内容)
下载文件列表
5140309123_4_1/
5140309123_4_1/linkQueue.h
5140309123_4_1/linkQueueInput.txt
5140309123_4_1/linkQueueOutput.txt
5140309123_4_1/Readme.docx
5140309123_4_1/simulator of wharf.cpp
5140309123_4_1/linkQueue.h
5140309123_4_1/linkQueueInput.txt
5140309123_4_1/linkQueueOutput.txt
5140309123_4_1/Readme.docx
5140309123_4_1/simulator of wharf.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.