The Distance function compares row-wise for each element to see if they match. However, how does this reflect to AGraphs with the same equation tree, but with different command arrays. For example let,
command_array_1 = [[LOADX, 0, 0],
[LOADX, 1, 1],
[LOADC, 0, 0],
[MULTI, 0, 2]]
and
command_array_2 = [[LOADX, 0, 0],
[LOADC, 0, 0],
[MULTI, 0, 1],
[LOADX, 1, 1]]
And distance(command_array_1, command_array_2) = 8 since the first row is the same, and the 0 in the 1st column-index of the 2nd row-index is in both arrays. However they both describe an equation f(x) = c_0 * x_0. Should the distance reflect the AGraphs or the command arrays?
The Distance function compares row-wise for each element to see if they match. However, how does this reflect to AGraphs with the same equation tree, but with different command arrays. For example let,
and
And
distance(command_array_1, command_array_2) = 8since the first row is the same, and the 0 in the 1st column-index of the 2nd row-index is in both arrays. However they both describe an equationf(x) = c_0 * x_0. Should the distance reflect the AGraphs or the command arrays?