A queen bee measures a cell before laying in it, this produces a trigger that essentially switches on or off her ability to lay a fertilised or non fertilised egg. So in larger cells she lays drone eggs and in smaller cells she lays female eggs.
How then does she figure out how to lay a female...