Closed SaTahernejad closed 5 years ago
Hi Sahar,
Thanks for the PRs. I feel like there is more room to improve.
AlpsKnowlegePool
I think these are worth considering while we are on it.
Aykut
It's true that the nodes should always be stored in a priority queue with a prioritization that means we don't need to iterate to find the best. That is sort of the whole point of the design---the search strategy should be the priority scheme of the queue, by definition. Is there any search strategy currently implemented for which this is not the case? Looks like best estimate was left out of the if
statement. I guess the difficulty with that one is that the prioritization might change dynamically, aftter the nodes are added to the queue.
And yes, the original idea was that all knowledge pool should be implemented in the same way, but I think that ideal was discarded somewhere along the way because of practical considerations. We could think about trying to fix that, but I'm not sure how easy it would be.
… best node is node[0](just for AlpsSearchTypeBestFirst, AlpsSearchTypeBreadthFirst and AlpsSearchTypeHybrid)