Family Tree Algorithm
Update: This is not the best solution I have come up with, but I’ve left it because there are so many comments relating to it. You have a set of events (birth/death), parental state (no descendants, parent, grandparent, etc) and life state (alive, dead). I would store my data in structures with the following fields: … Read more