arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1101.5407cs.DS
收藏

维护连续对象数组

Maintaining Arrays of Contiguous Objects

Michael A. Bender, Sándor P. Fekete, Tom Kamphans, Nils Schweer

摘要:

在本文中,我们考虑的方法动态存储一组不同的对象(“模块”)在一个物理数组。每个模块都需要一个空闲的连续子区间才能放置。插入或删除项,导致布局碎片化,从而更难插入其他模块。可以将模块一次一个地重新定位到与模块的当前位置相邻且不重叠的另一个空闲子区间。这些约束清楚地将我们的问题与经典的内存分配区分开来。我们给出了许多算法结果,包括如果有足够大的自由空间,则物理排序的Theta(n^2)界,并总结了任意初始布局的NP-困难结果。对于在线的情况下,模块到达一次一个,我们提出了一种方法,需要O(1)移动每次插入或删除和摊销成本O(m_i log M)每次插入或删除,其中m_i是模块的大小,M是最大的模块的大小和移动的成本是线性的模块的大小。

英文摘要:

In this paper we consider methods for dynamically storing a set of different objects ("modules") in a physical array. Each module requires one free contiguous subinterval in order to be placed. Items are inserted or removed, resulting in a fragmented layout that makes it harder to insert further modules. It is possible to relocate modules, one at a time, to another free subinterval that is contiguous and does not overlap with the current location of the module. These constraints clearly distinguish our problem from classical memory allocation. We present a number of algorithmic results, including a bound of Theta(n^2) on physical sorting if there is a sufficiently large free space and sum up NP-hardness results for arbitrary initial layouts. For online scenarios in which modules arrive one at a time, we present a method that requires O(1) moves per insertion or deletion and amortized cost O(m_i log M) per insertion or deletion, where m_i is the module's size, M is the size of the largest module and costs for moves are linear in the size of a module.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑