今天研究了young tableus,把《算法导论》上该部分的题做了下,感觉还行。
An m × n Young tableau is an m × n matrix such that the entries of each row are in sorted order from left to right and the entries of each column are in sorted order from top to bottom. Some of the entries of a Young tableau may be ∞, which we treat as nonexistent elements. Thus, a Young tableau can be used to hold r ≤ mn finite numbers.
-
Draw a 4×4 Young tableau containing the elements {9, 16, 3, 2, 4, 8, 5, 14, 12}.
-
Argue that an m × n Young tableau Y is empty if Y[1, 1] = ∞. Argue that Y is full (contains mn elements) if Y[m, n]

本文探讨了Young tableaux的性质与操作,包括如何在O(m+n)时间内实现EXTRACT-MIN算法、插入新元素以及使用Young tableau进行排序。同时,文章提供了关于判断数是否存在于Young tableau中的高效算法。
最低0.47元/天 解锁文章
1590

被折叠的 条评论
为什么被折叠?



