سوال ۶۲ کنکور ارشد مهندسی کامپیوتر ۱۴۰۱
فرض کنید گراف G یک گراف وزندار و مسطح با n رأس است. درخت پوشای کمینه G را در چه زمانی میتوان محاسبه کرد؟ توجه کنید لزومی ندارد از الگوریتمهای معروف برای محاسبه درخت پوشای کمینه استفاده شود. (بهترین گزینه را انتخاب کنید.)
پاسخ صحیح: گزینهٔ A —
The decisive property is that is planar. A simple planar graph on vertices has at most edges, so its number of edges is , not .
The phrase "you need not use the well-known MST algorithms" is the key hint: the generic comparison-based bounds (Kruskal/Prim give for a planar graph) are not the best achievable here. Planarity lets us do better.
Borůvka contraction on planar graphs. Run Borůvka's algorithm:
- In each phase every vertex selects its minimum-weight incident edge; these edges are MST edges and are contracted.
- Each phase at least halves the number of vertices, so there are phases.
- Crucially, the class of planar graphs is closed under edge contraction (minor-closed), so every intermediate graph stays planar and keeps edges.
The work in phase is linear in the current size. With contraction the vertex count drops geometrically:
Using a linear-time planar contraction step (cleaning up parallel edges and self-loops in each round), the total cost telescopes to . This is the classical Cheriton–Tarjan / Mareš result: the MST of a planar graph can be found in time — and is also a lower bound since every edge must in effect be examined, so the tight bound is .
Hence the best (tightest) achievable bound is , option 1.
Exam trick: "Planar" silently caps edges at and is minor-closed, so Borůvka contraction stays linear-size each round and the geometric sum collapses to — beating the generic that Prim/Kruskal would give.