



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CMSC498N Spring 2007 Name____ANSWERS_________ Define the following terms (1 point each) Degree The number of edges with the given node as an endpoint. Degree Distribution The distribution (number of nodes) with each degree from 0 to d where d is the maximum degree. Path (give all the properties necessary for something to be a path) A series of edges where no nodes are repeated. Hamiltonian Path A path in a graph that visits every vertex exactly once. Preferential attachment The phenomenon that creates scale free networks, where a node is more likely to attach to a node in the network with many connections than to a node with few connections. How is betweenness computed for a given node in a graph? (3 points) Betweenness is the number of shortest paths that go through a node in the network. What are the two defining characteristics of a Small World Graph? (3 points) Short average path length (on the order of what is seen in a random graph) and high clustering (like what we would expect in a regular graph with the same average degree).
Think carefully about this problem before working on it. In the graph below, there are 16 nodes. The graph is undirected and regularly connected where the degree of each node d=. I have chosen to randomly rewire these edges as shown in the table. Each row represents a rewire, where the original edge is remove and replaced with the new edge. For example, if the original edge is a,b and the new edge is g,j that means I removed the existing edge between a and b and added in an edge from g to j. Original Edge New Edge 1,3 3, 5,7 15, 16,1 2, 2,3 5, 4,5 5, 6,7 9, 8,9 9, 10,11 2, 12,13 8, Questions: What is the average degree after the graph has been rewired? (4 points) It's still 3 โ for every edge I removed I added one back in, so there are the same number of edges, and thus the same average degree. Extra credit (1 point): How did I "randomly" determine which edges to add in? They are the digits of pi โ 3. Extra credit (1 point): If I were to rewire one more pair, what edge follows in the pattern and why is that a problem? The next two digits of pi are 6 2 โ an edge that already exists.
Questions Compute the clustering coefficient for B. You can give your answer as a reduced fraction. B's neighbors are A, G, F, D, and C. Connections between them are AG, AD, and DC. 3/(5*4/2) = 3/ Compute the average shortest path length for H. You can give your answer as a reduced fraction. HA โ 2, HB โ 2, HC โ 3, HD โ 3, HE โ 1, HF โ 2, HG โ 1 14/7 = 2
Questions (3 points each) Give the triad census for the graph on page 3 None: 0 One edge: 1 Two Edges: 7 Three Edges: 2 Give the BFS search tree from node A to all other nodes in the graph on page 4. You can draw the tree or give a list of nodes in the order they are visited. Your answers may vary depending on the order you chose the neighbors. AGBDHFDCE Give the degree distribution for the graph on page 4. 0: 0 1: 0 2: 4 3: 3 4: 0 5: 1