AVL樹的基本操作是旋轉(zhuǎn),有四種旋轉(zhuǎn)方式,分別為:左旋轉(zhuǎn),右旋轉(zhuǎn),左右旋轉(zhuǎn)(先左后右),右左旋轉(zhuǎn)(先右后左),實際上,這四種旋轉(zhuǎn)操作兩兩對稱,因而也可以說成兩類旋轉(zhuǎn)操作。 基本的數(shù)據(jù)結(jié)構(gòu): 復(fù)制代碼代碼如下: typedef struct Node* Tree; typedef struct Node* Node_t; typedef Type int; struct Node{ Node_t ...
www.dbjr.com.cn/article/544...htm 2025-5-26