BINARY SEARCH TREES

These are something that interest me a lot, because of their ability to have everything placed non-linearly, yet completely sorted at the same time. I can only imagine how efficiency is improved when they are used. Still, Trees and even BinaryTrees aren't particularly well-moulded in my head, and every time a __repr__ or __str__ is used on a Tree, Binary or not, I'm not quite sure what's going on. But on a conceptual level on paper, I do see what's going on which simplifies matters. This is the main reason I believe we are encouraged to draw pictures and diagrams in problem-solving, to help us conceptualize not just the problem, but the entire premise of the problem, better.

No comments:

Post a Comment