Question: 1. Explain how you would use a disjoint set to create a network of people that have connections based on friends, families, and type of
1. Explain how you would use a disjoint set to create a network of people that have connections based on friends, families, and type of pet owned. Then explain the advantage or disadvantage of using disjoint sets versus using a graph data structure.
2. You are given a directed graph picture. You start from node ___. What would be the the order the vertices will be visited? (Give an example)
3. Explain the difference between an adjacency matrix and an adjacency list representation of a graph. If given an adjacency matrix, how could you determine if its acyclic?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
