External sorting: Winner tree defeat tree

Source: Internet
Author: User

Sort is the outbound

The winner tree and the loser tree can find the most value in the log (n) time, but if you only find the most value, it is a little useless, and the number of records on the intermediate node is meaningless. The significance is that, after the value of any leaf node changes, the information of the intermediate node can still be used to quickly find the most value. It is often used in K-path Merge Sorting.

Therefore, after changing the value of a leaf node, the winner tree and the loser tree are reconstructed in different ways. The loser tree is only related to the records of the root node of the node, the winner tree is related to the brother node of the node. There is also a calculation to calculate its brother node. This is a waste, and nothing else.

(Puzzled)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.