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 24 pages
Exam (elaborations)

ICSC 2100(C949) Data Structures & Algorithms I Latest OA Guide 2025

Document preview thumbnail
Preview 3 out of 24 pages

ICSC 2100(C949) Data Structures & Algorithms I Latest OA Guide 2025ICSC 2100(C949) Data Structures & Algorithms I Latest OA Guide 2025ICSC 2100(C949) Data Structures & Algorithms I Latest OA Guide 2025

Content preview

C949 ICSC 2100

Data Structures & Algorithms I

4.0 Credits

Objective Assessment Review (Qns &
Ans)

2025




©2025

,**Question 1:*
Which property distinguishes problems that are well suited for dynamic
programming as opposed to a simple divide‐and‑conquer approach?
A. Problems with independent subproblems
B. Problems with overlapping subproblems and optimal substructure
C. Problems that can be solved using recursion
D. Problems that are parallelizable without coordination

**Correct ANS:* B. Problems with overlapping subproblems and optimal
substructure
**Rationale:*
Dynamic programming is effective for problems where the subproblems
overlap and share common computations. In contrast, divide‐
and‑conquer typically divides the problem into independent
subproblems. Recognizing overlapping subproblems allows the use of
memoization to avoid redundant work.

---

**Question 2:*
What is the worst‑case time complexity of QuickSort when the pivot
selection consistently produces extremely unbalanced partitions (for
example, always choosing the smallest element as the pivot)?
A. O(n)
B. O(n log n)
C. O(n²)
D. O(log n)

**Correct ANS:* C. O(n²)
**Rationale:*
When the pivot is chosen poorly—such as always selecting the smallest
element in an already sorted array—QuickSort degrades to O(n²) time
©2025

, complexity because the recursive partitioning produces one subproblem
of size n–1 and one of size 0 at every step.

---

**Question 3:*
Which balanced binary search tree guarantees that for every node the
heights of the left and right subtrees differ by at most one?
A. Red‑Black Tree
B. AVL Tree
C. Splay Tree
D. B‑Tree

**Correct ANS:* B. AVL Tree
**Rationale:*
An AVL tree enforces a strict balance condition by maintaining a
maximum height difference of one between the left and right subtrees at
every node. This strict balancing provides excellent lookup performance,
albeit at a cost of more frequent rebalancing during insertions and
deletions.

---

**Question 4:*
Which algorithm is typically used to construct a minimum spanning tree
in a connected, weighted graph with non‑negative edge weights?
A. Dijkstra’s algorithm
B. Kruskal’s algorithm
C. Bellman‑Ford algorithm
D. Floyd‑Warshall algorithm

**Correct ANS:* B. Kruskal’s algorithm
**Rationale:*
Kruskal’s algorithm builds a minimum spanning tree (MST) by repeatedly
selecting the smallest edge that does not form a cycle. It is especially
©2025

Document information

Uploaded on
May 9, 2025
Number of pages
24
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

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.
testbank11
3.5
(4)
Sold
39
Followers
7
Items
4461
Last sold
2 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