I am looking for some algorithms to find similar
formulas in a quantitative way.
For example, given three formulas below:
1. test = a + 4 - b
2. test = a - 16 + 2 * b
3. test = a + 5
I can somehow calculate the similarity between them, say:
Similarity(1,2) = 0.5
Similairty(2,3) = 0.1
Is there any standard way to do so? Basically I guess I need to extract some numeric vectors from each formula, representing their features, but I don't how to do that..
Could anyone can give me some help? Thx.