Let Q:= {1,2,...,q}. Let G be a graph with the elements of Q^n as vertices and an edge between (a1,a2,...,an) and (b1,b2,...bn) if and only if ai is not equal to bi for exactly one value of i. Show that G is Hamiltonian.
Let Q:= {1,2,...,q}. Let G be a graph with the elements of Q^n as vertices and...
graph G, let Bi(G) max{IS|: SC V(G) and Vu, v E S, d(u, v) 2 i}, 10. (7 points) Given a where d(u, v) is the length of a shortest path between u and v. (a) (0.5 point) What is B1(G)? (b) (1.5 points) Let Pn be the path with n vertices. What is B;(Pn)? (c) (2 points) Show that if G is an n-vertex 3-regular graph, then B2(G) < . Further- more, find a 3-regular graph H such that...
help :( 5. Let Q. be the graph with vertex set {1,2,..., n}. Two vertices are adjacent if and only if their greatest common divisor is 1. Give the clique number of Q7 and draw a maximum clique of it.
7.5 (i) Prove that, if G is a bipartite graph with an odd number of vertices, then G is non-Hamiltonian. (ii) Deduce that the graph in Fig. 7.7 is non-Hamiltonian. Fig. 7.7 (iii) Show that, if n is odd, it is not possible for a knight to visit all the squares of an n chessboard exactly once by knight's moves and return to its starting point.
Let G be a graph with n vertices. Show that if the sum of degrees of every pair of vertices in G is at least n − 1 then G is connected.
Let G be a graph with n vertices and n edges. (a) Show that G has a cycle. (b) Use part (a) to prove that if G has n vertices, k components, and n − k + 1 edges, then G has a cycle.
(a) Let P(B1∩B2)>0, and A1∪A2⊂B1∩B2. Then show that P(A1|B1).P(A2|B2)=P(A1|B2).P(A2|B1). (b) Let A and B1 be independent; similarly, let A and B2 be independent. Show that in this case, A and B1∪B2 are independent if and only if A and B1∩B2 are independent. (c) Given P(A) = 0.42,P(B) = 0.25, and P(A∩B) = 0.17, find (i)P(A∪B) ; (ii)P(A∩Bc) ; (iii)P(Ac∩Bc) ; (iv)P(Ac|Bc).
Let G be a simple graph with at least four vertices. a) Give an example to show that G can contain a closed Eulerian trail, but not a Hamiltonian cycle. b) Give an example to show that G can contain a closed Hamiltonian cycle, but not a Eulerian trail.
(a) Let G be a graph with order n and size m. Prove that if (n-1) (n-2) m 2 +2 2 then G is Hamiltonian. (b) Let G be a plane graph with n vertices, m edges and f faces. Using Euler's formula, prove that nmf k(G)+ 1 where k(G) is the mumber of connected components of G. (a) Let G be a graph with order n and size m. Prove that if (n-1) (n-2) m 2 +2 2 then...
(a) Let L be a minimum edge-cut in a connected graph G with at least two vertices. Prove that G − L has exactly two components. (b) Let G an eulerian graph. Prove that λ(G) is even.
float useless(A){ n = A.length; if (n==1) { return A[@]; let A1,A2 be arrays of size n/2 for (i=0; i <= (n/2)-1; i++){ A1[i] = A[i]; A2[i] = A[n/2 + i]; for (i=0; i<=(n/2)-1; i++){ for (j=i+1; j<= (n/2)-1; j++){ if (A1[i] == A2[j]) A2[j] = 0; b1 = useless(A1); b2 = useless (A2); return max(b1,b2); What is the asymptotic upper bound of the code above?