I am completely new to AI and doing self-learning to acquire this knowledge. I went through the different available search algorithm like BFS, DFS and A* but something that I can't understand is a heuristic function that needs to be embedded in these algorithms. I am fine with algorithms but I don't know how we find a good heuristic function for every problem. Is there any steps that needs to be take to achieve a heuristic?
Any comment would greatly appreciated.