![](https://csdnimg.cn/release/download_crawler_static/86298838/bg1.jpg)
35
基于改进贪心算法的大学生个性化宿舍分配方法
刘 珺
1
,易 静
2
(
1.
韶关学院校长办公室;
2.
韶关学院韶州师范分院,广东韶关
512005
)
摘要:文章首先通过搜集详细的问卷数据为依托,对学生考虑室友条件进行分析,计算出各因素权重平均值和学生的相
关数据;其次在传统贪心算法的基础上,对局部分配宿舍进行优化,选取特定的学生,以学生问卷调查填写的因素差异度
为考虑条件,选取差异度最小的学生,使他们构成一个整体,进而继续在这个整体上选取直至宿舍满员;最后通过计算机
模拟的方法对宿舍分配的随机分配方法、传统贪心算法、改进贪心算法进行比较和分析,改进贪心算法的效果要比传统
贪心算法总体上更好。
关键词:改进贪心算法;宿舍分配;差异度;模拟;个性化
中图分类号:TP301.6 文献标识码:A 文章编号:1673-1131(2019)05-0035-03
Personalized Dormitory AllocationMethodfor College Students BasedonImprovedGreedy Algorithm
Liu Jun
1
, Yi Jing
2
(
1.Shaoguan University, Office of the President;
2. Shaoguan University, Shaozhou Normal Branch, Shaoguan, 512005, Guangdong, China
)
Abstract:The article firstly analyze the students’consideration of roommate conditions relies on collecting detailed question-
naire data, calculates the average weight of each factor and the relevant data about the students. Secondly, on the basis of the tra-
ditional greedy algorithm, we optimize the local dormitory allocation method. By selecting specific student and considering the
difference conditions about the factors by students’questionnaire, we select the student with the least difference condition and
take them to a whole, then continue to select students on this method until the dormitory is full. Finally, we compare and analyze
the random allocation method, traditional greedy algorithm and improved greedy algorithm of dormitory allocation by using
computer simulation, the effects of improved greedy algorithm is better than traditional greedy algorithm.
Key words:Improved greedy algorithm; Dormitory allocation; Difference condition; Simulation; Personalized.
随着高校招生规模的不断扩大,在校大学生的人数在急
速增加,学生生源的地域性差异也在不断扩大。对于高校而
言,学生人数增长、地域差异会带来住宿资源、学生之间和谐
情况的压力,随着网络的发达,学生间的和谐程度会在一定程
度上决定着高校的安全稳定,分配宿舍就显得尤为关键。目
前比较多的学校还是采取人工对学生宿舍进行分配的做法,
这种方法虽然简单,但是随机性强、工作量大,也会造成同一
宿舍学生之间习惯、作息、爱好差异较大,容易造成宿舍不和
谐。采用先进的技术方法实现高校宿舍分配,不仅可以有效
的降低宿舍分配的人力和时间成本,还能提高分配宿舍的质
表 1 不同方法重建的视频帧平均 PSNR(上)和 SSIM(下)
从表 1 可以看出,本文方法和 NLM 方法的性能指标,比
双线性和双三次插值方法都有较大提高,与同类优秀方法
NLM 相比,PSNR 指标也具有明显优势,而 SSIM 指标性能则
比较相近。实验结果证明了本文方法的有效性,并显示本文
方法达到、甚至超过了同类优秀算法的性能。
4 结语
本文提出了一种基于结构聚类和字典学习的超分辨率重
建方法。该方法有两个特点:一是利用导控核优良的特征表
征能力和抗噪性能进行结构聚类,增强了聚类过程的准确性
和鲁棒性;二是重建过程中进行自适应的子字典学习,实现了
自适应处理,有利于重建出更多的细节信息。实验验证了本
文方法的有效性。
参考文献:
[
1
]
M. Protter, M. Elad, H. Takeda and P. Milanfar, Generali-
zingthe non-local-means to super-resolution reconstruction,
IEEE Transactions on Image Processing 18
(
1
) (
2009
)
,36 –
51.
[
2
]
W. S.Dong, L.Zhang, G. M.Shi, X. L. Wu. Image Deblurring
and Super-resolution by Adaptive Sparse Domain Selection
and Adaptive Regularization
[
J
]
. IEEE Transactions on Im-
age Processing, 2011, 20
(
7
)
: 1838-1857.
[
3
]
颜子夜, 陆耀, 李建武, 马跃. 一种基于核主成份分析的图
像超分辨率算法
[
J
]
. 山东大学学报
(
工学版
)
, 2011, 41
(
4
)
:
101-105.
[
4
]
H. Takeda, S. Farsiu, P. Milanfar. Kernel regression in image
processing and reconstruction
[
J
]
. IEEE Transactions on Im-
age Processing, 2007, 16
(
2
)
: 349-366.
基金项目:湖北省大学生创新训练项目(编号:201710512048)。
作者:简介孙玉莹(1996-),女,河南商丘人,研究方向为通信工
程;通讯作者:郭琳(1978-),女,湖北武汉人,副教授,研究方向
为信号处理、机器视觉。
2019
(Sum. No 197)
信息通信
INFORMATION & COMMUNICATIONS
2019 年第 5 期
(总第 197 期)
评论0
最新资源