天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

當(dāng)前位置:主頁 > 科技論文 > 軟件論文 >

C語言編程題在線評測系統(tǒng)的設(shè)計與研究

發(fā)布時間:2018-05-04 17:39

  本文選題:抽象語法樹 + 靜態(tài)分析 ; 參考:《北京交通大學(xué)》2017年碩士論文


【摘要】:近年來,網(wǎng)絡(luò)在線教學(xué)系統(tǒng)不斷的發(fā)展與推廣,其中針對程序語言的在線評測技術(shù)能夠減輕老師巨大的工作量,同時給學(xué)習(xí)者的反饋結(jié)果更加準(zhǔn)確及時。因此該課題逐漸成為了熱門研究領(lǐng)域。目前針對程序題的評分策略有動態(tài)檢測方法和靜態(tài)分析方法。其中以動態(tài)檢測為主的系統(tǒng)更傾向于競賽模式的Online-Judge,對于結(jié)果要求嚴(yán)格,對編程者綜合素質(zhì)要求高,評測的關(guān)注點聚焦于算法的結(jié)果和性能。而采用靜態(tài)分析方法的系統(tǒng)則偏向于注重算法邏輯,降低對結(jié)果實現(xiàn)的標(biāo)準(zhǔn)。本課題的研究所針對的使用人群為非計算機專業(yè)的學(xué)生與編程愛好者。這類用戶在追求程序結(jié)果準(zhǔn)確的基礎(chǔ)上更多需要考察的是對題目思考過程的邏輯思維能力與對程序的理解能力。并且對于國內(nèi)高校的教學(xué)而言,充分考慮學(xué)生答題思路,給予步驟分才是合理的考察評分標(biāo)準(zhǔn)。因此對程序進行合理客觀的評分是本文想要解決的重點問題,具有理論及現(xiàn)實的意義。本文將采用動態(tài)檢測與靜態(tài)分析相結(jié)合的方法來完成此次課題的研究,該方案的具體實現(xiàn)大體上分為兩層處理模式:首先如果程序可執(zhí)行,則進入動態(tài)檢測,通過測試用例驅(qū)動評分;其次是當(dāng)程序不可執(zhí)行或是運行中出現(xiàn)異常無法運行成功時,則進入靜態(tài)分析,通過對程序進行基于關(guān)鍵字匹配的知識點評分與基于抽象語法樹匹配的程序結(jié)構(gòu)評分,來綜合獲取得分。在靜態(tài)分析的研究中,本文模擬人工批改的思維模式提出了“知識點與程序結(jié)構(gòu)相結(jié)合”的綜合評分方案,該方案首先采用關(guān)鍵詞匹配的相似度計算方法來解決知識點評分的問題,其次,對程序的語法結(jié)構(gòu)進行匹配,采用抽象語法樹為程序轉(zhuǎn)換的中間表示形式,將學(xué)生程序與標(biāo)準(zhǔn)模板程序都轉(zhuǎn)化為這種數(shù)據(jù)載體后,先做消除冗余優(yōu)化處理,之后在基于抽象語法樹的算法上進行改進實現(xiàn)程序結(jié)構(gòu)的匹配評分。最終程序經(jīng)過靜態(tài)分析所得的分?jǐn)?shù)是由知識點得分與程序結(jié)構(gòu)得分兩者共同決定。本文在調(diào)查研究過現(xiàn)有的在線評測系統(tǒng)和代碼設(shè)計類CAI的基礎(chǔ)上,根據(jù)某院校的真實教學(xué)需求開發(fā)設(shè)計并實現(xiàn)了 C語言編程題在線評測系統(tǒng),并將“動態(tài)評測與靜態(tài)分析相結(jié)合”的方法應(yīng)用到該系統(tǒng)的評分模塊中。實驗結(jié)果表明:該方法能夠綜合程序的語法結(jié)構(gòu)與語義分析來計算與模板程序的接近程度,評分結(jié)果與人工評閱結(jié)果基本一致。
[Abstract]:In recent years, the network online teaching system has been developing and popularizing. The online evaluation technology for program language can reduce the huge workload of teachers and give learners more accurate and timely feedback. Therefore, the subject has gradually become a hot research field. At present, there are dynamic detection methods and static analysis methods for the scoring strategies of program problems. The system based on dynamic detection is more inclined to contest Online-Judge.It requires strict results and high quality of programmers. The focus of evaluation is focused on the results and performance of the algorithm. The static analysis system tends to pay attention to the algorithm logic and reduce the standard of the result realization. This study aims at non-computer major students and programming enthusiasts. On the basis of the accuracy of the program, this kind of user needs to investigate the logical thinking ability and the understanding ability of the program. And for the teaching of colleges and universities in China, it is reasonable to consider the students' thinking of answering questions and give them step points. Therefore, the reasonable and objective evaluation of the procedure is the key problem to be solved in this paper, which has theoretical and practical significance. This paper will adopt the method of combining dynamic detection and static analysis to complete the research of this subject. The concrete implementation of this scheme is divided into two layers: first, if the program can be executed, then it can enter the dynamic detection. The test case driven score is followed by static analysis when the program is not executable or when an exception does not work. The score is obtained by scoring the knowledge points based on keyword matching and the program structure score based on abstract syntax tree matching. In the study of static analysis, this paper puts forward a comprehensive scoring scheme of "combination of knowledge points and program structure", which simulates the thinking mode of manual correction. Firstly, the method of calculating the similarity of keyword matching is used to solve the problem of the score of knowledge points. Secondly, the syntax structure of the program is matched, and the abstract syntax tree is used as the intermediate representation of the transformation of the program. After the student program and the standard template program are transformed into this kind of data carrier, the redundant optimization is eliminated first, and then the matching score of the program structure is improved on the algorithm based on abstract syntax tree. The score of the final program through static analysis is determined by both the knowledge point score and the program structure score. Based on the investigation and research of the existing online evaluation system and the code design class CAI, this paper designs and implements the online evaluation system of C language programming questions according to the real teaching requirements of a certain college. The method of combining dynamic evaluation with static analysis is applied to the scoring module of the system. The experimental results show that this method can integrate the syntax structure and semantic analysis of the program to calculate the close degree to the template program, and the score results are basically consistent with the manual evaluation results.
【學(xué)位授予單位】:北京交通大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2017
【分類號】:TP312.1-4;G434

【參考文獻】

相關(guān)期刊論文 前10條

1 肖崇星;李郴;曹曉灑;;基于代碼相似性算法的敵對題發(fā)現(xiàn)問題研究[J];無線互聯(lián)科技;2017年01期

2 王力洪;;基于關(guān)鍵字和序列匹配的自動評分算法的研究[J];福建電腦;2015年12期

3 李洪剛;;試論匯編語言與C語言的混合程序設(shè)計技術(shù)[J];電子世界;2015年18期

4 朱保鋒;宋艷;;一種改進的BM算法性能分析[J];中州大學(xué)學(xué)報;2015年03期

5 田冰川;孫珂;巢漢青;;簡化GCC抽象語法樹的新型算法[J];計算機科學(xué);2015年S1期

6 楊超;;基于多種技術(shù)的混合式程序代碼抄襲檢測方法[J];計算機工程與應(yīng)用;2016年18期

7 朱波;鄭虹;孫琳琳;楊友星;;基于AST的程序代碼相似性度量研究[J];吉林大學(xué)學(xué)報(信息科學(xué)版);2015年01期

8 嚴(yán)大治;;字符串匹配算法比較與分析[J];計算機光盤軟件與應(yīng)用;2013年02期

9 鄧愛萍;徐國梁;肖奔;;程序源代碼剽竊檢測串匹配算法的研究[J];計算機工程與科學(xué);2008年03期

10 郜瑜;;詞法分析及其C語言實現(xiàn)[J];山西電子技術(shù);2007年03期

相關(guān)博士學(xué)位論文 前1條

1 尹杰;基于編譯器中間語言的軟件運行時可靠性研究[D];清華大學(xué);2015年

相關(guān)碩士學(xué)位論文 前1條

1 佘石泉;編程題自動閱卷技術(shù)的研究與實現(xiàn)[D];中南大學(xué);2007年



本文編號:1843956

資料下載
論文發(fā)表

本文鏈接:http://sikaile.net/kejilunwen/ruanjiangongchenglunwen/1843956.html


Copyright(c)文論論文網(wǎng)All Rights Reserved | 網(wǎng)站地圖 |

版權(quán)申明:資料由用戶05935***提供,本站僅收錄摘要或目錄,作者需要刪除請E-mail郵箱bigeng88@qq.com
日韩特级黄色大片在线观看| 午夜直播免费福利平台| 国产美女精品午夜福利视频| 空之色水之色在线播放| 人妻少妇av中文字幕乱码高清| 国产欧美日韩在线一区二区| 国产麻豆精品福利在线| 亚洲女同一区二区另类| 久久久精品区二区三区| 久久久精品日韩欧美丰满| 国产亚洲精品香蕉视频播放| 国产在线视频好看不卡| 东京热男人的天堂久久综合| av国产熟妇露脸在线观看| 清纯少妇被捅到高潮免费观看| 91国内视频一区二区三区| 日本三区不卡高清更新二区| 亚洲一区二区精品国产av| 1024你懂的在线视频| 极品熟女一区二区三区| 亚洲高清一区二区高清| 国产在线观看不卡一区二区| 欧美日韩人妻中文一区二区| 四十女人口红哪个色好看| 日韩欧美国产精品自拍| 在线观看中文字幕91| 亚洲国产精品国自产拍社区| 亚洲精品一区二区三区免| 爱草草在线观看免费视频| 日韩精品一区二区不卡| 内射精品欧美一区二区三区久久久 | 91插插插外国一区二区| 视频一区二区三区自拍偷| 中文人妻精品一区二区三区四区| 国产内射在线激情一区| 男女激情视频在线免费观看| 欧美字幕一区二区三区| 久久中文字幕中文字幕中文| 丝袜破了有美女肉体免费观看| 国产精品免费无遮挡不卡视频| 精品日韩av一区二区三区|