This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Reference | |
class_name PriorityQueueDEPQ | |
# Double-ended priority queue using standart array and standart custom_sort() function | |
# It can be very slow if constantly toogle _unsorted flag, but almost as fast as heap if used correctly | |
# Try to awoid getting queue values such as min/max value/priority after queue modification | |
# Wrong way to use: | |
# add("element0", 0) | |
# pop_min() |