Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wrong result for customized instance #1

@xavierwoo

Description

@xavierwoo

Hello, I compiled the code and it works well on the instances in the "test_data" folder.

However, when I create my own data, it fails.

I created a file with the following data:

3 1.0 1.0
1 0.0 0.0
2 0.0 1.0
4 1.0 0.0

I think the optimal is 3-4-1-2 or 3-2-1-4.
But the program gives 3-1-2-4.

Do I miss something?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions