[理工] [DS]100台大电机丙 多选第十题

楼主: Billgaspeed (Billgaspeed)   2016-02-14 17:52:55
(A)The number of rotations per insert/delete operation in a
Red-Black tree is O(log n)
想问这个选项哪里错误阿?
不是根据他的高度 log n 决定的吗?
而且Red Black Tree 没有skewed tree 的问题吧?
还是我疏漏啥了QQ
作者: goldflower (金色小黄花)   2016-02-14 19:00:00
他是问rotation次数 不是执行时间
楼主: Billgaspeed (Billgaspeed)   2016-02-14 20:13:00
次数跟高度没有关系吗? 所以这题应该填多少QQ
作者: WES2163818 (ka)   2016-02-14 20:38:00
constant
作者: janus7799 (Janus逍遥)   2016-02-14 22:35:00
不知道他的rotation有没有包含color change,没算的话就是O(1)

Links booklink

Contact Us: admin [ a t ] ucptt.com