Family Tree :- myheritage.com

Posted by Nitesh Panchal on Stack Overflow See other posts from Stack Overflow or by Nitesh Panchal
Published on 2010-05-11T12:21:05Z Indexed on 2010/05/11 12:24 UTC
Read the original article Hit count: 252

Filed under:

Hello, The other day i just accidently visited the site myheritage.com. I was just wondering, how they must have created one? Can anybody tell me what can be their database design? and if possible, algorithm that we can use to generate such a tree?

Generating simple binary tree is very easy using recursion. But if you have a look at the site(if you have time please make account on it and add few nodes to feel) when we add son to a father, it's mother is automatically added(if you don't add explicitly). Mother's family tree is also generated side by side and many such fancy things are happening. In a simple binary tree we have a root node and then many nodes below it. Thus we cannot show wife and husband in the tree and then show a line from wife and husband to child.

In spare time, can anybody discuss what can be it's database design and the recursive algorithm that we can follow to generate it?

I hope i am not asking too much from you :).

© Stack Overflow or respective owner

Related posts about family-tree

  • public family tree

    as seen on Super User - Search for 'Super User'
    Hi all Does anyone know a ancestry site that allows you to create a public profile or tree, so that other visitors can see your family tree. In all sites that I have found (dynastree.com, familylink.com, ancestry.com, genebase.com), if someone wants to see your family tree, they must be members or… >>> More

  • Logic for family tree program

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hi All, I am creating a family tree program in Java, or at least trying to. I have developed several classes: Person - getters and setter for name gender age etc FamilyMember - extends Person getters and setters for setting arents and children Family - which consists of multiple family members… >>> More

  • Family Tree :- myheritage.com

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hello, The other day i just accidently visited the site myheritage.com. I was just wondering, how they must have created one? Can anybody tell me what can be their database design? and if possible, algorithm that we can use to generate such a tree? Generating simple binary tree is very easy using… >>> More

  • Prolog Family tree

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hi I have a Question in prolog , I did it but its not showing answers When i ask about the brothers,sisters,uncles,aunts This is what I wrote, what's wrong ? /*uncle(X, Y) :– male(X), sibling(X, Z), parent(Z, Y).*/ /*uncle(X, Y) :– male(X), spouse(X, W), sibling(W, Z), parent(Z, Y).*/ uncle(X… >>> More

  • SQL Loop over a family tree

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Using SQL server 2008. I have a family tree of animals stored in a table, and want to give some information on how 'genetically diverse' (or not) the offspring is. In SQL how can I produce sensible metrics to show how closely related the parents are? Perhaps some sort of percentage of shared blood… >>> More