Computer Science, asked by khushibehl8182, 11 months ago

Difference between the internal and external path length of a binary tree with n internal nodes is? 2n n n+1 2n+1

Answers

Answered by arshbbcommander
1

\huge\bold\red{SOLUTION}\bold\purple{♡FollowMe♡}

 <marquee>

HOPE IT HELPS...

Answered by pragyakirti12345
0

Answer: (a) 2n

Concept : Binary Tree

Given : (a) 2n

            (b) n

            (c) n + 1

            (d) 2n + 1

To Find : Difference between the internal and external path length of a

              binary tree with n internal nodes is?

Explanation :

Trees are data structures used for data storage. When accessing that data in a tree structure, there is a cost for making each decision while following the branches from the root to the node which contains the useful data. The number of branches traversed, in reaching a node from root is called the path length or path to the node. The number of decisions will be an integer and every node will have its own path. Binary trees are also a tree data structure, which has two nodes in every path.

The difference between the external path length of a full binary tree equals the internal path length plus twice the number of internal nodes.

Internal path length = i

External path length = 2n + i

∴ Difference between internal and external node = 2n + i - i = 2n

#SPJ3

Similar questions