AVL Tree adalah Binary Search Tree yang memiliki perbedaan tinggi/ level maksimal antara subtree kiri dan subtree kanan. AVL Tree muncul untuk menyeimbangkan Binary Search Tree. Dengan AVL Tree, waktu pencarian dan bentuk tree dapat dipersingkat dan disederhanakan. 1) Single Rotation Single rotation dibagi menjadi 2, Single Right Rotation dan Single Left Rotation. Single Right Rotation dilakukan ketika node terdalam terletak pada subtree kanan dari anak kanan T(right-right), sedangkan Single Left Rotation dilakukan ketika node terdalam terletak pada subtree kiri dan anak kiri T(left-left). 2) Double Rotation Double rotation dibagi menjadi Double Right Rotation dan Double Left Rotation. Double Right Rotation dilakukan ketika node terdalam terletak pada subtree kiri dari anak kanan T(left-right), sedangkan Double Right Rotation dilakukan ketika node teredalam terletak pada subtree kanan dari anak kiri T(right-left). Cth:
Here is my summary from this semester of what I have learned since first session until today. • Pointer in C has a name and a value associated with it, and when a variable is declared, a specific block of memory within the computer is allocated to hold the value (the size depends of the data type) . Pointer Concept. So after the Introduction to Data Struct materials done, we continue to Linked List II materials, there are three general points we will discuss 1. Single Linked List 2. Double Linked List 3. Circular Doubly Linked List Because Single and Double Linked List have been discuss before, we only discuss third point. So circular Doubly Linked List is combination between Single and Double, also there is something new that each of Head or Tail is pointing to zero. also there is a Insertion and Deletion: Insertion: There is nothing cond...