Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 22 pages
Exam (elaborations)

CS-C950 ICSC 3100 Data Structures & Algorithms II Comprehensive OA 2025 (With Solns)

Document preview thumbnail
Preview 3 out of 22 pages

CS-C950 ICSC 3100 Data Structures & Algorithms II Comprehensive OA 2025 (With Solns)CS-C950 ICSC 3100 Data Structures & Algorithms II Comprehensive OA 2025 (With Solns)CS-C950 ICSC 3100 Data Structures & Algorithms II Comprehensive OA 2025 (With Solns)

Content preview

CS – C950 ICSC 3100 Data Structures &
Algorithms II

Comprehensive Objective Assessment (Qns &
Ans)

2025


Multiple Choice Questions (MCQ)
Which of the following data structures is best suited to implement
a dynamic associative array (dictionary) with fast retrieval and
insertion for large datasets?


A) AVL Tree
B) Hash Table
C) Heap



©2025

,D) Queue ANS: B Rationale: Hash Tables provide O(1) average-
case time for insertion and retrieval, making them efficient for
dynamic associative arrays.
What is the primary reason for using B-trees in the
implementation of database indices?


A) Fast access to elements in main memory
B) Efficient storage in small devices
C) Balancing tree height for disk-based storage
D) Simple implementation ANS: C Rationale: B-trees minimize
disk I/O by maintaining a balanced height and reducing the
number of disk accesses.
The time complexity for a successful search in a Trie (prefix tree)
is:


A) O(log n)
B) O(1)
C) O(m)
D) O(n) ANS: C Rationale: Search operation in a Trie depends on
the length of the query string (m) and is independent of the
number of stored words.
Which algorithm is most appropriate for detecting cycles in a
directed graph?


©2025

, A) Breadth-First Search
B) Kruskal’s Algorithm
C) Depth-First Search with recursion stack
D) Union-Find Algorithm ANS: C Rationale: Using DFS with a
recursion stack can detect cycles in directed graphs efficiently.
Edmonds-Karp algorithm is an implementation of which method
for finding the maximum flow in a flow network?


A) Preflow-Push
B) Greedy Method
C) Ford-Fulkerson Method (using BFS)
D) Dijkstra’s Algorithm ANS: C Rationale: Edmonds-Karp uses
BFS as part of the Ford-Fulkerson method.
The amortized complexity of the ‘find’ operation in Union-Find
(Disjoint Set Union) with path compression and union by rank is:


A) O(1)
B) O(log n)
C) O(n)
D) O(α(n)) ANS: D Rationale: The operation runs in nearly
constant (inverse Ackermann function, α(n)) amortized time.


©2025

Document information

Uploaded on
May 3, 2025
Number of pages
22
Written in
2024/2025
Type
Exam (elaborations)
Contains
Unknown
$18.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
EmilioOchieng
4.1
(24)
Sold
148
Followers
17
Items
4032
Last sold
3 months ago


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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions