Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Improve memory management through tree size estimation #3

Open
ktnr opened this issue Apr 29, 2022 · 0 comments
Open

Improve memory management through tree size estimation #3

ktnr opened this issue Apr 29, 2022 · 0 comments
Labels
performance Performance improvements

Comments

@ktnr
Copy link
Owner

ktnr commented Apr 29, 2022

The required capacity is not known in advance, therefore we need an estimation of the (sub)tree size.

////this->tree.m_vertices.reserve(250000000);

////this->tree.m_vertices.reserve(250000000);

Consider using the following relevant parameters:

  • The epsilon parameter from Clautiaux, F., Carlier, J., & Moukrim, A. (2007). A new exact method for the two-dimensional orthogonal packing problem. European Journal of Operational Research, 183(3), 1196-1211, in combination with
  • the distribution of items sizes, whereas the hardest instances are those where all items are smaller than half of the bin's width and height,
  • item count, and
  • the number of normal pattern placements points (which correlates with the homogeneity of items).

Generally, (significant) overestimation is fine, but might degrade performance for smaller instances.

@ktnr ktnr added the performance Performance improvements label Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance improvements
Projects
None yet
Development

No branches or pull requests

1 participant