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

CS 225: Data Structures FINAL EXAM PRACTICE QUESTIONS AND ANSWERS 2025 University of Illinois Urbana-Champaign

Rating
-
Sold
-
Pages
84
Grade
A+
Uploaded on
25-03-2025
Written in
2024/2025

CS 225: Data Structures FINAL EXAM PRACTICE QUESTIONS AND ANSWERS 2025 University of Illinois Urbana-Champaign












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

Document information

Uploaded on
March 25, 2025
Number of pages
84
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CS 225: Data Structures FINAL EXAM
PRACTICE QUESTIONS AND ANSWERS
2025 University of Illinois Urbana-
Champaign
Correct

101

, 1 of 101

Term



In a heap how to access the right child of a node indexed at
i?


A. i+1
B.2i+1
C. 2i
D.3i+1
E. 3i



Give this one a try later!



B C




E A


Don't know?




2 of 101

Term


in implementing Queue ADT, using which of the following
data structure gives best asymptotic runtime for enqueue
and dequeue? (Assume best possible implementation for
queue using provided data structure)


A. Singly linked list with head and tail pointer.
B.Exactly two of the other options are correct.

, C. Singly linked list with head pointer only.
D.Doubly linked list with head and tail pointer.
E. Doubly linked list with head pointer only.


Give this one a try later!



E B




A C


Don't know?




3 of 101

Term



graph implemented using edge list


incidentEdges runtime?


A. O(1)
B.O(n)
C. O(m)
D.O(n^2)
E.O(logn)
F.O(deg(v))
G. O(min(deg(v), deg(u))



Give this one a try later!

, D E




C B


Don't know?




4 of 101

Term



Priority queue using a sorted singly


linked list. What is the runtime of find,


remove, and insert


A. find O(n), remove O(n), insert O(n)
B.find O(n), remove O(1), insert O(n)
C. find O(logn), remove O(logn), insert O(1)
D.find O(1), remove O(1), insert O(n)
E. find O(1), remove O(1), insert O(logn)
F.find O(n/2), remove O(1), insert O(n/2)



Give this one a try later!



B C




E D


Don't know?

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
smartzone Liberty University
View profile
Follow You need to be logged in order to follow users or courses
Sold
3195
Member since
5 year
Number of followers
2291
Documents
14389
Last sold
5 hours ago
AMAIZING EDUCATION WORLD

GET ALL KIND OF EXAMS ON THIS PAGE ,COMPLETE TEST BANKS,SUMMARIES,STUDY GUIDES,PROJECT PAPERS,ASSIGNMENTS,CASE STUDIES, YOU CAN ALSO COMMUNICATE WITH THE SELLER FOR ANY PRE-ORDER,ORDER AND ETC.

3.7

584 reviews

5
260
4
93
3
103
2
29
1
99

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 tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced it. It really can be that simple.”

Alisha Student

Frequently asked questions