Flashcard Deck · 20 cards · Public

COMP9024 - Data Structures & Algorithms (UNSW)

Master UNSW COMP9024 concepts with high-yield cards covering asymptotic analysis, tree structures, hashing, and core graph algorithms.

Cards in this deck

(20 cards)

Preview terms and definitions before starting your study session.

#1
Term
Big- Notation (Formal Definition)
Definition
A function if there exist positive constants and such that for all .
It provides an asymptotic upper bound on the growth rate of a algorithm's running time or memory usage.
#2
Term
Big- and Big- Notation
Definition
  • Big- (): Asymptotic lower bound. Exists such that for all .
  • Big- (): Asymptotic tight bound. and simultaneously.
#3
Term
Master Theorem for Divide-and-Conquer Recurrences
Definition
For where :
1. If , then .
2. If , then .
3. If and regularity holds, then .
#4
Term
Breadth-First Search (BFS)
Definition
Graph traversal algorithm that explores vertices level-by-level using a Queue (FIFO).
  • Time Complexity:
  • Space Complexity:
  • Key Property: Finds the shortest path in an unweighted graph.
#5
Term
Depth-First Search (DFS)
Definition
Graph traversal algorithm that explores as deep as possible along each branch before backtracking using a Stack (LIFO) or recursion.
  • Time Complexity:
  • Space Complexity:
  • Applications: Topological sorting, detecting cycles, finding strongly connected components.
#6
Term
Dijkstra's Algorithm
Definition
Single-source shortest path algorithm for graphs with non-negative edge weights.
  • Strategy: Greedy selection using a Priority Queue (Min-Heap).
  • Time Complexity: with Binary Heap; with Fibonacci Heap.
  • Failure Case: Fails on graphs with negative edge weights.
#7
Term
Bellman-Ford Algorithm
Definition
Single-source shortest path algorithm that handles graphs with negative edge weights and detects negative-weight cycles.
  • Strategy: Relaxes all edges times.
  • Time Complexity:
  • Space Complexity:
#8
Term
Kruskal's Algorithm
Definition
Greedy Minimum Spanning Tree (MST) algorithm that sorts all edges by weight and adds them if they don't form a cycle.
  • Data Structure: Uses a Disjoint-Set / Union-Find data structure with Path Compression.
  • Time Complexity: or due to edge sorting.
Showing 8 of 20 cards in this deck.
Study All Now

Related Flashcard Sets

Explore similar study materials created by the community

Browse community decks