Struct_chapter3_Tree
3.1 tree and the expression of tree
- concept of tree
an excellent struct to expresses hierarchical relationship(层次关系) - more efficienct
- Searching
- 0x01 static searching
notice
: 哨兵(tag)
two probable status to exit :
1.find K in list(return index)
2.no K except the station of tag(return 0)
3.时间复杂度o(n) [n/2]
- 0x02 binary search(二分查找)
- 不可采用chain list [one-way]
status 1 find correct answer
status 2 no correct answer
realization and enlightenment