Individual bias and fluctuations in collective decision making: from algorithms to Hamiltonians