سوال ۱۱۸ کنکور ارشد علوم کامپیوتر ۱۳۹۹
به چند طریق میتوان رئوس گراف زیر را با ۴ رنگ مختلف رنگآمیزی کرد بهطوریکه هیچ دو رأس مجاوری همرنگ نباشند؟ (ممکن است از بعضی از رنگها استفاده نشود.)
پاسخ صحیح: گزینهٔ D — ۸۶۴
Identify the graph
The figure is the friendship graph (a windmill of triangles): one central hub vertex shared by 3 triangles. It has vertices and edges. Each triangle contains the hub plus two outer vertices, and within each triangle all three vertices are mutually adjacent.
Count proper colorings with colors
We count proper colorings directly (this is the chromatic polynomial evaluated at ).
Step 1 — color the hub. The central vertex can take any of the colors:
Step 2 — color each triangle. Fix the hub's color. In each triangle the two outer vertices form an edge, and both are adjacent to the hub. So:
- and ,
- .
Pick : it must avoid the hub color, giving options. Then pick : it must avoid both the hub color and , giving options. So each triangle contributes
Step 3 — combine. The three triangles only interact through the (already fixed) hub, so their colorings are independent:
With :
The answer is 864, option (4).
Exam trick: For any graph built by gluing blocks at a single shared (cut) vertex, color that vertex first, then multiply the independent per-block colorings. For a triangle each remaining vertex must differ from the fixed hub and from each other, giving the factor — not .