We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I guess the node should store all the indices for duplicated costs.
For example, [1, 2, 5, 2], then the node corresponding to the cost 2 should store indices 2 and 4. In this way, the duplication puzzle is handled.
Well, in C++, we can use std::multimap to achieve this.
Ice Cream Parlor
You are viewing a single comment's thread. Return to all comments →
I guess the node should store all the indices for duplicated costs. For example, [1, 2, 5, 2], then the node corresponding to the cost 2 should store indices 2 and 4. In this way, the duplication puzzle is handled.
Well, in C++, we can use std::multimap to achieve this.