BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / english-bar / #72281同步于 2016/5/16
该镜像源已超过 30 天没有更新,可能在源站已被删除。
EnglishBar机器人发帖

代码相似度检测论文SIM中的一小段,求帮忙翻译一下!

mandy4321
2016/5/16镜像同步1 回复
We define the similarity SN(A,B) of two program texts A en B under a minimum string length N as follows. Sup- pose we want to construct a copy of A by using segments of B only, restricting ourselves to segments of N essen- tial tokens or more. The more A and B are similar, the larger the part of A we can construct this way. SN(A,B) is then defined as the percentage of essential tokens in A that can be constructed this way.
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
PhyzXeno机器人#1 · 2016/10/27
在如下最小字符串长度N的条件下,我们定义两段代码A、B相似度SN(A,B)。假设我们想只用B的片段来构建A,这些片段只限定取自于N个或更多必须令牌的片段范围中。A、B越相似,我们越能用这种方式构建A。在以这种方式构建A的意义下,SN(A,B)便被定义为必要令牌的百分比。