Suppose we have 2n people, some of which are related to some of the others. We might want
to split them into groups of two, so that the two people in a group are related (if this is
possible).
Expressing this as a graph problem, suppose we have an undirected graph G = hV;Ei. A
pairing is a set P E of edges such that for all (u; v); (x; y) 2 P, the nodes u; v; x; y are all
different. In other words, no two edges in P have a node in common. A complete pairing is a
pairing P that uses all the graph’s nodes, that is, a pairing for which
S
(u;v)2P fu; vg = V .
Consider
A graph G=(V,E)
V----->set of vertices
E------->set of edges
consider above graph,
V=
E=
for all x,y V(G), E(G)
----> all pairs of vertices are adjacent so that each vertex degree is (n-1)
therefore we get i=1 to n (n-1)=2E= n(n-1)
there are n(n-1)/2 edges
if n=2
E= 2(2-1)/2 =1 ---->true
E=k(k-1)/2
IS : E=k+1(k)/2
E = (k(k-1) +2k)/2
E= (k2-k)/ 2
E = k(k-1)/2
Mathematical induction
now if we edit two nodes extra ,then we can not edit more than 1+2(n-1) lines to the graph
Suppose we have 2n people, some of which are related to some of the others. We might want to spli...
Suppose we have 2n people, some of which are related to some of the others. We might want to split them into groups of two, so that the two people in a group are related (if this is possible) Expressing this as a graph problem, suppose we have an undirected graph G-(WB). A pairing is a set P C E of edges such that for all (u,v),(x,y) є P, the nodes u,v,z, y are all different. In other words, no...
Problem 6. In lecture, we saw that an undirected graph with n nodes can have at most n(n - 1)/2 edges. Such a graph necessarily has one connected component. The greatest number of edges possible in a disconnected graph, however, is smaller. Suppose that G (V, E) is a disconnected graph with n nodes, how large can |El possibly be? You do not need to prove your answer, but you should provide some explanation of how you obtained it.
Suppose we have two weighted graphs G1 = (V, E, w) and G2 = (V, E, w0 ) where w 0 (e) = w(e)+1 and w, w0 are the edge weights in the two graphs. The graphs are identical, except that all the edges weights in G2 are one larger than the corresponding edge in G1. Suppose that in G1, we have computed the shortest weighted path from some fixed node s ∈ V to some other node t ∈...
Have the explaination please. 4 Graph Application: Network Connectivity (Adapted from Problem 9, Chapter 3 of K&T) Think of a communications network as a connected, undi rected graph, where messages from one node s to another node t are sent along paths from s to t. Nodes can sometimes fail. If a node v fails then no messages can be sent along edges incident on v. A network is particularly vulnerable if failure of a single node v can cause...
Problem 5. (Lexicographical Optimisation with Paths) Provide pseudocode and an expla- nation for an algorithm that computes a path between two nodes in an undirected graph such that: . The maximum weight in the path is minimised, ie., there does not exist another path with a smaller maximum weight .Amongst all such paths, it finds the path with minimum cost. . The time complexity is no worse than 0(( and V is the set of nodes. ·IvD-log(IVD), where E is...
4. The NOT-ALL-EQUAL 3SAT problem is defined as follows: Given a 3-CNF formula F, is there a truth assignment for the variables such that each clause has at least one true literal and at least one false literal? The NOT-ALL-EQUAL 3SAT problem is NP-complete. This question is about trying to reduce the NOT-ALL-EQUAL 3SAT problem to the MAX-CUT problem defined below to show the latter to be NP-complete. A cut in an undirected graph G=(V.E) is a partitioning of the...
Suppose we have a graph G = (V, E) with weights on the edges of E, and we are interested in computing a Minimum Spanning Tree (MST) of G. Suppose we modify the DFS algorithm so that when at a vertex v, we next visit the unvisited neighbor u such that the weight of (u, v) is minimized. Does this produce a MST of G? prove that it does or provide a counter example.
Say that we have an undirected graph G(V, E) and a pair of vertices s, t and a vertex v that we call a a desired middle vertex . We wish to find out if there exists a simple path (every vertex appears at most once) from s to t that goes via v. Create a flow network by making v a source. Add a new vertex Z as a sink. Join s, t with two directed edges of capacity...
please help me make this into a contradiction or a direct proof please. i put the question, my answer, and the textbook i used. thank you also please write neatly proof 2.5 Prove har a Simple sraph and 13 cdges cannot be bipartite CHint ercattne gr apn in to ertex Sets and Court tne忤of edges Claim Splitting the graph into two vertex, Sets ves you a 8 Ver ices So if we Change tne书 apn and an A bipartite graph...
I have done the a and b, but i'm so confuse with other questions, could someone help me to fix these questions, thanks so much. 4 Directed graphs Directed graphs are sometimes used operating systems when trying to avoid deadlock, which is a condition when several processes are waiting for a resource to become available, but this wil never happen because Page 2 p2 T2 Figure 1: Minimal example of a resource allocation graph with deadlock other processes are holding...