Tony's Log

Algorithms, Distributed System, Machine Learning

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

Key points for this one:

- Relate the comparison process to BST search
- Reasoning on extreme values: "We can notice that for a fixed  the maximum sum of depths is achieved when every node has just a left child and the minimum sum of depths os achieved when the binary tree is an almost complete binary tree."
- We iteratively construct resulting tree from the degenerated BST

Note: this one is very interesting, deserving several revisit.

posted on 2018-01-16 13:53  Tonix  阅读(177)  评论(0编辑  收藏  举报