Giter Site home page Giter Site logo

three-space-method's Introduction

三空间划分模型

用于在集装箱等大型存储仓库中放入物品

算法思路

在集装箱中只需要装载一个货物的情况下,我们首先对需要装载的货物进行筛选,其基本**是放入空间利用率最高的货物。前文中我们已经假设货物不需只能正面朝上放置,所以我们先将放置货物空间的边长和货物的边长进行比较,如果货物的最长边和最短边都小于装载空间的最长边和最短边,则表示该货物可以放入。我们使用贪心算法,轮询并筛选出空 间利用率最大的可以放入该空间的货物。 货物放入该空间后,如上图所示,剩余空间被划分为三个空间,利用递归的**,将每一个空间作为一个新的空间,筛选并放入空间利用率最大的货物。空间划分的过程继续进行, 直到剩余空间不能放入任何现有的货物。这样,我们就可以遍历所有的情况,并找到一个装载货物的最优方案。

2019年美赛B题练习程序

three-space-method's People

Contributors

liang-hongtao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.