A Survey on Hypothesis Generation for Scientific Discovery in the Era of Large Language Models