
dsa-11.7.24 an
Authored by PUSHPALATHA C2114
Computers
University
Used 1+ times

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
30 sec • 1 pt
1.Consider a hash table of size seven, with starting index zero, and a hash function
(3x + 4)mod7. Assuming the hash table is initially empty, which of the following is the contents of the table when the sequence 1, 3, 8, 10 is
inserted into the table using closed hashing? Note that '_' denotes an empty location in the table.
8, , , , , _, 10
1, 8, 10, , , _, 3
1, , , , , _,3
1, 10, 8, , , _, 3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.What maximum difference in heights between the leafs of a AVL tree is possible?
log(n) where n is the number of nodes
n where n is the number of nodes
0 or 1
Atmost 1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.We are given a set of n distinct elements and an unlabelled binary tree with n nodes. In how many ways can we populate the tree with the given set so that it becomes a binary search tree?
0
1
n!
1/n+1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.If h is chosen from a universal collection of hash functions and is used to hash n keys into a table of size m,
where n ≤ m, the expected number of collisions involving a particular key x is less than _______.
1
1/n
1/m
n/m
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.Consider the below left-left rotation pseudo code where the node contains value pointers to left, right child nodes and a height value and Height() function returns height value stored at a particular node.
avltree leftrotation(avltreenode z): avltreenode w =x-left x-left=w-right w-right=x x-height=max(Height(x-left),Height(x-right))+1 w-height=max(missing)+1 return w
What is missing?
Height(w-left), x-height
Height(w-right), x-height
Height(w-left), x
Height(w-left)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.We are given a set of n distinct elements and an unlabelled binary tree with n nodes. In how many ways can we populate the tree with the given set so that it becomes a binary search tree?
0
1
n!
(1/(n+1)).2nCn
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7.What is the maximum height of any AVL-tree with 7 nodes? Assume that the height of a tree with a single node is 0.
2
3
4
5
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Quiz 2 - ASD - B
Quiz
•
University
10 questions
kelas 3C
Quiz
•
3rd Grade - University
10 questions
PHP Introduction - Assignment 1
Quiz
•
University
10 questions
Blockchain
Quiz
•
University
10 questions
Variablen und Vergleiche
Quiz
•
University
10 questions
Soạn thảo văn bản Microsoft Word
Quiz
•
1st Grade - University
10 questions
KUIS PRAK. 9: MANAGEMENT FILE 😼
Quiz
•
University
8 questions
Câu hỏi về phần mềm Kodu
Quiz
•
1st Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University