Question: 2. (15 points) Suppose Facebook stores a huge undirected graph for the social network, where each vertex represents a user, and if two users are

2. (15 points) Suppose Facebook stores a huge undirected graph for the social network, where each vertex represents a user, and if two users are friends with each other, they are connected by an edge. We assume that there are about 10 users, and each user has about 200 friends on average. Should we use adjacency list or adjacency matrix to represent this graph? Why? 2. (15 points) Suppose Facebook stores a huge undirected graph for the social network, where each vertex represents a user, and if two users are friends with each other, they are connected by an edge. We assume that there are about 10 users, and each user has about 200 friends on average. Should we use adjacency list or adjacency matrix to represent this graph? Why
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
