...由前一章我们知道,二叉查找树的性能与树的高度密切相关,所以让树中的元素尽量地平衡在树的两侧,使得树的高度尽量地低,便可提高二叉查找树的性能。红黑树(red-black tree)是许多“平衡的”查找树中的一种。 红黑树的性质 1、每个结点或是红的,或是黑的。
基于1448个网页-相关网页
It puts the scheduling entity (process) into the red-black tree and increments the nr_running variable.
它将调度实体(进程)放入红黑树中,并对nr_running变量加1。
This function simply picks the left-most task from the red-black tree and returns the associated sched_entity.
此函数只是从红黑树中获取最左端的任务并返回相关 sched_entity。
Leaves in a red-black tree contain no information, but internal nodes represent one or more tasks that are runnable.
红黑树的叶子不包含信息,但是内部节点代表一个或多个可运行的任务。
应用推荐