100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Data Structures and Algorithms

Rating
-
Sold
-
Pages
3
Grade
A+
Uploaded on
13-06-2025
Written in
2024/2025

Data Structures and Algorithms

Institution
Graduation In Computer Science
Module
Graduation in computer science








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Graduation in computer science
Module
Graduation in computer science

Document information

Uploaded on
June 13, 2025
Number of pages
3
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Data Structures and Algorithms Part 2

A __________ (with no duplicate elements) has the property that for every node in the tree the
value of any node in its left subtree is less than the value of the node and the value of any node
in its right subtree is greater than the value of the node. - Correct Answers-binary search tree

The _______ of a nonempty tree is the length of the path from the root node to its furthest leaf
+ 1. - Correct Answers-height

The time complexity for searching an element in a binary search tree is _______. - Correct
Answers-O(n)

The time complexity for inserting an element into a binary search tree is _______. - Correct
Answers-O(n)

The time complexity for deleing an element into a binary search tree is _______. - Correct
Answers-O(n)

The _________ of a node is the height of its right subtree minus the height of its left subtree. -
Correct Answers-balance factor

The balance factor of every node in an AVL tree may be _________. - Correct Answers-0
1
-1

The time complexity for insertion, deletion, and search is O(logn) for a ___________. - Correct
Answers-AVL tree

In a ________, the element just inserted is always at the leaf. - Correct Answers-binary search
tree

The average time-complexity for insertion, deletion, and search in a ________ is O(logn). -
Correct Answers-AVL tree

A collision occurs _____________. - Correct Answers-when two or more keys are mapped to
the same hash value.

Every object has the hashCode() method. - Correct Answers-True
£9.23
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
phil3

Also available in package deal

Get to know the seller

Seller avatar
phil3 stuvia
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
6 months
Number of followers
0
Documents
222
Last sold
-
A+ QuickPass exam packs.

Get real nursing exam questions with certified answers. Perfect for quick revision and exam prep. Clear, accurate and easy to use. Package deals also available with 50 % offer. Study smart, pass fast!

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions