
ADS LAB Quiz-2

Quiz
•
Education
•
University
•
Hard
roja laveti
Used 1+ times
FREE Resource
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)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
DAA Quiz

Quiz
•
University
5 questions
Data Structures Quiz

Quiz
•
University
10 questions
Evaluación de Conocimiento - Marketing Digital

Quiz
•
1st Grade - Professio...
15 questions
LITERATURE REVIEW

Quiz
•
University
10 questions
PRUEBA DE SQL MASTERY

Quiz
•
University
10 questions
CONSUMER DECISION MAKING (2)

Quiz
•
University
10 questions
SEO

Quiz
•
University
10 questions
Workshop Day 2

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade