[理工] AVL tree rotation觀念請問

作者: matt530 (懂嗎)   2019-02-20 16:23:16
https://i.imgur.com/V0Sf31R.jpg
圖片有點模糊抱歉
這個範例是參考水管一個AVL步驟
其中insert node18好像會用兩個步驟
rotation有4種 RR RL LR LL
請問這個insert 18步驟是屬於哪種的
作者: ncdonalds123 (benben)   2019-02-20 16:31:00
https://i.imgur.com/5rzWRkg.jpgRL你的第一個步驟怪怪的我看不懂怎麼轉的2,19,3轉一次就好了

Links booklink

Contact Us: admin [ a t ] ucptt.com