You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
AVL 트리란?
균형 이진 트리의 한 종류로 탐색 시간을 O(log n)을 유지합니다.
AVL 트리의 특징
불균형 판단 기준
Balance Factor를 사용하여 균형을 판단합니다.
BF(K) = K의 왼쪽 서브트리의 높이 - K의 오른쪽 서브트리의 높이
BF(K) = -1,0,1인 경우 균형 상태를 유지합니다.
BF(K)가 -1 미만이거나 1을 초과하는 경우 트리의 불균형으로 회전을 통해 균형을 맞춥니다.
회전 유형
회전에는 4가지 유형이 있습니다.
LL ( Left-Left)
RR (Right-Right)
LR (Left-Right)
RL (Right-Left)
Beta Was this translation helpful? Give feedback.
All reactions