汤泽梅 郭民之 孙鹿
摘要:当给定了考生的学号、姓名等信息之后,如何快速地将一个考场内考生的座位随机安排?这是一个很有实用价值的问题。本文灵活运用了Excel中的多个函数的组合,巧妙地解决了考场的随机排座和考生座位的查找问题,并用实例进行动态演示说明。
关键词:随机排座;行列人数任意;Excel函数组合应用;动态演示
中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2018)16-0253-03
Random Seating Arrangement in the Examination Room and Dynamic Demonstration
TANG Ze-mei,GUO Min-zhi,SUN Lu
(School of Mathematics, Yunnan Normal University, Kunming 650500, China)
Abstract: How to quickly arrange the seats of examinees in an exam room when given the information of the students number, name and so forth? This is a very practical problem. This paper uses the combination of several functions in Excel flexibly, which perfectly solves the problem of random arrangement and finding of examinee seats, and uses examples to demonstrate and illustrate.
Key words: Random seating arrangement; The number of each column is arbitrary; Combination application of Excel function; Dynamic demonstration
1 引言
隨着社会的发展,越来越多的数据处理问题可以借助计算机利用专业统计软件来解决,比如SPSS,SAS,Matlab,R等,但这些软件通常操作和编程都较为复杂。而Excel是一款广为流行的大众化表格数据处理软件,操作简单,功能强大,绘图方便,内置函数丰富,还可加载自带的数据分析工具。若能将它们巧妙的组合使用,就能解决绝大多数实际数据分析问题。本文主要讨论如何运用Excel软件解决考场的随机排座问题。从已有文献来看,涂志芳[1]在研究高校校园运动会秩序册编排时,运用了Excel的函数组合解决了运动员分组、场次安排、成绩汇总等问题,提高了组织工作的准确率和效率,但编程较为复杂,不够简明;黎国胜[2]使用Excel产生随机数的方法实现了考生座位的随机编排,但不能根据考场情况改变考场内座位的行数和列数。本文利用Excel中多个函数的巧妙组合,实现了一个考场内的考生座位的随机安排,同时考场座位的列数及每列考生数都可以随机变化,这是一个目前还没有人研究过的问题。……