L
L
lilota2014-06-28 19:02:41
Programming
lilota, 2014-06-28 19:02:41

How to write an algorithm for a binary search tree?

The assignment says, consider a binary search tree: Add a dummy leaf v so that all pointers (left or right) that were NULL in the beginning now point to that leaf. Think about how you can speed up the algorithm so that all requests for NULL are ignored.
Can you help me figure out how to write this algorithm in pseudocode?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yttrium, 2014-06-28
@yttrium

I advise you to refuse PhD

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question