1,235 views

1 Answer

0 votes
0 votes

Complete Binary Tree on 7 vertices

            
           ________1________
      _____2___          ___3__
     4         5        6      7

Adjacency List Representation:

Node# Connected With
1 2,3
2 1,4,5
3 1,6,7
4 2
5 2
6 3
7 3

Corresponding  adjacency matrix representation:

0 1 1 0 0 0 0

1 0 0 1 1 0 0

1 0 0 0 0 1 1

0 1 0 0 0 0 0

0 1 0 0 0 0 0

0 0 1 0 0 0 0

0 0 1 0 0 0 0

Related questions

0 votes
0 votes
1 answer
2
akash.dinkar12 asked Apr 7, 2019
361 views
Given an adjacency-list representation of a directed graph, how long does it take to compute the out-degree of every vertex ? How long does it take to compute the in-degr...