I've got to do some stuff with binary trees and binary search trees, but I'm having difficulty with it and was wondering if there might be some people here who could offer me help.
1) What's the difference between a binary tree and a binary search tree?
2) If I have a set of integers, say x = [5, 7, 12, 2, 4, 18, 9, 10, 1] and I have to put these into a binary tree, how do I decide where each integer goes, ie how do I decide what is the root, what are its children etc.
3) Same as above for a binary search tree. Are there any differences?
Thanks.