arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.00924cs.LGcs.AI
收藏

基于复杂度的代码嵌入

Complexity-based code embeddings

University Politehnica of Bucharest(巴尔干理工大学)

Rares Folea, Radu Iacob, Emil Slusanschi, Traian Rebedea

AI总结:

本文提出基于r-复杂度的代码嵌入方法,实现XGBoost算法在多标签数据集上的高F1分数表现。

摘要:

本文提出了一种通用方法,通过动态分析计算机程序在不同输入下的行为,并为分析的度量标准定制多个通用复杂度函数,将各种算法的源代码转换为数值嵌入。所使用的算法嵌入基于r-复杂度。利用所提出的代码嵌入,我们实现了一个XGBoost算法,在由Codeforces平台上的真实世界代码片段构建的多标签数据集上,平均F1分数达到11类的水平。

英文摘要:

This paper presents a generic method for transforming the source code of various algorithms to numerical embeddings, by dynamically analysing the behaviour of computer programs against different inputs and by tailoring multiple generic complexity functions for the analysed metrics. The used algorithms embeddings are based on r-Complexity . Using the proposed code embeddings, we present an implementation of the XGBoost algorithm that achieves an average F1-score on a multi-label dataset with 11 classes, built using real-world code snippets submitted for programming competitions on the Codeforces platform.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑