文件名称:railqk
介绍说明--下载内容均来自于网络,请自行研究使用
最优平行轨道车皮排序问题
.问题描述:
在一个列车调度站中,k 条轨道平行连接到1 条侧轨处,形成1 条主轨道和k-1 条辅助
调度轨道。主轨道记为Hk,辅助轨道从下到上依次记为H1,H2,…,Hk-1 如下图所示。其
中主轨道左边为车皮入口(记为H0),主轨道右边为出口(仍记为Hk)。编号为a1, a2,L,an
的n 个车皮从入口依次进入主轨道,由调度室安排车皮进出轨次序,并对车皮按其出轨次序
重新排序为1,2,…,n。
调度室在安排车皮进出轨次序时,遵循以下规则:
(1)
车皮入口H0 处的车皮可以进入辅助轨道H1,H2,…,Hk-1 之一,或直接进
入车皮出口Hk。
(2)
辅助轨道H1,H2,…,Hk-1 处的车皮可以进入车皮出口Hk。
.编程任务:
给定正整数n,和n 个车皮的初始编号a1, a2,L,an ,编程计算最少需要多少个平行轨
道才能按照规则(1)和(2)调度车皮,使车皮在车皮出口按照1,2,…,n 的顺序输出。
.数据输入:
由文件input.txt 给出输入数据。第1 行有1 个正整数n,表示有n 个车皮。第2 行是n
个车皮的初始编号a1, a2,L,an 。
.结果输出:
将计算出的最少平行轨道数输出到文件output.txt 。-optimal parallel tracks wagon scheduling problem. Problem descr iption : In a train station, k parallel track connected to a side track, the formation of a main track and k-assisted dispatching an orbit. The main track is recorded as Hk, auxiliary track from the next turn of the last recorded as H1, H2, ..., Hk-1 are shown in Fig. Including the main track entrance to the left of the wagon (credited to H0), the main track of the right to export (still recorded as Hk). No. a1, a2, L, an n-wagons from the main entrance into orbit followed by the dispatch room arrangements into cars derailed priorities, as well as cars derailed according to reorder priorities 1,2, ..., n. Room scheduling arrangements in order wagon into the derailment, to abide by the following rules : (1) H0 wagon entrance of
.问题描述:
在一个列车调度站中,k 条轨道平行连接到1 条侧轨处,形成1 条主轨道和k-1 条辅助
调度轨道。主轨道记为Hk,辅助轨道从下到上依次记为H1,H2,…,Hk-1 如下图所示。其
中主轨道左边为车皮入口(记为H0),主轨道右边为出口(仍记为Hk)。编号为a1, a2,L,an
的n 个车皮从入口依次进入主轨道,由调度室安排车皮进出轨次序,并对车皮按其出轨次序
重新排序为1,2,…,n。
调度室在安排车皮进出轨次序时,遵循以下规则:
(1)
车皮入口H0 处的车皮可以进入辅助轨道H1,H2,…,Hk-1 之一,或直接进
入车皮出口Hk。
(2)
辅助轨道H1,H2,…,Hk-1 处的车皮可以进入车皮出口Hk。
.编程任务:
给定正整数n,和n 个车皮的初始编号a1, a2,L,an ,编程计算最少需要多少个平行轨
道才能按照规则(1)和(2)调度车皮,使车皮在车皮出口按照1,2,…,n 的顺序输出。
.数据输入:
由文件input.txt 给出输入数据。第1 行有1 个正整数n,表示有n 个车皮。第2 行是n
个车皮的初始编号a1, a2,L,an 。
.结果输出:
将计算出的最少平行轨道数输出到文件output.txt 。-optimal parallel tracks wagon scheduling problem. Problem descr iption : In a train station, k parallel track connected to a side track, the formation of a main track and k-assisted dispatching an orbit. The main track is recorded as Hk, auxiliary track from the next turn of the last recorded as H1, H2, ..., Hk-1 are shown in Fig. Including the main track entrance to the left of the wagon (credited to H0), the main track of the right to export (still recorded as Hk). No. a1, a2, L, an n-wagons from the main entrance into orbit followed by the dispatch room arrangements into cars derailed priorities, as well as cars derailed according to reorder priorities 1,2, ..., n. Room scheduling arrangements in order wagon into the derailment, to abide by the following rules : (1) H0 wagon entrance of
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 31767671railqk.rar 列表 railqk\railqk.cpp railqk\railqk.pdf railqk\railqk.txt railqk