Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

The algorithm cannot get the best diff results? #151

Open
starFelix opened this issue Oct 26, 2022 · 1 comment
Open

The algorithm cannot get the best diff results? #151

starFelix opened this issue Oct 26, 2022 · 1 comment

Comments

@starFelix
Copy link

If I have two arrays like below:

A: [a, b, c]
B: [b, c, a]

the diff result will be:

[
(source:1, target:0),
(source:2,target:1)
]

In fact, we just need 1 move:

(source:0, target 2)

Is this algorithm not able to get best diff results?

@starFelix starFelix changed the title Get the best diff results? The algorithm cannot get the best diff results? Oct 26, 2022
@starFelix
Copy link
Author

And will more moving steps cause the animation to freeze?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant