The Design and Implementation of an Automatic Program-judging System

Author
QianHaiDai
Advisor
HanHong
School
University of Electronic Science and Technology
Major
Information and Communication Engineering
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2013
Downloads
17
Citations
0

Request the full text

Abstract

In the field of Computer Education, especially program design courses, it costsgreat efforts of teachers to manually judge source codes and programs and it is alsodifficult to guarantee fair results. Therefore, the automatic program-judging system hasbeen attracting more and more attention.At present, the most widely used automatic program-judging system is theACM/ICPC system. However, the ACM/ICPC program-judging system is notapplicable to most of the program design courses due to the following three reasons.First, besides ACM-related exercises, there are other types of exercises in the filed ofEngineering Education, such as the file-operations, the network-connections and so on.Second, teachers hope the system can judge the program from different perspectives justlike manual judging, offering a specific score and detailed reasons. But the ACM/ICPCsystem can only judge the program to be either right or wrong. Moreover, teachers hopethe system to provide some frequently-used functions to improve class teaching.To address these problems, this thesis introduced a new automatic program-judgingsystem which can judge different types of exercises to meet diversified practicaldemands, select different methods to judge whether the program is right or wrong inaccordance with the requirements of the exercise, offer detailed reasons for suchjudging, and facilitate class teaching.In order to judge different types of exercises, this thesis introduces a judgingmethod which is different from that of ACM/ICPC system. First, this system includesseveral judging strategies, and the specific judging process is designed according to therequirements of teachers. When the system is running, it will choose the correspondingjudging method in accordance with the type the program belongs to. This system iscapable of judging three types of exercises, covering a great majority of the programs inprogram design courses.This thesis also put forward a method to divide the judging task into severalindependent groups of smaller tasks so as to solve the problem that one time judgingmay give a wrong result. Through dividing the judging steps and inviting teachers to assign specific scores to each group or each step, this system can give an exact score byjudging the program from many different perspectives.With regard to the security of the judging system, this thesis suggests to run theprogram in virtual machine. Programs running in the virtual machine cannot destroy thejudging system on the host machine or the operating environment, while the destroyedmodule of judging system in the virtual machine could be recovered by the snapshot.Besides, this thesis has handled the problems that destabilizing factors may cause.Now there are several programming courses have replaced the manually judgingwith this system to judge the homeworks and examinations. This system works well.

Table of contents

Summary 5-6 ABSTRACT 6-12 first chapter 12-16 1.1 research background 12-13 1.2 domestic and foreign research status marking system 13-14 1.2.1 ACM competitions 13 1.2.2 based ACM / ICPC marking system to improve system 13-14 1.3 main research topics 14-15 1.4 content herein arrangements 15-16 the second chapter describes the development of technology -related 16-23 2.1 system design and development principles 16-17 2.2 SSH open source framework 17-19 2.2.1 Struts Overview 17 2.2.2 Spring Overview 17 2.2.3 Hibernate Overview 17-18 2.2.4 SSH structure 18-19 <br / > 2.3 design patterns 19-21 2.3.1 strategists mode 19-20 2.3.2 factory method 20-21 2.4 JAVA local calls 21 2.5 VMRUN with the VIX API Profile 21-22 2.6 Summary 22-23 Chapter III system Design 23-34 3.1 system Requirements Analysis 23-24 3.2 system functions and features 24-26 3.2.1 main functions 24-25 3.2.2 system is an important feature of 25-26 3.3 system architecture 26-28 3.3.1 select B / S structure 26-27 3.3.2 system Architecture Design 27-28 3.4 system development environment 28 3.5 system hierarchical design 28 -31 3.5.1 persistence layer design 28-29 3.5.2 Yewuluojiceng design 29-30 3.5.3 presentation layer design 30-31 3.6 system database design 31-33 3.7 Summary solve 33-34 Chapter Four key issues 34 - 64 4.1 plug-in multi- language compiler -based mechanisms factory method 34-41 way 4.1.1 compiler design plug-in 35-36 4.1.2 according to the kinds of questions compiled automatically match the way 36-41 4.1.2.1 using the factory method to remove the judge sentences designed specifically compiled 36-37 4.1.2.2 way 37-39 4.1.2.3 using inversion of control is the key for the assignment 39-41 4.2 grade scoring mechanism 41-43 4.2.1 test Group and test step 41-42 4.2.2 design Title information 42-43 4.3 based plug-in mechanism for multi- strategy questions by mode 43-52 4.3.1 plug-in is designed to expand the kinds of questions 44-45 4.3.2 analysis of common questions 45-48 4.3.3 design of common questions marking strategy nbsp type ; 48-49 4.3.4 implementation 49-52 4.3.4.1 obtain title information 49 4.3.4.2 specific correcting method 49-50 4.3.4.3 using inversion of control strategy configuration marking 50-52 4.4 -based virtual machine technology security mechanisms 52-56 4.4.1 ACM / ICPC system on system security processing 52-53 4.4.2 using virtual machine technology 53-56 4.5 system stability Mechanism 56-63 4.5.1 marking tasks execute independently 56-60 4.5.1.1 Manager client 56-58 4.5.1.2 Server -side 58 4.5.1.3 multi- mode execution marking tasks 58-60 4.5.2 prevent the destruction of the user to check the code 60-63 4.5. 2.1 use a proxy DLL 61 4.5.2.2 realization 61-63 4.6 Summary 63-64 Chapter V system implementation 64-80 5.1 compiler module 64-66 5.1.1 compiler processes 64-65 5.1.2 implementation 65-66 5.2 evaluation module 66-76 5.2.1 evaluation process 66-67 5.2.2 implementation 67 - 73 5.2.2.1 Manager client 67-68 5.2.2.2 Server -side 68-69 5.2.2.3 marking tasks related to the implementation of the class 69 -73 5.2.3 nbsp process to achieve a settlement of difficult issues ; 73-76 5.2.3.1 marking time to achieve control 73-75 5.2. 3.2 to achieve the correct procedure throws 75-76 5.3 scoring module 76-77 5.4 teaching function of the specific implementation 77-79 <br / > 5.5 Chapter Summary 79-80 Chapter VI system testing 80-85 6.1 system automatically correcting function test 80-83 6.1. 1 mark ACM topic 80-81 6.1.2 correcting validation class title 81-82 6.1.3 free type marking topic 82-83 <br / > 6.2 system used in the actual teaching 83-84 6.3 summary 84-85 Chapter VII summary and Outlook 85-87 <br / > 7.1 This article summarizes 85-86 7.2 future work 86-87 Thanks 87-88 References 88 - 91 master's findings during 91-92