This commit is contained in:
2024-12-17 20:05:10 +01:00
parent 7ea9fa5a6b
commit 68f5cce6fb
8 changed files with 325 additions and 1 deletions

View File

@ -55,7 +55,7 @@ func (queue *CandidateQueue) Len() int {
}
func (queue *CandidateQueue) Less(i, j int) bool {
return queue.elements[i].Cnd.EstimateCost < queue.elements[i].Cnd.EstimateCost
return queue.elements[i].Cnd.EstimateCost < queue.elements[j].Cnd.EstimateCost
}
func (queue *CandidateQueue) Swap(i, j int) {