Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Prozak

Math & Mem: Boxes in a Volume

This topic is 5300 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I''m studying some memory pool manager implementations, the context being game 3D engines. I remember a math problem that involved puting as many small volumes (boxes) into a larger volume (the back of a truck, for example), and trying to devise an algorithm that would consistently get as close to the best solution as many times as possible. I remember that the algorithm reached was fast and simple enough to be used in real life, and it usually got 85% near the "perfect" solution. Now, back to the subject of memory managing, i basicly have a big volume, or several big volumes, where I have to "store" smaller volumes (the allocations themselfs). So I thought the Volumes & Boxes math problem with be a great read to get some more insight into memory managing... Has any of you heard of the algorithm? What do you think of this? Salsa cooked it, your eyes eat it!
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][My DevDiary]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
                          Prozak - The GameDever formally known as pentium3id

Share this post


Link to post
Share on other sites
Advertisement
I believe you are referring to the greedy algorithm. It''s not so much an algorithm as it is an approach to the problem.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!