Complexity-based code embeddings
Folea, Rares, Iacob, Radu, Slusanschi, Emil, Rebedea, Traian
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Jan-6-2026
- Country:
- Asia (0.46)
- North America > United States (0.14)
- Genre:
- Research Report (0.84)
- Technology:
- Information Technology > Artificial Intelligence
- Natural Language (1.00)
- Machine Learning
- Ensemble Learning (0.53)
- Decision Tree Learning (0.51)
- Neural Networks (0.47)
- Statistical Learning (0.37)
- Information Technology > Artificial Intelligence