of Habsburg gives a well-documented example of pedigree collapse. In the case of Charles II, the last Habsburg King of Spain, there were three uncle-niece marriages among the seven unions of his immediate ancestry (i.e. parents, grandparents and great-grandparents). His father and two of his great-grandfathers married their nieces. His paternal grandparents were first cousins once removed, but they comprised two of the seven marriages because they were also parents to his maternal grandmother. His maternal grandparents' marriage and the final marriage of great-grandparents was between first cousins. The maximum pedigree collapse of 50% within a single generation is caused by procreation between full siblings; such children have only two different grandparents instead of the usual four. If two half-siblings procreate, their children have three grandparents instead of four (25%). If a child and parent were to procreate, their offspring would have four grandparents; so, procreation between parents and children would result in less pedigree collapse than procreation between full siblings – although one of the grandparents would also be a parent and therefore introduce no additional genes. If a person procreates with a full sibling of one of their parents (as with the uncle-niece marriages mentioned above), the offspring have four different persons as grandparents, and eight great-grandparents, but again some of these contribute no additional genes (see Inbreeding). Small, isolated populations such as those of remote islands represent extreme examples of pedigree collapse, but the common historical tendency to marry those within walking distance, due to the relative immobility of the population before modern transport, meant that most marriage partners were at least distantly related. Even in America around the 19th century, the tendency of immigrants to marry among their ethnic, language or cultural group produced many cousin marriages. If one considers as a function of time the number of a given individual's ancestors who were alive at time , it is likely that for most individuals this function has a maximum at around 1200 AD. It was suggested in 1985 that everyone on Earth is at most 50th cousin to everyone else, based on a relatively random mating model. Simulations published in 2004 which take into account the geographical separations and less random patterns of mating in real life suggest that some populations are separated by up to a few thousand years, with a most recent common ancestor perhaps 76 generations back, though some highly remote populations