Go binary search tree
Requirements#
- Sorted array of lenght
N
Performance#
- Say an array contains
N(search space oN) elements, and we divideN/2, getting a search space ofN/2, how many steps do we need until we get down to just one an array of 1 element. O(log2 n)problem.
Implementation#
- Can be implemented recursively or non-recursively.
- An array of
Nelements.
Code#