Design and Implementation of Online Judge System Based on K-means Algorithm for Anti-Plagiarism
摘要
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.