blogs/sites/poetry/src/content/puzzles/graph-algorithms-assessment.md
Neeldhara Misra 58d8b661a8
Some checks are pending
Build / build (push) Waiting to run
Restructure blogs as Astro monorepo
2026-06-13 21:15:16 +02:00

1.1 KiB

title description pubDate image authorImage authorName
Graph Algorithms: Assessment Highlights Interesting graph problems from recent course assessments with detailed solutions. Feb 28 2024 https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=400&auto=format&fit=crop&q=60 /avatar/avatar1.png Neeldhara

Graph Algorithms: Assessment Highlights

A collection of graph problems that test deep understanding rather than memorization.

The Bridge Detection Variant

Find all edges whose removal increases the number of triangles in the graph.

Solution Approach

Counter-intuitively, we need to count triangles that share exactly one edge with the candidate. The algorithm runs in O(m√m) time using careful enumeration.

Shortest Path with Wildcards

Given a graph where some edge weights are variables, find assignments that minimize the longest shortest path.

Key Insight

This reduces to a linear programming problem with interesting structure. The dual interpretation reveals connections to network flow.

Teaching Through Problems

These problems help students see beyond standard algorithms to underlying principles.