多选题
24.腹腔双套管灌洗引流的目的是:( )
A
引流作用
B
冲洗作用
C
减少胰液对机体的损害
D
减少胰腺坏死组织对机体刺激
E
减少毒素对机体的刺激
答案解析
正确答案:ABCDE
解析:
腹腔双套管灌洗引流的目的是:( ) A. 引流作用 B. 冲洗作用 C. 减少胰液对机体的损<|endoftext|>Transitive Reduction of Binary Relations
Consider a directed binary relation $R$ on the set $X$. For this relation, I would like to know what elements in $X$ are transitively related to each other.
I could compute the transitive closure of $R$ and then do a search for elements which are connected to each other in the graph representation of the transitive closure.
Is there a better way? In particular, can I avoid computing the entire transitive closure?
pyotiny 2013-01-07: This can be done more efficiently than computing the entire transitive closure. Since you only care about whether two nodes are in the same equivalence class, you could use a union-find data structure to track this. Initially, each element is in a different equivalence class, and each element is its own parent. Then you perform a depth-first search of $R$, calling the Union function whenever you find that an element is in the same equivalence class as another. The Union function will combine the two equivalence classes into one.
Let $n$ be the number of elements in $X$, and let $m$ be the number of pairs in $R$. Using the union-find data structure takes $O(n \log n + m)$ time. The time for union-find is dominated by the $O(n \log n)$ term, because the $O(m)$ term can be absorbed by the $O(n \log n)$ term by using the fact that $m = O(n^2)$. (If $m = O(n)$, then we can use a different data structure such as a hash table instead of union-find to get $O(m + n \log n)$ time.)
I believe that the time can be further improved, to $O(n \alpha(n) + m)$ time, where $\alpha(n)$ is the extremely slow-growing inverse Ackermann function. Hopcroft's 1974 paper "An $n \log n$ algorithm for minimizing states in a finite automaton" gives a plan for doing this on the middle of page 262. However, even though the author promises to give more details later, I could not actually find those details later in the paper! The details can be found in Tarjan's 1983 paper "Data structures and network algorithms" on page 113, but it requires a lot of background from the rest of the paper, so it's not an easy read. I believe the details can also be found in Sleator and Tarjan's 1983 paper "A data
题目纠错
相关题目
单选题
1.床上铺橡胶单,其上端距床头相当于( )
单选题
20.给长期卧床病人进行按摩,错误的是( )
单选题
19.尸体料理中,错误的是( )
单选题
18.高热病应用冰袋降温时,冰袋不能放置在( )
单选题
17.为病人吸痰时导致缺氧加重,每次抽吸的时间应( )
单选题
16.膀冲洗时冲洗液的温度为( )
单选题
15.胆道T形引流管冲洗后注入33%硫酸镁15-20mL的目的是( )
单选题
14.大量不保留灌肠时灌肠筒的液面应高于肛门( )
单选题
13.当外界温度高于人体皮肤温度时,人体唯一的散热方式是( )
单选题
12.三大营养物质在体内氧化时所释放的能量用来维持体温的能量占总量的( )
