Now answer the following 2 set questions on the above figure
(1)
.
a) The above figure is both a graph and a tree Explain this with a programe
figure
b) What is the depth of node 11?
c) What is the height of noden
d) What is the height of the tree?
c) What are the ancestors of node 107
f) What are the descendants of node 12
g) Builta BST for the following node sequence
50, 25, 30, 35, 60, 10, 55, 20, 70, 1
(2)
a) Give the adjacency matrix and linked list representation of the above graph.
b)
write the BFS and DFS traversal sequence if the graph.
c)
Write the inorder, preorder and postorder traversal of the above tree
.
# hepl please, by doing this for me :(
Answers
Answered by
0
Answer:
hey guys I am so confused sorry please marks as brainlist hello
Answered by
0
Answer:
brother this is too much big question at first I will read it then I will send you answer after reading and I will I will I get my answer
Similar questions