This paper proposes a method and technology for combining code similarity analysis with the K-means algorithm to achieve a safe, high-level, and plagiarism detection-enabled Online Judge system. The system utilizes Docker containers to effectively prevent malicious code from impacting the system and safeguard the privacy of user-submitted code. By calculating the feature vectors of code to describe its characteristics, the K-means algorithm is employed to cluster these feature vectors for similarity analysis of code blocks. Experimental results demonstrate that the system holds practical application value in enhancing the accuracy and security of code evaluation.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Design and Implementation of Online Judge System Based on K-means Algorithm for Anti-Plagiarism

  • Kaiwei Cen,
  • Yunfei Yi,
  • Yuanyuan Fan

摘要

This paper proposes a method and technology for combining code similarity analysis with the K-means algorithm to achieve a safe, high-level, and plagiarism detection-enabled Online Judge system. The system utilizes Docker containers to effectively prevent malicious code from impacting the system and safeguard the privacy of user-submitted code. By calculating the feature vectors of code to describe its characteristics, the K-means algorithm is employed to cluster these feature vectors for similarity analysis of code blocks. Experimental results demonstrate that the system holds practical application value in enhancing the accuracy and security of code evaluation.