Family Tree using Generalized Linked List
Hello and Welcome. In the previous blog post, we saw how we can store polynomials using a linked list. We also saw various types of Linked Lists and studied in detail about the Generalized Linked Lists(GLLs). This is the final blog of this blog series. In this blog, we will go a step further and learn how to use GLLs to implement a family tree. This will enable us to store hierarchical data. Let's start with the basics of a family tree. What is Family Tree? A family tree , or pedigree chart, is a chart representing family relationships in a conventional tree structure . A simple family tree. The algorithm for implementing the family tree is as follows: - Create a struct node with: - · name pointer · spouse pointer · pointer to sibling node, · pointer to the chi...