Consider a graph whose vertices are points in the plane with integer…

PYQ GATE 1997

Consider a graph whose vertices are points in the plane with integer co-ordinates (x,y)(x,y) such that 1≤x≤n1\leq x\leq n and 1≤y≤n1\leq y\leq n, where n≥2n\geq 2 is an integer. Two vertices (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2) are adjacent iff ∣x1−x2∣≤1|x_1-x_2|\leq 1 and ∣y1−y2∣≤1|y_1-y_2|\leq 1. The weight of an edge {(x1,y1),(x2,y2)}\{(x_1,y_1),(x_2,y_2)\} is (x1−x2)2+(y1−y2)2\sqrt{(x_1-x_2)^2+(y_1-y_2)^2}.

(a) What is the weight of a minimum weight-spanning tree in this graph? Write only the answer without any explanations.

(b) What is the weight of a maximum weight-spanning tree in this graph? Write only the answer without any explanations.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…