100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

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

Beoordeling
-
Verkocht
-
Pagina's
24
Cijfer
A+
Geüpload op
09-05-2025
Geschreven in
2024/2025

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

Instelling
Vak

Voorbeeld van de inhoud

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

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
9 mei 2025
Aantal pagina's
24
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
testbank11 Walden University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
38
Lid sinds
2 jaar
Aantal volgers
7
Documenten
4466
Laatst verkocht
3 maanden geleden

Hi there! I'm a former nursing student who loves to share my knowledge and experience with others. I have a collection of study notes and papers that I've written for various courses and programs, and I'm selling them for a reasonable price. Whether you need help with anatomy, pharmacology, ethics, or anything else, I've got you covered. My notes are clear, concise, and fun to read. They will help you ace your exams and assignments, and maybe even make you laugh along the way. If you're interested, check out my profile and contact me. I'm looking forward to hearing from you!

Lees meer Lees minder
3,5

4 beoordelingen

5
2
4
0
3
1
2
0
1
1

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen