# Social Media Mining. Graph Essentials

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 Graph Essentials

2 Graph Basics Measures Graph and Essentials Metrics 2 2

3 Nodes and Edges A network is a graph nodes, actors, or vertices (plural of vertex) Connections, edges or ties Edge Node Measures Graph and Essentials Metrics 3 3

4 Nodes and Edges In a social graph, nodes are people and any pair of people connected denotes the friendship, relationships, social ties between them In a web graph, nodes represent sites and the connection between nodes indicates web-links between them The size of the graph is V = n Number of edges (size of the edge-set E =m Measures Graph and Essentials Metrics 4 4

5 Directed Edges and Directed Graphs Edges can have directions. A directed edge is sometimes called an arc Edges are represented using their end-points e(v2,v1). In undirected graphs both representations are the same Measures Graph and Essentials Metrics 5 5

6 Neighborhood and Degree (In-degree, outdegree) For any node v, the set of nodes it is connected to via an edge is called its neighborhood and is represented as N(v) The number of edges connected to one node is the degree of that node (the size of its neighborhood) Degree of a node i is usually presented using notation di In case of directed graphs In-degrees is the number of edges pointing towards a node Out-degree is the number of edges pointing away from a node Measures Graph and Essentials Metrics 6 6

7 Degree and Degree Distribution Theorem 1. The summation of degrees in an undirected graph is twice the number of edges Lemma 1. The number of nodes with odd degree is even Lemma 2. In any directed graph, the summation of in-degrees is equal to the summation of out-degrees, Measures Graph and Essentials Metrics 7 7

8 Degree Distribution When dealing with very large graphs, how nodes degrees are distributed is an important concept to analyze and is called Degree Distribution Where is the number of nodes with degree d Degree distribution can be computed from degree sequence: Degree distribution histogram The x-axis represents the degree and the y-axis represents the number of nodes (frequency) having that degree Measures Graph and Essentials Metrics 8 8

9 Subgraph Graph G can be represented as a pair G(V, E), where V is the node set and E is the edge set G (V, E ) is a subgraph of G(V, E) (induced subgraph) Measures Graph and Essentials Metrics 9 9

10 Graph Representation Adjacency Matrix Adjacency List Edge List Measures Graph and Essentials Metrics 10 10

11 Adjacency Matrix A ij 1, if there is an edge between nodes vi and vj 0, otherwise Diagonal Entries are self-links or loops Social media networks have very sparse adjacency matrices Measures Graph and Essentials Metrics 11 11

12 Adjacency List In an adjacency list for every node, we maintain a list of all the nodes that it is connected to The list is usually sorted based on the node order or other preferences Measures Graph and Essentials Metrics 12 12

13 Edge List In this representation, each element is an edge and is usually represented as (u, v), denoting that node u is connected to node v via an edge Measures Graph and Essentials Metrics 13 13

14 Types of Graphs Null, Empty, Directed/Undirected/Mixed, Simple/Multigraph, Weighted, Signed Graph Measures Graph and Essentials Metrics 14 14

15 Directed-Undirected The adjacency matrix for directed graphs is not symmetric (A A T ) (A ij A ji ) The adjacency matrix for undirected graphs is symmetric (A = A T ) Measures Graph and Essentials Metrics 15 15

16 Simple Graphs and Multigraphs Simple graphs are graphs where only a single edge can be between any pair of nodes Multigraphs are graphs where you can have multiple edges between two nodes and loops Simple graph Multigraph The adjacency matrix for multigraphs can include numbers larger than one, indicating multiple edges between nodes Measures Graph and Essentials Metrics 16 16

17 Weighted Graph A weighted graph is one where edges are associated with weights For example, a graph could represent a map where nodes are cities and edges are routes between them The weight associated with each edge could represent the distance between these cities G(V, E, W) A ij w,w R 0, There is no edge between i and j Measures Graph and Essentials Metrics 17 17

18 Signed Graph When weights are binary (0/1, -1/1, +/-) we have a signed graph It is used to represent friends or foes It is also used to represent social status Measures Graph and Essentials Metrics 18 18

19 Connectivity in Graphs Adjacent nodes/edges, Walk/Path/Trail/Tour/Cycle, Measures Graph and Essentials Metrics 19 19

20 Adjacent nodes and Incident Edges Two nodes are adjacent if they are connected via an edge. Two edges are incident, if they share on endpoint When the graph is directed, edge directions must match for edges to be incident Measures Graph and Essentials Metrics 20 20

21 Walk, Path, Trail, Tour, and Cycle Walk: A walk is a sequence of incident edges visited one after another Open walk: A walk does not end where it starts Close walk: A walk returns to where it starts Representing a walk: A sequence of edges: e 1, e 2,, e n A sequence of nodes: v 1, v 2,, v n Length of walk: the number of visited edges Length of walk= 8 Measures Graph and Essentials Metrics 21 21

22 Path A walk where nodes and edges are distinct is called a path and a closed path is called a cycle The length of a path or cycle is the number of edges visited in the path or cycle Length of path= 4 Measures Graph and Essentials Metrics 22 22

23 Random walk A walk that in each step the next node is selected randomly among the neighbors The weight of an edge can be used to define the probability of visiting it For all edges that start at v i the following equation holds Measures Graph and Essentials Metrics 23 23

24 Connectivity A node v i is connected to node v j (or reachable from v j ) if it is adjacent to it or there exists a path from v i to v j. A graph is connected, if there exists a path between any pair of nodes in it In a directed graph, a graph is strongly connected if there exists a directed path between any pair of nodes In a directed graph, a graph is weakly connected if there exists a path between any pair of nodes, without following the edge directions A graph is disconnected, if it not connected. Measures Graph and Essentials Metrics 24 24

25 Connectivity: Example Measures Graph and Essentials Metrics 25 25

26 Component A component in an undirected graph is a connected subgraph, i.e., there is a path between every pair of nodes inside the component In directed graphs, we have a strongly connected components when there is a path from u to v and one from v to u for every pair (u,v). The component is weakly connected if replacing directed edges with undirected edges results in a connected component Measures Graph and Essentials Metrics 26 26

27 Component Examples: 3 components 3 Strongly-connected components Measures Graph and Essentials Metrics 27 27

28 Shortest Path Shortest Path is the path between two nodes that has the shortest length. The concept of the neighborhood of a node can be generalized using shortest paths. An n-hop neighborhood of a node is the set of nodes that are within n hops distance from the node. Measures Graph and Essentials Metrics 28 28

29 Diameter The diameter of a graph is the length of the longest shortest path between any pair of nodes between any pairs of nodes in the graph How big is the diameter of the web? Measures Graph and Essentials Metrics 29 29

30 Special Graphs Measures Graph and Essentials Metrics 30 30

31 Trees and Forests Trees are special cases of undirected graphs A tree is a graph structure that has no cycle in it In a tree, there is exactly one path between any pair of nodes In a tree: V = E + 1 A set of disconnected trees is called a forest A forest containing 3 trees Measures Graph and Essentials Metrics 31 31

32 Special Subgraphs Measures Graph and Essentials Metrics 32 32

33 Spanning Trees For any connected graph, the spanning tree is a subgraph and a tree that includes all the nodes of the graph There may exist multiple spanning trees for a graph. For a weighted graph and one of its spanning tree, the weight of that spanning tree is the summation of the edge weights in the tree. Among the many spanning trees found for a weighted graph, the one with the minimum weight is called the minimum spanning tree (MST) Measures Graph and Essentials Metrics 33 33

34 Steiner Trees Given a weighted graph G : (V, E, W) and a subset of nodes V V (terminal nodes ), the Steiner tree problem aims to find a tree such that it spans all the V nodes and the weight of this tree is minimized Measures Graph and Essentials Metrics 34 34

35 Complete Graphs A complete graph is a graph where for a set of nodes V, all possible edges exist in the graph In a complete graph, any pair of nodes are connected via an edge Measures Graph and Essentials Metrics 35 35

36 Planar Graphs A graph that can be drawn in such a way that no two edges cross each other (other than the endpoints) is called planar Planar Graph Non-planar Graph Measures Graph and Essentials Metrics 36 36

37 Bipartite Graphs A bipartite graph G(V; E) is a graph where the node set can be partitioned into two sets such that, for all edges, one end-point is in one set and the other end-point is in the other set. Measures Graph and Essentials Metrics 37 37

38 Affiliation Networks An affiliation network is a bipartite graph. If an individual is associated with an affiliation, an edge connects the corresponding nodes. Measures Graph and Essentials Metrics 38 38

39 Regular Graphs A regular graph is one in which all nodes have the same degree Regular graphs can be connected or disconnected In a k-regular graph, all nodes have degree k Complete graphs are examples of regular graphs Measures Graph and Essentials Metrics 39 39

40 Bridges (cut-edges) Bridges are edges whose removal will increase the number of connected components Measures Graph and Essentials Metrics 41 41

41 Graph Algorithms Measures Graph and Essentials Metrics 42 42

42 Graph/Network Traversal Algorithms Measures Graph and Essentials Metrics 43 43

43 Graph/Tree Traversal Traversal 1. All users are visited; and 2. No user is visited more than once. There are two main techniques: Depth-First Search (DFS) Breadth-First Search (BFS) Measures Graph and Essentials Metrics 44 44

44 Depth-First Search (DFS) Depth-First Search (DFS) starts from a node i, selects one of its neighbors j from N(i) and performs Depth-First Search on j before visiting other neighbors in N(i). The algorithm can be used both for trees and graphs The algorithm can be implemented using a stack structure Measures Graph and Essentials Metrics 45 45

45 DFS Algorithm Measures Graph and Essentials Metrics 46 46

46 Depth-First Search (DFS): An Example Measures Graph and Essentials Metrics 47 47

47 Breadth-First Search (BFS) BFS starts from a node, visits all its immediate neighbors first, and then moves to the second level by traversing their neighbors. The algorithm can be used both for trees and graphs The algorithm can be implemented using a queue structure Measures Graph and Essentials Metrics 48 48

48 BFS Algorithm Measures Graph and Essentials Metrics 49 49

49 Breadth-First Search (BFS) Measures Graph and Essentials Metrics 50 50

50 Shortest Path When a graph is connected, there is a chance that multiple paths exist between any pair of nodes In many scenarios, we want the shortest path between two nodes in a graph Dijkstra s Algorithm It is designed for weighted graphs with non-negative edges It finds shortest paths that start from a provided node s to all other nodes It finds both shortest paths and their respective lengths Measures Graph and Essentials Metrics 51 51

51 Dijkstra s Algorithm: Finding the shortest path 1. Initiation: Assign zero to the source node and infinity to all other nodes Mark all nodes unvisited Set the source node as current 2. For the current node, consider all of its unvisited neighbors and calculate their tentative distances If tentative distance (current node s distance + edge weight) is smaller than neighbor s distance, then Neighbor s distance = tentative distance 3. After considering all of the neighbors of the current node, mark the current node as visited and remove it from the unvisited set A visited node will never be checked again and its distance recorded now is final and minimal 4. If the destination node has been marked visited or if the smallest tentative distance among the nodes in the unvisited set is infinity, then stop 5. Set the unvisited node marked with the smallest tentative distance as the next "current node" and go to step 2 Measures Graph and Essentials Metrics 52 52

52 Dijkstra s Algorithm Execution Example Measures Graph and Essentials Metrics 53 53

53 Dijkstra s Algorithm Dijkstra s algorithm is source-dependent and finds the shortest paths between the source node and all other nodes. To generate all-pair shortest paths, one can run dijsktra s algorithm n times or use other algorithms such as Floyd-Warshall algorithm. If we want to compute the shortest path from source v to destination d, we can stop the algorithm once the shortest path to the destination node has been determined Measures Graph and Essentials Metrics 54 54

54 Other slides Measures Graph and Essentials Metrics 55 55

55 Internet Measures Graph and Essentials Metrics 56 56

56 Phoenix Road Network Measures Graph and Essentials Metrics 57 57

57 Social Networks and Social Network Analysis A social network A network where elements have a social structure A set of actors (such as individuals or organizations) A set of ties (connections between individuals) Social networks examples: your family network, your friend network, your colleagues,etc. To analyze these networks we can use Social Network Analysis (SNA) Social Network Analysis is an interdisciplinary field from social sciences, statistics, graph theory, complex networks, and now computer science Measures Graph and Essentials Metrics 58 58

58 Social Networks: Examples High school friendship High school dating Measures Graph and Essentials Metrics 59 59

59 Webgraph A webgraph is a way of representing how internet sites are connected on the web In general, a web graph is a directed multigraph Nodes represent sites and edges represent links between sites. Two sites can have multiple links pointing to each other and can have loops (links pointing to themselves) Measures Graph and Essentials Metrics 60 60

60 Webgraph: Government Agencies Measures Graph and Essentials Metrics 61 61

61 Prim s Algorithm: Finding Minimum Spanning Tree It finds minimal spanning trees in a weighted graph It starts by selecting a random node and adding it to the spanning tree. It then grows the spanning tree by selecting edges which have one endpoint in the existing spanning tree and one endpoint among the nodes that are not selected yet. Among the possible edges, the one with the minimum weight is added to the set (along with its end-point). This process is iterated until the graph is fully spanned Measures Graph and Essentials Metrics 62 62

62 Prim s Algorithm Execution Example Measures Graph and Essentials Metrics 63 63

63 Bridge Detection Measures Graph and Essentials Metrics 64 64

V. Adamchik 1 Graph Theory Victor Adamchik Fall of 2005 Plan 1. Basic Vocabulary 2. Regular graph 3. Connectivity 4. Representing Graphs Introduction A.Aho and J.Ulman acknowledge that Fundamentally, computer

### IE 680 Special Topics in Production Systems: Networks, Routing and Logistics*

IE 680 Special Topics in Production Systems: Networks, Routing and Logistics* Rakesh Nagi Department of Industrial Engineering University at Buffalo (SUNY) *Lecture notes from Network Flows by Ahuja, Magnanti

### Discrete Mathematics & Mathematical Reasoning Chapter 10: Graphs

Discrete Mathematics & Mathematical Reasoning Chapter 10: Graphs Kousha Etessami U. of Edinburgh, UK Kousha Etessami (U. of Edinburgh, UK) Discrete Mathematics (Chapter 6) 1 / 13 Overview Graphs and Graph

### Course on Social Network Analysis Graphs and Networks

Course on Social Network Analysis Graphs and Networks Vladimir Batagelj University of Ljubljana Slovenia V. Batagelj: Social Network Analysis / Graphs and Networks 1 Outline 1 Graph...............................

### Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis

Graph Theory and Complex Networks: An Introduction Maarten van Steen VU Amsterdam, Dept. Computer Science Room R4.0, steen@cs.vu.nl Chapter 06: Network analysis Version: April 8, 04 / 3 Contents Chapter

### 2.3 Scheduling jobs on identical parallel machines

2.3 Scheduling jobs on identical parallel machines There are jobs to be processed, and there are identical machines (running in parallel) to which each job may be assigned Each job = 1,,, must be processed

### Practical Graph Mining with R. 5. Link Analysis

Practical Graph Mining with R 5. Link Analysis Outline Link Analysis Concepts Metrics for Analyzing Networks PageRank HITS Link Prediction 2 Link Analysis Concepts Link A relationship between two entities

### DATA ANALYSIS II. Matrix Algorithms

DATA ANALYSIS II Matrix Algorithms Similarity Matrix Given a dataset D = {x i }, i=1,..,n consisting of n points in R d, let A denote the n n symmetric similarity matrix between the points, given as where

### Graph Algorithms. Ananth Grama, Anshul Gupta, George Karypis, and Vipin Kumar

Graph Algorithms Ananth Grama, Anshul Gupta, George Karypis, and Vipin Kumar To accompany the text Introduction to Parallel Computing, Addison Wesley, 3. Topic Overview Definitions and Representation Minimum

### Network/Graph Theory. What is a Network? What is network theory? Graph-based representations. Friendship Network. What makes a problem graph-like?

What is a Network? Network/Graph Theory Network = graph Informally a graph is a set of nodes joined by a set of lines or arrows. 1 1 2 3 2 3 4 5 6 4 5 6 Graph-based representations Representing a problem

### Network (Tree) Topology Inference Based on Prüfer Sequence

Network (Tree) Topology Inference Based on Prüfer Sequence C. Vanniarajan and Kamala Krithivasan Department of Computer Science and Engineering Indian Institute of Technology Madras Chennai 600036 vanniarajanc@hcl.in,

### Analysis of Algorithms, I

Analysis of Algorithms, I CSOR W4231.002 Eleni Drinea Computer Science Department Columbia University Thursday, February 26, 2015 Outline 1 Recap 2 Representing graphs 3 Breadth-first search (BFS) 4 Applications

### Section Summary. Introduction to Graphs Graph Taxonomy Graph Models

Chapter 10 Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity Euler and Hamiltonian Graphs Shortest-Path Problems

### Asking Hard Graph Questions. Paul Burkhardt. February 3, 2014

Beyond Watson: Predictive Analytics and Big Data U.S. National Security Agency Research Directorate - R6 Technical Report February 3, 2014 300 years before Watson there was Euler! The first (Jeopardy!)

### Social Media Mining. Network Measures

Klout Measures and Metrics 22 Why Do We Need Measures? Who are the central figures (influential individuals) in the network? What interaction patterns are common in friends? Who are the like-minded users

### Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis. Contents. Introduction. Maarten van Steen. Version: April 28, 2014

Graph Theory and Complex Networks: An Introduction Maarten van Steen VU Amsterdam, Dept. Computer Science Room R.0, steen@cs.vu.nl Chapter 0: Version: April 8, 0 / Contents Chapter Description 0: Introduction

### Any two nodes which are connected by an edge in a graph are called adjacent node.

. iscuss following. Graph graph G consist of a non empty set V called the set of nodes (points, vertices) of the graph, a set which is the set of edges and a mapping from the set of edges to a set of pairs

### ! E6893 Big Data Analytics Lecture 10:! Linked Big Data Graph Computing (II)

E6893 Big Data Analytics Lecture 10: Linked Big Data Graph Computing (II) Ching-Yung Lin, Ph.D. Adjunct Professor, Dept. of Electrical Engineering and Computer Science Mgr., Dept. of Network Science and

### Incremental Routing Algorithms For Dynamic Transportation Networks

UCGE Reports Number 20238 Department of Geomatics Engineering Incremental Routing Algorithms For Dynamic Transportation Networks (URL: http://www.geomatics.ucalgary.ca/research/publications/gradtheses.html)

### 136 CHAPTER 4. INDUCTION, GRAPHS AND TREES

136 TER 4. INDUCTION, GRHS ND TREES 4.3 Graphs In this chapter we introduce a fundamental structural idea of discrete mathematics, that of a graph. Many situations in the applications of discrete mathematics

### Cpt S 223. School of EECS, WSU

The Shortest Path Problem 1 Shortest-Path Algorithms Find the shortest path from point A to point B Shortest in time, distance, cost, Numerous applications Map navigation Flight itineraries Circuit wiring

### Part 2: Community Detection

Chapter 8: Graph Data Part 2: Community Detection Based on Leskovec, Rajaraman, Ullman 2014: Mining of Massive Datasets Big Data Management and Analytics Outline Community Detection - Social networks -

### Home Page. Data Structures. Title Page. Page 1 of 24. Go Back. Full Screen. Close. Quit

Data Structures Page 1 of 24 A.1. Arrays (Vectors) n-element vector start address + ielementsize 0 +1 +2 +3 +4... +n-1 start address continuous memory block static, if size is known at compile time dynamic,

### 10. Graph Matrices Incidence Matrix

10 Graph Matrices Since a graph is completely determined by specifying either its adjacency structure or its incidence structure, these specifications provide far more efficient ways of representing a

### 12 Abstract Data Types

12 Abstract Data Types 12.1 Source: Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: Define the concept of an abstract data type (ADT).

### CSE 326, Data Structures. Sample Final Exam. Problem Max Points Score 1 14 (2x7) 2 18 (3x6) 3 4 4 7 5 9 6 16 7 8 8 4 9 8 10 4 Total 92.

Name: Email ID: CSE 326, Data Structures Section: Sample Final Exam Instructions: The exam is closed book, closed notes. Unless otherwise stated, N denotes the number of elements in the data structure

### Zachary Monaco Georgia College Olympic Coloring: Go For The Gold

Zachary Monaco Georgia College Olympic Coloring: Go For The Gold Coloring the vertices or edges of a graph leads to a variety of interesting applications in graph theory These applications include various

### Handout #Ch7 San Skulrattanakulchai Gustavus Adolphus College Dec 6, 2010. Chapter 7: Digraphs

MCS-236: Graph Theory Handout #Ch7 San Skulrattanakulchai Gustavus Adolphus College Dec 6, 2010 Chapter 7: Digraphs Strong Digraphs Definitions. A digraph is an ordered pair (V, E), where V is the set

### Chapter 6: Graph Theory

Chapter 6: Graph Theory Graph theory deals with routing and network problems and if it is possible to find a best route, whether that means the least expensive, least amount of time or the least distance.

### CS2 Algorithms and Data Structures Note 11. Breadth-First Search and Shortest Paths

CS2 Algorithms and Data Structures Note 11 Breadth-First Search and Shortest Paths In this last lecture of the CS2 Algorithms and Data Structures thread we will consider the problem of computing distances

### OPTIMAL DESIGN OF DISTRIBUTED SENSOR NETWORKS FOR FIELD RECONSTRUCTION

OPTIMAL DESIGN OF DISTRIBUTED SENSOR NETWORKS FOR FIELD RECONSTRUCTION Sérgio Pequito, Stephen Kruzick, Soummya Kar, José M. F. Moura, A. Pedro Aguiar Department of Electrical and Computer Engineering

### A Review And Evaluations Of Shortest Path Algorithms

A Review And Evaluations Of Shortest Path Algorithms Kairanbay Magzhan, Hajar Mat Jani Abstract: Nowadays, in computer networks, the routing is based on the shortest path problem. This will help in minimizing

### Fundamentals of algorithms

CHAPTER Fundamentals of algorithms 4 Chung-Yang (Ric) Huang National Taiwan University, Taipei, Taiwan Chao-Yue Lai National Taiwan University, Taipei, Taiwan Kwang-Ting (Tim) Cheng University of California,

### Mining Social-Network Graphs

342 Chapter 10 Mining Social-Network Graphs There is much information to be gained by analyzing the large-scale data that is derived from social networks. The best-known example of a social network is

### Solutions to Homework 6

Solutions to Homework 6 Debasish Das EECS Department, Northwestern University ddas@northwestern.edu 1 Problem 5.24 We want to find light spanning trees with certain special properties. Given is one example

### 1. Sorting (assuming sorting into ascending order) a) BUBBLE SORT

DECISION 1 Revision Notes 1. Sorting (assuming sorting into ascending order) a) BUBBLE SORT Make sure you show comparisons clearly and label each pass First Pass 8 4 3 6 1 4 8 3 6 1 4 3 8 6 1 4 3 6 8 1

### Finding and counting given length cycles

Finding and counting given length cycles Noga Alon Raphael Yuster Uri Zwick Abstract We present an assortment of methods for finding and counting simple cycles of a given length in directed and undirected

### Data Structures in Java. Session 16 Instructor: Bert Huang

Data Structures in Java Session 16 Instructor: Bert Huang http://www.cs.columbia.edu/~bert/courses/3134 Announcements Homework 4 due next class Remaining grades: hw4, hw5, hw6 25% Final exam 30% Midterm

### Distributed Computing over Communication Networks: Maximal Independent Set

Distributed Computing over Communication Networks: Maximal Independent Set What is a MIS? MIS An independent set (IS) of an undirected graph is a subset U of nodes such that no two nodes in U are adjacent.

### Graph Theory: Penn State Math 485 Lecture Notes. Christopher Griffin 2011-2012

Graph Theory: Penn State Math 485 Lecture Notes Version 1.4..1 Christopher Griffin 011-01 Licensed under a Creative Commons Attribution-Noncommercial-Share Alike.0 United States License With Contributions

### Outline. NP-completeness. When is a problem easy? When is a problem hard? Today. Euler Circuits

Outline NP-completeness Examples of Easy vs. Hard problems Euler circuit vs. Hamiltonian circuit Shortest Path vs. Longest Path 2-pairs sum vs. general Subset Sum Reducing one problem to another Clique

### SCAN: A Structural Clustering Algorithm for Networks

SCAN: A Structural Clustering Algorithm for Networks Xiaowei Xu, Nurcan Yuruk, Zhidan Feng (University of Arkansas at Little Rock) Thomas A. J. Schweiger (Acxiom Corporation) Networks scaling: #edges connected

### Divide-and-Conquer. Three main steps : 1. divide; 2. conquer; 3. merge.

Divide-and-Conquer Three main steps : 1. divide; 2. conquer; 3. merge. 1 Let I denote the (sub)problem instance and S be its solution. The divide-and-conquer strategy can be described as follows. Procedure

### Graph theory and network analysis. Devika Subramanian Comp 140 Fall 2008

Graph theory and network analysis Devika Subramanian Comp 140 Fall 2008 1 The bridges of Konigsburg Source: Wikipedia The city of Königsberg in Prussia was set on both sides of the Pregel River, and included

### Sociology and CS. Small World. Sociology Problems. Degree of Separation. Milgram s Experiment. How close are people connected? (Problem Understanding)

Sociology Problems Sociology and CS Problem 1 How close are people connected? Small World Philip Chan Problem 2 Connector How close are people connected? (Problem Understanding) Small World Are people

### DATA STRUCTURES NOTES FOR THE FINAL EXAM SUMMER 2002 Michael Knopf mknopf@ufl.edu

DATA STRUCTURES NOTES FOR THE FINAL EXAM SUMMER 2002 Michael Knopf mknopf@ufl.edu ',6&/\$,0(5 0U 0LFKDHO.QRSI SUHSDUHG WKHVH QRWHV 1HLWKHU WKH FRXUVH LQVWUXFWRU QRU WKH WHDFKLQJ DVVLVWDQWV KDYH UHYLHZHG

### Graph Theory and Complex Networks: An Introduction. Chapter 08: Computer networks

Graph Theory and Complex Networks: An Introduction Maarten van Steen VU Amsterdam, Dept. Computer Science Room R4.20, steen@cs.vu.nl Chapter 08: Computer networks Version: March 3, 2011 2 / 53 Contents

### SGL: Stata graph library for network analysis

SGL: Stata graph library for network analysis Hirotaka Miura Federal Reserve Bank of San Francisco Stata Conference Chicago 2011 The views presented here are my own and do not necessarily represent the

### Data Structure [Question Bank]

Unit I (Analysis of Algorithms) 1. What are algorithms and how they are useful? 2. Describe the factor on best algorithms depends on? 3. Differentiate: Correct & Incorrect Algorithms? 4. Write short note:

### Euler Paths and Euler Circuits

Euler Paths and Euler Circuits An Euler path is a path that uses every edge of a graph exactly once. An Euler circuit is a circuit that uses every edge of a graph exactly once. An Euler path starts and

### Class One: Degree Sequences

Class One: Degree Sequences For our purposes a graph is a just a bunch of points, called vertices, together with lines or curves, called edges, joining certain pairs of vertices. Three small examples of

### SPANNING CACTI FOR STRUCTURALLY CONTROLLABLE NETWORKS NGO THI TU ANH NATIONAL UNIVERSITY OF SINGAPORE

SPANNING CACTI FOR STRUCTURALLY CONTROLLABLE NETWORKS NGO THI TU ANH NATIONAL UNIVERSITY OF SINGAPORE 2012 SPANNING CACTI FOR STRUCTURALLY CONTROLLABLE NETWORKS NGO THI TU ANH (M.Sc., SFU, Russia) A THESIS

### Midterm Practice Problems

6.042/8.062J Mathematics for Computer Science October 2, 200 Tom Leighton, Marten van Dijk, and Brooke Cowan Midterm Practice Problems Problem. [0 points] In problem set you showed that the nand operator

### The tree-number and determinant expansions (Biggs 6-7)

The tree-number and determinant expansions (Biggs 6-7) André Schumacher March 20, 2006 Overview Biggs 6-7 [1] The tree-number κ(γ) κ(γ) and the Laplacian matrix The σ function Elementary (sub)graphs Coefficients

### Mathematics for Algorithm and System Analysis

Mathematics for Algorithm and System Analysis for students of computer and computational science Edward A. Bender S. Gill Williamson c Edward A. Bender & S. Gill Williamson 2005. All rights reserved. Preface

Chapter 7 Load Balancing and Termination Detection Load balancing used to distribute computations fairly across processors in order to obtain the highest possible execution speed. Termination detection

### Graphical degree sequences and realizations

swap Graphical and realizations Péter L. Erdös Alfréd Rényi Institute of Mathematics Hungarian Academy of Sciences MAPCON 12 MPIPKS - Dresden, May 15, 2012 swap Graphical and realizations Péter L. Erdös

### CIS 700: algorithms for Big Data

CIS 700: algorithms for Big Data Lecture 6: Graph Sketching Slides at http://grigory.us/big-data-class.html Grigory Yaroslavtsev http://grigory.us Sketching Graphs? We know how to sketch vectors: v Mv

### An Introduction to APGL

An Introduction to APGL Charanpal Dhanjal February 2012 Abstract Another Python Graph Library (APGL) is a graph library written using pure Python, NumPy and SciPy. Users new to the library can gain an

### UPPER BOUNDS ON THE L(2, 1)-LABELING NUMBER OF GRAPHS WITH MAXIMUM DEGREE

UPPER BOUNDS ON THE L(2, 1)-LABELING NUMBER OF GRAPHS WITH MAXIMUM DEGREE ANDREW LUM ADVISOR: DAVID GUICHARD ABSTRACT. L(2,1)-labeling was first defined by Jerrold Griggs [Gr, 1992] as a way to use graphs

### Approximation Algorithms

Approximation Algorithms or: How I Learned to Stop Worrying and Deal with NP-Completeness Ong Jit Sheng, Jonathan (A0073924B) March, 2012 Overview Key Results (I) General techniques: Greedy algorithms

### Why? A central concept in Computer Science. Algorithms are ubiquitous.

Analysis of Algorithms: A Brief Introduction Why? A central concept in Computer Science. Algorithms are ubiquitous. Using the Internet (sending email, transferring files, use of search engines, online

### Semi-Matchings for Bipartite Graphs and Load Balancing

Semi-Matchings for Bipartite Graphs and Load Balancing Nicholas J. A. Harvey Richard E. Ladner László Lovász Tami Tamir Abstract We consider the problem of fairly matching the left-hand vertices of a bipartite

### 5. A full binary tree with n leaves contains [A] n nodes. [B] log n 2 nodes. [C] 2n 1 nodes. [D] n 2 nodes.

1. The advantage of.. is that they solve the problem if sequential storage representation. But disadvantage in that is they are sequential lists. [A] Lists [B] Linked Lists [A] Trees [A] Queues 2. The

### Graph/Network Visualization

Graph/Network Visualization Data model: graph structures (relations, knowledge) and networks. Applications: Telecommunication systems, Internet and WWW, Retailers distribution networks knowledge representation

### Topological Properties

Advanced Computer Architecture Topological Properties Routing Distance: Number of links on route Node degree: Number of channels per node Network diameter: Longest minimum routing distance between any

### 2. (a) Explain the strassen s matrix multiplication. (b) Write deletion algorithm, of Binary search tree. [8+8]

Code No: R05220502 Set No. 1 1. (a) Describe the performance analysis in detail. (b) Show that f 1 (n)+f 2 (n) = 0(max(g 1 (n), g 2 (n)) where f 1 (n) = 0(g 1 (n)) and f 2 (n) = 0(g 2 (n)). [8+8] 2. (a)

### A Study of Sufficient Conditions for Hamiltonian Cycles

DeLeon 1 A Study of Sufficient Conditions for Hamiltonian Cycles Melissa DeLeon Department of Mathematics and Computer Science Seton Hall University South Orange, New Jersey 07079, U.S.A. ABSTRACT A graph

### SECTIONS 1.5-1.6 NOTES ON GRAPH THEORY NOTATION AND ITS USE IN THE STUDY OF SPARSE SYMMETRIC MATRICES

SECIONS.5-.6 NOES ON GRPH HEORY NOION ND IS USE IN HE SUDY OF SPRSE SYMMERIC MRICES graph G ( X, E) consists of a finite set of nodes or vertices X and edges E. EXMPLE : road map of part of British Columbia

### Graphs without proper subgraphs of minimum degree 3 and short cycles

Graphs without proper subgraphs of minimum degree 3 and short cycles Lothar Narins, Alexey Pokrovskiy, Tibor Szabó Department of Mathematics, Freie Universität, Berlin, Germany. August 22, 2014 Abstract

### Complex Networks Analysis: Clustering Methods

Complex Networks Analysis: Clustering Methods Nikolai Nefedov Spring 2013 ISI ETH Zurich nefedov@isi.ee.ethz.ch 1 Outline Purpose to give an overview of modern graph-clustering methods and their applications

### COMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH. 1. Introduction

COMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH ZACHARY ABEL 1. Introduction In this survey we discuss properties of the Higman-Sims graph, which has 100 vertices, 1100 edges, and is 22 regular. In fact

### Load Balancing and Termination Detection

Chapter 7 Load Balancing and Termination Detection 1 Load balancing used to distribute computations fairly across processors in order to obtain the highest possible execution speed. Termination detection

### Social Media Mining. An Introduction. Reza Zafarani Mohammad Ali Abbasi Huan Liu

Social Media Mining An Introduction Reza Zafarani Mohammad Ali Abbasi Huan Liu Draft Version: April 20, 2014 By permission of Cambridge University Press, this preprint is free. Users can make one hardcopy

### Connected Identifying Codes for Sensor Network Monitoring

Connected Identifying Codes for Sensor Network Monitoring Niloofar Fazlollahi, David Starobinski and Ari Trachtenberg Dept. of Electrical and Computer Engineering Boston University, Boston, MA 02215 Email:

### A Sublinear Bipartiteness Tester for Bounded Degree Graphs

A Sublinear Bipartiteness Tester for Bounded Degree Graphs Oded Goldreich Dana Ron February 5, 1998 Abstract We present a sublinear-time algorithm for testing whether a bounded degree graph is bipartite

### Dynamic Programming. Applies when the following Principle of Optimality

Dynamic Programming Applies when the following Principle of Optimality holds: In an optimal sequence of decisions or choices, each subsequence must be optimal. Translation: There s a recursive solution.

### Detection of local affinity patterns in big data

Detection of local affinity patterns in big data Andrea Marinoni, Paolo Gamba Department of Electronics, University of Pavia, Italy Abstract Mining information in Big Data requires to design a new class

### Labeling outerplanar graphs with maximum degree three

Labeling outerplanar graphs with maximum degree three Xiangwen Li 1 and Sanming Zhou 2 1 Department of Mathematics Huazhong Normal University, Wuhan 430079, China 2 Department of Mathematics and Statistics

### Lecture 15 An Arithmetic Circuit Lowerbound and Flows in Graphs

CSE599s: Extremal Combinatorics November 21, 2011 Lecture 15 An Arithmetic Circuit Lowerbound and Flows in Graphs Lecturer: Anup Rao 1 An Arithmetic Circuit Lower Bound An arithmetic circuit is just like

### Simplified External memory Algorithms for Planar DAGs. July 2004

Simplified External Memory Algorithms for Planar DAGs Lars Arge Duke University Laura Toma Bowdoin College July 2004 Graph Problems Graph G = (V, E) with V vertices and E edges DAG: directed acyclic graph

### Institut für Informatik Lehrstuhl Theoretische Informatik I / Komplexitätstheorie. An Iterative Compression Algorithm for Vertex Cover

Friedrich-Schiller-Universität Jena Institut für Informatik Lehrstuhl Theoretische Informatik I / Komplexitätstheorie Studienarbeit An Iterative Compression Algorithm for Vertex Cover von Thomas Peiselt

### International Journal of Software and Web Sciences (IJSWS) www.iasir.net

International Association of Scientific Innovation and Research (IASIR) (An Association Unifying the Sciences, Engineering, and Applied Research) ISSN (Print): 2279-0063 ISSN (Online): 2279-0071 International

### Algorithm Design and Analysis

Algorithm Design and Analysis LECTURE 27 Approximation Algorithms Load Balancing Weighted Vertex Cover Reminder: Fill out SRTEs online Don t forget to click submit Sofya Raskhodnikova 12/6/2011 S. Raskhodnikova;

### 5.1 Bipartite Matching

CS787: Advanced Algorithms Lecture 5: Applications of Network Flow In the last lecture, we looked at the problem of finding the maximum flow in a graph, and how it can be efficiently solved using the Ford-Fulkerson

### Graph Theoretic Models and Tools for the Analysis of Dynamic Wireless Multihop Networks

Graph Theoretic Models and Tools for the Analysis of Dynamic Wireless Multihop Networks Guoqiang Mao School of Electrical and Information Engineering The University of Sydney National ICT Australia Limited[1],

### ONLINE DEGREE-BOUNDED STEINER NETWORK DESIGN. Sina Dehghani Saeed Seddighin Ali Shafahi Fall 2015

ONLINE DEGREE-BOUNDED STEINER NETWORK DESIGN Sina Dehghani Saeed Seddighin Ali Shafahi Fall 2015 ONLINE STEINER FOREST PROBLEM An initially given graph G. s 1 s 2 A sequence of demands (s i, t i ) arriving

### Distance Degree Sequences for Network Analysis

Universität Konstanz Computer & Information Science Algorithmics Group 15 Mar 2005 based on Palmer, Gibbons, and Faloutsos: ANF A Fast and Scalable Tool for Data Mining in Massive Graphs, SIGKDD 02. Motivation

### Discrete Mathematics. Hans Cuypers. October 11, 2007

Hans Cuypers October 11, 2007 1 Contents 1. Relations 4 1.1. Binary relations................................ 4 1.2. Equivalence relations............................. 6 1.3. Relations and Directed Graphs.......................

### Practical statistical network analysis (with R and igraph)

Practical statistical network analysis (with R and igraph) Gábor Csárdi csardi@rmki.kfki.hu Department of Biophysics, KFKI Research Institute for Nuclear and Particle Physics of the Hungarian Academy of

### Cloud Computing. Lectures 10 and 11 Map Reduce: System Perspective 2014-2015

Cloud Computing Lectures 10 and 11 Map Reduce: System Perspective 2014-2015 1 MapReduce in More Detail 2 Master (i) Execution is controlled by the master process: Input data are split into 64MB blocks.

### A 2-factor in which each cycle has long length in claw-free graphs

A -factor in which each cycle has long length in claw-free graphs Roman Čada Shuya Chiba Kiyoshi Yoshimoto 3 Department of Mathematics University of West Bohemia and Institute of Theoretical Computer Science

### Disjoint Compatible Geometric Matchings

Disjoint Compatible Geometric Matchings Mashhood Ishaque Diane L. Souvaine Csaba D. Tóth Abstract We prove that for every even set of n pairwise disjoint line segments in the plane in general position,

### Inhalt. Non-Standard Database Systems. Graph Terms. Storing Data in Graphs Examples. Graph Databases

Inhalt Non-Standard Database Systems Graph Databases Nikolaus Augsten nikolaus.augsten@sbg.ac.at FB Computerwissenschaften Universität Salzburg 1 2 3 http://dbresearch.uni-salzburg.at Sommersemester 2016

### A Fast Algorithm For Finding Hamilton Cycles

A Fast Algorithm For Finding Hamilton Cycles by Andrew Chalaturnyk A thesis presented to the University of Manitoba in partial fulfillment of the requirements for the degree of Masters of Science in Computer

### An Empirical Study of Two MIS Algorithms

An Empirical Study of Two MIS Algorithms Email: Tushar Bisht and Kishore Kothapalli International Institute of Information Technology, Hyderabad Hyderabad, Andhra Pradesh, India 32. tushar.bisht@research.iiit.ac.in,

### Some questions... Graphs

Uni Innsbruck Informatik - 1 Uni Innsbruck Informatik - 2 Some questions... Peer-to to-peer Systems Analysis of unstructured P2P systems How scalable is Gnutella? How robust is Gnutella? Why does FreeNet