Resource Allocation Mechanism Considering Combination of Exploitation and Exploration in Ambidexterity with External Factors