Search Header Logo

Balanced trees

Authored by Konstantin Dimitrov

Computers, Education

University

Used 167+ times

Balanced trees
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In an AVL tree the difference between heights of left and right sub trees cannot be more than

-1

0

1

2

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Балансирано ли е дървото?

НЕ

ДА

ДА, даже е AVL

ДА, даже е RED BLACK

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Това AVL дърво ли е?

НЕ

ДА

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Ако използваме STL set и в него имаме N елемента. С каква сложност можем да изтрием елемент спрямо BIG O?

LOG N

N

N*LOG N

1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Каква е максималната височина на AVL дърво със седем върха? Височината на дървото от картинката е 1. Тоест започваме от височина 0.

2

3

4

5

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Ако използваме STL set и добавим в него N елемента. Това с каква сложност ще е спрямо BIG O?

LOG N

N

N*LOG N

N^2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ако използваме STL map и добавим в него N елемента. Всеки елемент има ключ стринг и стойност число. Пример {"Iva",12}. С каква сложност можем търсим по стойност(число) в mapa?

LOG N

N

N*LOG N

N^2

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers