文件名称:linkqueue
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:995.53kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
利用队列结构实现车厢重排问题。车厢重排问题如下:
一列货车共有n节车厢,每个车厢都有自己的编号,编号范围从1~n。给定任意次序的车厢,通过转轨站将车厢编号按顺序重新排成1~n。转轨站共有k个缓冲轨,缓冲轨位于入轨和出轨之间。开始时,车厢从入轨进入缓冲轨,经过缓冲轨的重排后,按1~n的顺序进入出轨。缓冲轨按照先进先出方式,编写一个算法,将任意次序的车厢进行重排,输出每个缓冲轨中的车厢编号。
-Compartments use the queue structure to achieve the rearrangement problem. Rearrangement inside the following: a freight train and rode a total of n cars, each car has its own number, number range from 1 ~ n. The cars in any order given by the transition points will be re-arranged in order inside number 1 ~ n. Transition rail stations a total of k-buffer, the buffer between the rail in the orbit and the derailment. Initially, rail cars into the buffer from the orbit, after the rearrangement of the buffer track, press 1 ~ n the order into the derailment. Rail in accordance with the FIFO buffer mode, write an algorithm for arbitrary rearrangement of the order of the cars, the output of each track in the buffer compartment number.
一列货车共有n节车厢,每个车厢都有自己的编号,编号范围从1~n。给定任意次序的车厢,通过转轨站将车厢编号按顺序重新排成1~n。转轨站共有k个缓冲轨,缓冲轨位于入轨和出轨之间。开始时,车厢从入轨进入缓冲轨,经过缓冲轨的重排后,按1~n的顺序进入出轨。缓冲轨按照先进先出方式,编写一个算法,将任意次序的车厢进行重排,输出每个缓冲轨中的车厢编号。
-Compartments use the queue structure to achieve the rearrangement problem. Rearrangement inside the following: a freight train and rode a total of n cars, each car has its own number, number range from 1 ~ n. The cars in any order given by the transition points will be re-arranged in order inside number 1 ~ n. Transition rail stations a total of k-buffer, the buffer between the rail in the orbit and the derailment. Initially, rail cars into the buffer from the orbit, after the rearrangement of the buffer track, press 1 ~ n the order into the derailment. Rail in accordance with the FIFO buffer mode, write an algorithm for arbitrary rearrangement of the order of the cars, the output of each track in the buffer compartment number.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
09210448夏昕昕实验二栈和队列/Debug/t1.exe
09210448夏昕昕实验二栈和队列/Debug/t1.ilk
09210448夏昕昕实验二栈和队列/Debug/t1.obj
09210448夏昕昕实验二栈和队列/Debug/t1.pch
09210448夏昕昕实验二栈和队列/Debug/t1.pdb
09210448夏昕昕实验二栈和队列/Debug/vc60.idb
09210448夏昕昕实验二栈和队列/Debug/vc60.pdb
09210448夏昕昕实验二栈和队列/Debug
09210448夏昕昕实验二栈和队列/t1.cpp
09210448夏昕昕实验二栈和队列/t1.dsp
09210448夏昕昕实验二栈和队列/t1.dsw
09210448夏昕昕实验二栈和队列/t1.ncb
09210448夏昕昕实验二栈和队列/t1.opt
09210448夏昕昕实验二栈和队列/t1.plg
09210448夏昕昕实验二栈和队列/实验报告.doc
09210448夏昕昕实验二栈和队列
09210448夏昕昕实验二栈和队列/Debug/t1.ilk
09210448夏昕昕实验二栈和队列/Debug/t1.obj
09210448夏昕昕实验二栈和队列/Debug/t1.pch
09210448夏昕昕实验二栈和队列/Debug/t1.pdb
09210448夏昕昕实验二栈和队列/Debug/vc60.idb
09210448夏昕昕实验二栈和队列/Debug/vc60.pdb
09210448夏昕昕实验二栈和队列/Debug
09210448夏昕昕实验二栈和队列/t1.cpp
09210448夏昕昕实验二栈和队列/t1.dsp
09210448夏昕昕实验二栈和队列/t1.dsw
09210448夏昕昕实验二栈和队列/t1.ncb
09210448夏昕昕实验二栈和队列/t1.opt
09210448夏昕昕实验二栈和队列/t1.plg
09210448夏昕昕实验二栈和队列/实验报告.doc
09210448夏昕昕实验二栈和队列
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.