मराठी

With Suitable Example Explain How Tree Can Be Represented in Memory?

Advertisements

प्रश्न

With suitable example explain how tree can be represented in Memory?

टीपा लिहा
Advertisements

उत्तर


The above tree can be represented in memory as,

The roots stores of first node of tree T.
AVAIL stores address of first null node. To insert another node to tree T, it is inserted memory location pointed by AVAIL.

shaalaa.com
Basic Data Structures (Stack, Queue, Dequeue)
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2014-2015 (March)

APPEARS IN

Advertisements
Share
Notifications



      Forgot password?
Use app×