Algoritmer? hjælp
Hey jeg har fået stille den opgave?Problem 1:
“Suppose that in a tree, we only need to answer ancestor-descendant questions is node x an ancestor of a node y? Describe a space-efficient datastructure enabling these queries in constant time.”
men fatter den ikk?