Berikut ini adalah pertanyaan dari enisafitri1983 pada mata pelajaran TI untuk jenjang Sekolah Dasar
b. Filmstrip
c. Rotate left and right
d. Menu view
2. Dibawah ini yang merupakan komponen terdapat dalam “Menu View”, adalah …. *
a. Thumbnail
b. Rotate left and right
c. Resize
d. Save
Jawaban dan Penjelasan
Berikut ini adalah pilihan jawaban terbaik dari pertanyaan diatas.
Jawaban:
1. d. Menu view
2. b. Rotate left and right
Penjelasan:
1. Group Views
Group ini digunakan untuk mengatur tampilan lembar kerja dengan mode tertentu,diantaranya adalah bisa mengubah pada mode Print Layout (default saat ini), Web Layout, tampilaan yang akan tampil di website jika dipublish dalam bentuk html, mode baca, sampai dengan draft dan outline.
2. AVL Rotations
To balance itself, an AVL tree may perform the following four kinds of rotations
Left rotation
Right rotation
Left-Right rotation
Right-Left rotation
The first two rotations are single rotations and the next two rotations are double rotations. To have an unbalanced tree, we at least need a tree of height With this simple tree, let's understand them one by one.
Left Rotatioe
If a tree becomes unbalanced, when a node is inserted into the right subtree of the right subtree, then we perform a single left rotation −
Left Rotation
In our example, node A has become unbalanced as a node is inserted in the right subtree of A's right subtree. We perform the left rotation by making A the left-subtree of B.
Right Rotation
AVL tree may become unbalanced, if a node is inserted in the left subtree of the left subtree. The tree then needs a right rotation.
Right Rotation
As depicted, the unbalanced node becomes the right child of its left child by performing a right rotation.
Left-Right Rotation
Double rotations are slightly complex version of already explained versions of rotations. To understand them better, we should take note of each action performed while rotation. Let's first check how to perform Left-Right rotation. A left-right rotation is a combination of left rotation followed by right rotation.
State Action
Right Rotation A node has been inserted into the right subtree of the left subtree. This makes C an unbalanced node. These scenarios cause AVL tree to perform left-right rotation.
Left Rotation We first perform the left rotation on the left subtree of C. This makes A, the left subtree of B.
Left Rotation Node C is still unbalanced, however now, it is because of the left-subtree of the left-subtree.
Right Rotation We shall now right-rotate the tree, making B the new root node of this subtree. C now becomes the right subtree of its own left subtree.
Balanced Avl Tree The tree is now balanced.
Right-Left Rotation
The second type of double rotation is Right-Left Rotation. It is a combination of right rotation followed by left rotation.
State Action
Left Subtree of Right Subtree A node has been inserted into the left subtree of the right subtree. This makes A, an unbalanced node with balance factor 2.
Subtree Right Rotation First, we perform the right rotation along C node, making C the right subtree of its own left subtree B. Now, B becomes the right subtree of A.
Right Unbalanced Tree Node A is still unbalanced because of the right subtree of its right subtree and requires a left rotation.
Left Rotation A left rotation is performed by making B the new root node of the subtree. A becomes the left subtree of its right subtree B.
Balanced AVL Tree The tree is now balanced.
Semoga dengan pertanyaan yang sudah terjawab oleh adrianhplg dapat membantu memudahkan mengerjakan soal, tugas dan PR sekolah kalian.
Apabila terdapat kesalahan dalam mengerjakan soal, silahkan koreksi jawaban dengan mengirimkan email ke yomemimo.com melalui halaman Contact
Last Update: Mon, 04 Jul 22