文件名称:carsrearrangement
- 所属分类:
- 数值算法/人工智能
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 231kb
- 下载次数:
- 0次
- 提 供 者:
- try****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
车厢重排。
一列货车共有n节车厢,每个车厢都有自己的编号,编号范围从1~n。给定任意次序的车厢,通过转轨站将车厢编号按顺序重新排成1~n。转轨站共有k个缓冲轨,缓冲轨位于入轨和出轨之间。开始时,车厢从入轨进入缓冲轨,经过缓冲轨的重排后,按1~n的顺序进入出轨。缓冲轨按照先进先出方式,编写一个算法,将任意次序的车厢进行重排,输出每个缓冲轨中的车厢编号。-Cars rearrangement.
A freight train and rode a total of n cars, each car has its own number, number range from 1 ~ n. Compartment of any order given by the transition point will be re-arranged car number in sequence 1 ~ n. Transition point total of k-rail buffer, the buffer between the rail in the orbit and the derailment. Beginning of orbit into the buffer from the rail car after rail rearrangement buffer, press 1 ~ n the order into the derailment.Rail in accordance with the FIFO buffer mode, write an algorithm to order the car for any rearrangement, the output of each track in the buffer compartment number.
一列货车共有n节车厢,每个车厢都有自己的编号,编号范围从1~n。给定任意次序的车厢,通过转轨站将车厢编号按顺序重新排成1~n。转轨站共有k个缓冲轨,缓冲轨位于入轨和出轨之间。开始时,车厢从入轨进入缓冲轨,经过缓冲轨的重排后,按1~n的顺序进入出轨。缓冲轨按照先进先出方式,编写一个算法,将任意次序的车厢进行重排,输出每个缓冲轨中的车厢编号。-Cars rearrangement.
A freight train and rode a total of n cars, each car has its own number, number range from 1 ~ n. Compartment of any order given by the transition point will be re-arranged car number in sequence 1 ~ n. Transition point total of k-rail buffer, the buffer between the rail in the orbit and the derailment. Beginning of orbit into the buffer from the rail car after rail rearrangement buffer, press 1 ~ n the order into the derailment.Rail in accordance with the FIFO buffer mode, write an algorithm to order the car for any rearrangement, the output of each track in the buffer compartment number.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
车厢重排程序\Debug\LinkQueue.obj
............\.....\vc60.idb
............\.....\vc60.pdb
............\.....\练习.obj
............\.....\车厢重排.exe
............\.....\车厢重排.ilk
............\.....\车厢重排.opt
............\.....\车厢重排.pdb
............\LinkQueue.cpp
............\LinkQueue.h
............\练习.cpp
............\车厢重排.dsp
............\车厢重排.dsw
............\车厢重排.ncb
............\车厢重排.opt
............\车厢重排.plg
............\Debug
车厢重排程序
............\.....\vc60.idb
............\.....\vc60.pdb
............\.....\练习.obj
............\.....\车厢重排.exe
............\.....\车厢重排.ilk
............\.....\车厢重排.opt
............\.....\车厢重排.pdb
............\LinkQueue.cpp
............\LinkQueue.h
............\练习.cpp
............\车厢重排.dsp
............\车厢重排.dsw
............\车厢重排.ncb
............\车厢重排.opt
............\车厢重排.plg
............\Debug
车厢重排程序