Skip to content
LUDA · 學思辨行

LUDA · 學思辨行

Learn extensively, Understand deeply, Discern clearly, and Act resolutely.

  • About
  • Learning Path

Category: Graphs

How Boruvka merges components by their cheapest edge

November 13, 2026By HoHo Zhao

Short answer: Borůvka’s algorithm contracts many pieces of a minimum spanning tree at once. In each round every component marks a cheapest edge that leaves it, and all of those edges are added together. The number of components at least halves, so there are O(log V) rounds and the…

Algorithms, GraphsLeave a comment

How bidirectional BFS meets in the middle of a path

November 13, 2026By HoHo Zhao

Short answer: Bidirectional breadth-first search grows one frontier from the source and one from the target on an unweighted graph. A shortest path has some meeting vertex, and the two searches together expand about O(b^{d/2}) vertices instead of O(b^d) when every vertex has about b unused edges and the…

Algorithms, GraphsLeave a comment

How Bellman-Ford relaxes every edge V minus 1 times

November 13, 2026By HoHo Zhao

Short answer: Bellman-Ford relaxes every edge once per round, for |V|−1 rounds. A shortest path is simple when no negative cycle is reachable, so it has at most |V|−1 edges, and round k has considered every path of k edges. One more round that still relaxes an edge is…

Algorithms, GraphsLeave a comment

How A* orders expansion by f equals g plus h

November 13, 2026By HoHo Zhao

Short answer: A* pops the frontier vertex with the smallest f = g + h, where g is the distance already walked and h estimates the distance still to go. If h never overestimates, it is admissible, and the first time the goal is dequeued under a consistent h…

Algorithms, GraphsLeave a comment

How 0-1 BFS uses a deque for weights zero and one

November 13, 2026By HoHo Zhao

Short answer: 0-1 BFS computes shortest paths when every edge weight is 0 or 1. A relaxation of weight 0 pushes the neighbor at the front of a deque, and a relaxation of weight 1 pushes it at the back. The front of the deque stays in distance order,…

Algorithms, GraphsLeave a comment

Posts pagination

Previous 1 2 3
  • Algorithms
  • Arithmetic
  • Authelia
  • Clustering
  • Coding
  • Compression
  • Cryptography
  • CSS
  • Distributed Systems
  • Docker
  • Dynamic Programming
  • Exact Algorithms
  • Games
  • Geometry
  • Grafana
  • Graphs
  • Greedy
  • Heaps
  • Homelab
  • IPsec
  • LDAP
  • Linear Algebra
  • Logging
  • Loki
  • nginx
  • Number Theory
  • Numerical
  • Optimization
  • Parsing
  • Prometheus
  • Randomization
  • Range Queries
  • Sampling
  • Scheduling
  • Search
  • Searching
  • Sequences
  • Sketches
  • Sorting
  • Streams
  • Strings
  • SVG
  • Synchronization
  • Systems
  • Transforms
  • Trees

Docker EAP-MSCHAPv2 FreeRADIUS Grafana gzip IKEv2 IPsec LogQL Loki OpenLDAP Promtail StrongSwan

© 2026 LUDA · 學思辨行. Powered by WordPress.