其中 frontier 为存放节点的数据结构 对于DFS来说,frontier 是 stack 对于 BFS 来说,frontier 是 queue 对于贪婪、A* 来说,frontier 是定义了排序规则的 PriorityQueue