Text this: Research on the A* Algorithm Based on Adaptive Weights and Heuristic Reward Values