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

可堆序列和子序列

Heapable Sequences and Subsequences

John Byers, Brent Heeringa, Michael Mitzenmacher, Georgios Zervas

摘要:

让我们称一个数字序列是可堆的,如果它们可以顺序插入以形成具有堆属性的二叉树,其中第一次插入之后的每个插入都发生在树的叶子上,即在先前放置的数字之下。在本文中,我们考虑了各种问题的堆序列和序列,似乎没有被研究过。我们提出这些概念的动机是双重的。首先,这样的问题对应于自然延伸的著名的秘书问题,雇用一个组织的层次结构。其次,从纯组合的角度来看,我们的问题是类似的最长递增子序列问题的有趣变化,这是一个导致许多深刻的数学联系的问题范式。我们提供了几个基本的结果。我们得到了一个判定序列可堆性的有效算法,并证明了序列能否排在完全二叉堆中的问题是NP-难的。关于连续性,我们表明,以高概率,最长的可堆的子序列的随机排列的n个数字的长度为(1 - o(1))n,和子序列的长度(1 - o(1))n实际上可以找到在线高概率。同样,我们证明了对于一个随机置换,对于常数α,可以以很高的概率找到一个产生大小为αn的完全堆的子序列。我们的工作突出了这类子序列问题的有趣结构,我们留下了许多有趣的变化,为未来的工作开放。

英文摘要:

Let us call a sequence of numbers heapable if they can be sequentially inserted to form a binary tree with the heap property, where each insertion subsequent to the first occurs at a leaf of the tree, i.e. below a previously placed number. In this paper we consider a variety of problems related to heapable sequences and subsequences that do not appear to have been studied previously. Our motivation for introducing these concepts is two-fold. First, such problems correspond to natural extensions of the well-known secretary problem for hiring an organization with a hierarchical structure. Second, from a purely combinatorial perspective, our problems are interesting variations on similar longest increasing subsequence problems, a problem paradigm that has led to many deep mathematical connections. We provide several basic results. We obtain an efficient algorithm for determining the heapability of a sequence, and also prove that the question of whether a sequence can be arranged in a complete binary heap is NP-hard. Regarding subsequences we show that, with high probability, the longest heapable subsequence of a random permutation of n numbers has length (1 - o(1)) n, and a subsequence of length (1 - o(1)) n can in fact be found online with high probability. We similarly show that for a random permutation a subsequence that yields a complete heap of size αn for a constant αcan be found with high probability. Our work highlights the interesting structure underlying this class of subsequence problems, and we leave many further interesting variations open for future work.

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

↑