在容器中设置多个矩形的算法 [英] Algorithm to set many rectangles in a container

查看:40
本文介绍了在容器中设置多个矩形的算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个算法,它给我一个矩形的最佳尺寸,把它放在一个矩形的容器中!!

所以这个算法的输入是:

高度:是容器的高度

宽度:是容器的宽度

N:是容器中所需的矩形数量



输出为:

h:小矩形的高度

w:是小矩形的宽度

I want an algorithm that give me the best dimension of a rectangular to put a number of it in a container rectangular !!
So the input for this algorithm is:
Height : is the height of the container
Width : is the width of the container
N : is the required number of rectangular to be fit in the container

the output is:
h: the height of the small rectangular
w: is the width of the small rectangular

推荐答案

尝试 https://www.google .com / search?q = shape + fitting + algorithm [ ^ ]。


这篇关于在容器中设置多个矩形的算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆