This week we talked about traversal and binary search tree. To me these two concepts are relatively new.
For me perhaps the hardest part for traversal is the level-order visit. This concept is extremely easy to understand, however it is somewhat difficult to implement when I first try to do it during lab. Later on in the lecture the professor offers two ways to implement level-order visit, I personally prefer the iterative deepening not only because this method is easier for me to understand but its name also sounds cool.
On the other hand, binary search tree isn't much of a surprise for me since I have already encountered something similar before, i.e. the binary search. These two concepts are essentially the same; both require a sorted list/tree and we abandon half of the data by only checking one value.
No comments:
Post a Comment