Search Header Logo

ADS LAB Quiz-2

Authored by roja laveti

Education

University

Used 1+ times

ADS LAB Quiz-2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following special type of trie is used for fast searching of the full texts?

Ctrie

Hash tree

Suffix tree

T tree

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not true?

Trie requires less storage space than hashing

Trie allows listing of all the words with same prefix

Tries are collision free

Trie is also known as prefix tree

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the worst case time complexity for search, insert and delete operations in a general Binary Search Tree?

O(n) for all

O(Logn) for all

O(Logn) for search and insert, and O(n) for delete

O(Logn) for search, and O(n) for insert and delete

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How can we define a AVL tree?

A tree which is binary search tree and height balanced tree.

A tree which is a binary search tree but unbalanced tree.

A tree with utmost two children

A tree with utmost three children

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why do we prefer Red Black tree over AVL tree?

Red Black trees are not strictly balanced

Red black tree requires lesser rotations than AVL tree.

AVL tree needs more space to store the balance factor.

Both Red black tree requires lesser rotations than AVL tree and AVL tree needs more space to store the balance factor.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a splay operation?

moving parent node to down of child

moving a node to root

moving root to leaf

removing leaf node

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the worst case time complexity of KMP algorithm for pattern searching (m = length of text, n = length of pattern)?

O(n)

O(n*m)

O(m)

O(log n)

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?