据传是google的面试题 young tableaus

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天研究了young tableus,把《算法导论》上该部分的题做了下,感觉还行。

 


Problems 6-3: Young tableaus

Start example

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.

  1. Draw a 4×4 Young tableau containing the elements {9, 16, 3, 2, 4, 8, 5, 14, 12}.

  2. 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] < .

  3. Give an algorithm to implement

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值