You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The immut/priority_queue in the current core uses the pairing-heap algorithm, which only folds the entire heap when querying the results. Other operations are O(1). Although its constant is very small and the average complexity can be O(log n). But if it is in the case of immutable, it is likely to cause too much time to be spent on a certain version of the operation, resulting in an invalid average complexity. We should use algorithms that can maintain stable complexity even in immutable situations.
The text was updated successfully, but these errors were encountered:
The immut/priority_queue in the current core uses the pairing-heap algorithm, which only folds the entire heap when querying the results. Other operations are O(1). Although its constant is very small and the average complexity can be O(log n). But if it is in the case of immutable, it is likely to cause too much time to be spent on a certain version of the operation, resulting in an invalid average complexity. We should use algorithms that can maintain stable complexity even in immutable situations.
The text was updated successfully, but these errors were encountered: