retagged by
26,811 views
101 votes
101 votes
Consider an undirected graph $G$ where self-loops are not allowed. The vertex set of $G$ is $\{(i,j) \mid1 \leq i \leq 12, 1 \leq j \leq 12\}$. There is an edge between $(a,b)$ and $(c,d)$ if $|a-c| \leq 1$ and $|b-d| \leq 1$. The number of edges in this graph is______.
retagged by

10 Answers

1 votes
1 votes
Satisfying conditions for |a -c 1| ≤1

 1.  condition type1 :a=c

2.   condition type2: a-c=1 or c-a=1.

 total number of pairs (a,c) satisfying condition1 : 12
 total number of pairs (a,c) satisfying condition2 : 11

so satisfying combinations for 'a' and 'c' = 11+12 =23

IN Similar way satisfying combinations for 'b' and 'd' = 23

[ a     b]
      *
[ c     d]

So total solutions = 23*23 = 529

Now there are some cases where loop exists
like :
[1,2]             [5,5]
[1,2]   OR    [5,5]

There will be 23 such cases .Why ?? :)

So remove such cases : 529-23 = 506
http://yougeeks.blogspot.com/2015/01/consider-undirected-graph-g-where-self.html
1 votes
1 votes
Generalised formula for any i=j=n ->

1) Total no of horizontal edges = (n) *(n-1)

2)Total no of vertical edges = (n) *(n-1)

3) remaining are cross edges . If we consider 1 small square box , 2 cross edges

there are total (n-1)*(n-1) small boxes

so total no of cross edges = 2*(n-1)*(n-1)

Ans So total no of edges = 2* (n) *(n-1)  +  2(n-1) *(n-1)

Here n=12

So total no of edges = 2*12*11  +  2*11*11 = 264+ 242 = 506
0 votes
0 votes
(1,1 ), (1,12), (12,1),(12,12) will have degree = 3

(1,x),(x,1),(12,x),(x,12) will have degree = 5

2<=x<=11

Remaining will have degree = 8

Total (1,x) =10

Similarly (12,x) = 10

Total (x,1)= 10

Similarly (x,12) = 10

Remaining = 144-40-4= 100

Sum of degree = 2* Edges

4*3+ (10+10+10+10)*5 + 100*8 = 2* Edges

1012=2* Edges

Therefore, edges= 506
0 votes
0 votes

Answer : 506

2|E| = Sum(Degree)   // we add all the edges twice while counting degree so , this formula is valid in any connected graph

2|E| = (10*10*8) + (4*3) + (40*5)

2|E| = 1012

|E| = 506

Answer:

Related questions

57 votes
57 votes
11 answers
5
go_editor asked Sep 28, 2014
18,392 views
If $G$ is the forest with $n$ vertices and $k$ connected components, how many edges does $G$ have?$\left\lfloor\frac {n}{k}\right\rfloor$$\left\lceil \frac{n}{k} \right\r...
39 votes
39 votes
9 answers
7
go_editor asked Sep 28, 2014
27,073 views
The maximum number of edges in a bipartite graph on $12$ vertices is____
33 votes
33 votes
9 answers
8
makhdoom ghaya asked Feb 13, 2015
24,597 views
Let G be a connected planar graph with 10 vertices. If the number of edges on each face is three, then the number of edges in G is_______________.