文件名称:matching
介绍说明--下载内容均来自于网络,请自行研究使用
利用循环队列模拟舞伴配对问题:在舞会上,男、女各自排成一队。舞会开始时。依次从男队和女队的队头各出一人配成舞伴。如果两队初始人数不等,则较长的那一队中未配对者等待下一轮舞曲。假设初始男、女人数及性别已经固定,舞会的轮数从键盘输入。-Simulation using circular queue partner matching problem: at the ball, male and female each queue. Party starts. Turn from the men' s and women' s teams from each of the team that first one dubbed partner. If the initial number of teams ranging from teams which are not longer wait for the next round of the dance counterpart. Assume that the initial men, women, age and sex have been fixed, the number of rounds the ball from the keyboard input.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
matching.doc