1 / 5
二叉排序树的平衡旋转
50 likes | 157 Vues
二叉排序树的平衡旋转. LL 型旋转. A 2. B 0. A 0. B 1. A R. h-1. B L. B L. B R. B R. A R. h. h-1. h-1. h-1. h. 插入节点. LR 型旋转. A 2. C 0. B -1. B 0. A -1. A R. C 1. h-1. B L. C L. C R. A R. B L. h-2. C L. C R. h-1. h-1. h-1. h-1. h-2. h-1. 插入节点. RR 型旋转. A -2.
Télécharger la présentation
二叉排序树的平衡旋转
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.
Content is provided to you AS IS for your information and personal use only.
Download presentation by click this link.
While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
During download, if you can't get a presentation, the file might be deleted by the publisher.
E N D
Presentation Transcript
LL型旋转 A 2 B 0 A 0 B 1 AR h-1 BL BL BR BR AR h h-1 h-1 h-1 h 插入节点
LR型旋转 A 2 C 0 B -1 B 0 A -1 AR C 1 h-1 BL CL CR AR BL h-2 CL CR h-1 h-1 h-1 h-1 h-2 h-1 插入节点
RR型旋转 A -2 B 0 B -1 A 0 AL h-1 BL BR AL BL BR h-1 h-1 h-1 h h 插入节点
RL型旋转 A -2 C 0 B 1 A 0 B -1 AL C 1 BR h-1 AL CL CR BR h-1 h-1 h-2 CL CR h-1 h-1 h-2 h-1 插入节点
More Related