0
Hello. I am in need of an efficient data structure to search for the lowest value of a disordered vector, being that:
- The vector cannot be ordered.
- The vector should be able to update the values in log(n).
- The search for the lowest vector value should be in log(n).
Is there any data structure that meets the requirements?
Thank you in advance for the reply and the examples :)
A min heap meets these requirements, although not properly "disorderly"
– Isac
Since the vector cannot be ordered later, I have a question: you can insert the item so that it is already ordered?
– Vinicius Castro