GATEverse
← GATE CSE 1997

Q9

MCQMarks unknown

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 and ∣y1–y2∣≤1\mid x_1-x_2 \mid \leq 1 \text { and } \mid y_1 – y_2 \mid \leq 1. The weight of an edge {(x1,y1),(x2,y2)} is (x1–x2)2+(y1–y2)2\{(x_1, y_1), (x_2, y_2)\} \text{ is } \sqrt{(x_1 – x_2)^2 + (y_1 – y_2)^2}

Sign in to save attempts.

Loading…