• Keine Ergebnisse gefunden

Relational Databases 2 Exercise Sheet 4: Trees & Advanced Indexes (until Tuesday 15.05.2012)

N/A
N/A
Protected

Academic year: 2021

Aktie "Relational Databases 2 Exercise Sheet 4: Trees & Advanced Indexes (until Tuesday 15.05.2012)"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Relational Databases 2

Exercise Sheet 4: Trees & Advanced Indexes (until Tuesday 15.05.2012)

Exercises have to be turned in until Tuesday of each respective week and may be completed in teams of two students each. You may hand in your solutions on paper before the lecture or into the mailbox at the IFIS floor (Mühlenpfordtstraße 23, 2nd floor). Please do not forget your

“Matrikelnummer” on your solutions. Please note: all exercises are optional.

Exercise 1: Binary Search Trees

a. Given is the following binary search tree. Delete the following nodes in the given order and show the tree after each deletion

1

: 10, 4, 30, 15

b. Tree Traversal: Access all nodes of the tree in Pre-Order, In-Order and Post-Order.

Exercise 2: AVL Trees

a. Show an AVL Tree which height is smaller after deleting and inserting the same key.

b. Draw an AVL Tree with a minimum number of nodes whose external nodes are on three dif- ferent levels.

Exercise 3: B-Trees

a. Build a B-Tree by inserting the keys 1 – 20 (k = 2

2

) in ascending order. What do you recog- nize?

b. In which order must the keys be inserted in an empty B-Tree to have maximum split opera- tions. Please explain your answer.

1

Deletion if node has two children: Replace with In-Order successor

2

k: minimum number of keys allowed for one node (exception: root node). The maximum number is 2*k.

Referenzen

ÄHNLICHE DOKUMENTE

What are the main steps that need to be processed in order to answer a user’s query.. What needs to be optimized in

Exercises will be discussed on Friday on week after the respective lecture was given. The handouts are optional and do not have to be handed in. They only serve as optional

What is the advantage of conflict serial- izable schedules compared to serializable schedules?. What is the problem with conflict serializable schedules

Exercises will be discussed on Friday on week after the respective lecture was given.. The handouts are optional and do not have to be

Is the relationship set r described in the following figure a valid instance of the relationship type R.. If not, list all conflicts that violate the constraints described in

Explain the difference between Internal-, Conceptual- and External schemas used in relational database architectures. Explain the difference between Logical- and Physical

Explain the main characteristics of offline, nearline and online storage and give an example.. What type of data should be stored in

You may hand in your solutions on paper before the lecture or into the mailbox at the IFIS floor (Mühlenpfordtstraße 23, 2nd floor).. Please do not