Friend's Party Circle: There are a few friends living in the same area. They have a party every weekend and the place of party change each week. It is always a difficult task to select a place which...


Friend's Party Circle:<br>There are a few friends living in the same area. They have a party every weekend and the place of<br>party change each week. It is always a difficult task to select a place which is nearest for everyone.<br>They all decided to take advantage of Computer Science to solve this problem.<br>Names of friends are Ahmed, Rehman. Careem. Basit. Dawood. Ghani, and Farid. Ahmed lives at<br>5 minutes' walk from rehman and at 10 minutes' walk from Careem. Careem lives at 3 minutes'<br>walk from Dawood. Rehman lives at 4 minutes' walk from Basit and 2 minutes' walk from Dawood.<br>Dawood lives at two minutes' walk from Farid. Ghani lives at 2 minutes' walk from Basit.<br>a. If we represent a graph G = V (V, E) in which set of vertices are home of each Friend and<br>an edge represents a path between two homes. Provide the adjacency matrix of directed<br>graph of the graph G.<br>b. In above directed graph G. You are required to devise an algorithm to find all possible<br>paths.<br>

Extracted text: Friend's Party Circle: There are a few friends living in the same area. They have a party every weekend and the place of party change each week. It is always a difficult task to select a place which is nearest for everyone. They all decided to take advantage of Computer Science to solve this problem. Names of friends are Ahmed, Rehman. Careem. Basit. Dawood. Ghani, and Farid. Ahmed lives at 5 minutes' walk from rehman and at 10 minutes' walk from Careem. Careem lives at 3 minutes' walk from Dawood. Rehman lives at 4 minutes' walk from Basit and 2 minutes' walk from Dawood. Dawood lives at two minutes' walk from Farid. Ghani lives at 2 minutes' walk from Basit. a. If we represent a graph G = V (V, E) in which set of vertices are home of each Friend and an edge represents a path between two homes. Provide the adjacency matrix of directed graph of the graph G. b. In above directed graph G. You are required to devise an algorithm to find all possible paths.

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here