虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

您现在的位置是:虫虫下载站 > 资源下载 > 人工智能/神经网络 > Heapsort 1.A heap is a binary tree satisfying the followingconditions: -This tree is completely ba

Heapsort 1.A heap is a binary tree satisfying the followingconditions: -This tree is completely ba

资 源 简 介

Heapsort 1.A heap is a binary tree satisfying the followingconditions: -This tree is completely balanced. -If the height of this binary tree is h, then leaves can be at level h or level h-1. -All leaves at level h are as far to the left as possible. -The data associated with all descendants of a node are smaller than the datum associated with this node. Implementation 1.using a linear array not a binary tree. -The sons of A(h) are A(2h) and A(2h+1). 2.time complexity: O(n log n)

相 关 资 源

您 可 能 感 兴 趣 的