We give a simple algorithm that labels the nodes of a rooted tree such that from the labels of two nodes alone one can compute in constant time the label of their nearest common ancestor. The labels assigned by out algorithm are of size O(log n) bits where n is the number of nodes on the tree. The algorithm runs in O(n) time.
Udgivelsessted | Copenhagen |
---|
Forlag | IT-Universitetet i København |
---|
Udgave | TR-2001-6 |
---|
Antal sider | 14 |
---|
ISBN (Elektronisk) | 87-7949-008-5 |
---|
Status | Udgivet - aug. 2001 |
---|
Udgivet eksternt | Ja |
---|
Navn | IT University Technical Report Series |
---|
Nummer | TR-2001-6 |
---|
ISSN | 1600-6100 |
---|