This a mexified MATLAB wrapper of C++ STL priority queue
https://github.com/pradeepr-roboticist/PriorityQueue-MEX-Matlab
Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
This a mexified MATLAB wrapper of C++ STL priority queue
This priority queue implementation is simple. Nevertheless, it can be used to keep a "sorted" list of arbitrary objects. Instead of pushing the entire object, we can push only its index. This is done by first storing the objects in MATLAB as you normally would. Then, you can push the index and its priority into the priority queue. When you take an element off the priority queue, you can use the index to find the object. This way, the priority queue given here is quite general.
This implementation keeps the priority queue sorted in descending order. In other words, calling the top_value function returns the largest priority value. You can easily make it operate in ascending order by supplying negative priorities.
Citation pour cette source
Pradeep Rajendran (2026). PriorityQueue-MEX-Matlab (https://github.com/pradeepr-roboticist/PriorityQueue-MEX-Matlab), GitHub. Extrait(e) le .
Catégories
En savoir plus sur Lighting, Transparency, and Shading dans Help Center et MATLAB Answers
Informations générales
- Version 1.0.0 (23,1 ko)
-
Afficher la licence sur GitHub
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
Les versions qui utilisent la branche GitHub par défaut ne peuvent pas être téléchargées
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.0 |
