Ants are eusocial and close relatives of bees and wasps. Ant and bees use Haplodiploidy. it is a sex-determination system in which males develop from unfertilized eggs and are haploid, and females develop from fertilized eggs and are diploid.
Young queen ants leaving the nest can have one or 10 or 20 fathers. The new queens and workers are not necessarilly clones, and defective genes can be omitted in workers and queens.
the queen may be inseminated by more than 15–20 males, it's polygynous, versus mono androus (andros being male in greek).
Some queens can mate with different species of ant and hybridize.
A nuptial flight of 10 queens in the first year and 1000 queens in the 10th year, all those individuals will have different genetics, because they all come from different fertilized eggs. The males are drones and all the same.
It can vary by species of ant, the queens can be all the same: in the ant Cataglyphis cursor, the queens are produced by parthenogenesis but workers arise from fertilized eggs, suggesting that genetic variation is vital for the worker
caste (Pearcy et al. 2004).
Here is an attempt to unify the literature on ant caste development and evolution with a single theoretical framework, drawing on recent advances in evolutionary developmental biology.
They say that ant populations contain a balance little to big ants, a range of sizes, whereby queen like features, ovaries, wings and light receptors between teh eyes called ocelli, appear in steps as the larvae grow. Ants molt and the develop from small workers to large queens progressively.
If you check an soldier ant, she has a large head, it's almost as big as a queen's, although the body stays small. in the next stage of caste size, the body grows into nearly a queen, else with wings too.
If there is a lack of one caste, more of a particular kind are replenished.
To read the paper faster, search for keywords, for example hormones, they say:
Two endocrine hormones, juvenile hormone (JH) and ecdysone, are important regulators of developmental timing in insects. Pupation (and the cessation of larval growth) is triggered by ecdysone, and the action of ecdysone is inhibited by JH (Hiruma and Kaneko, 2013). Thus, treatment of larvae with JH or JH analogs leads to prolonged growth and larger size, as long as necessary nutrition is present. JH removal and/or ecdysone treatment leads to premature pupation and smaller adult size (Hiruma and Kaneko, 2013). This endocrine regulation of insect size has been demonstrated in Coleoptera and Lepidoptera, and is also supported by experiments in ants.
Some of the small ants have the potential to become queens, and when there is lots of food, more of the small ones will grow and make many queens that can fly on a hot day.
In M. rubra, larvae do not have the potential for queen development under normal conditions (Brian, 1979). However, larvae that are forced to diapause just before pupation reorganize their endocrine organs and delay pupation after growth is resumed (Brian, 1979). If sufficient nutrition is available, these totipotent larvae attain a large size and develop into queens
You may laugh by reading the effective genetic ant population mathematics at the end of the first citation. it is completely professor level, with a maths formula, which demonstrates that it's extraordinarily complex and variable effective genetic population distribution and gene expression.
If someone can say more about eusocial gene determination it's quite a difficult topic.