摘要
针对数据库机器学习过程中的存储过程评估问题,提出基于AST的存储过程自动评估模型。从静态评估的角度,给出了模型的整体框架;以构建存储过程的抽象语法树AST(Abstract Syntax Tree)为分析基础,通过改进的树编辑距离映射的代价模型,计算用户存储过程代码和目标程序之间的相似度;最后,利用学习样例说明了评估方法的有效性。
In light of the stored procedure assessment issue in machine learning process of database,in this paper we propose an automatic stored procedure assessment model which is based on Abstract syntax tree(AST),and set up an overall framework for the model from static assessment perspective.That is,the calculation of the similarities between the users' stored procedure code and the target program is based on the analysis of constructing Abstract syntax tree of the stored procedure and through the mapped cost model of the improved edit distance of tree.Finally,the learning samples are used to state the effectiveness of the assessment method.
出处
《计算机应用与软件》
CSCD
北大核心
2013年第3期170-173,共4页
Computer Applications and Software
基金
宿迁学院教学改革研究项目(2011YJG08)
关键词
存储过程
AST
相似度
树编辑距离
Stored procedure Abstract syntax tree(AST) Similarity Edit distance of tree