|
114 | 114 | //! test_priority_queue(DaryHeapWithMap::<usize, f64, D>::default()); |
115 | 115 | //! test_priority_queue(DaryHeapOfIndices::<usize, f64, D>::with_index_bound(100)); |
116 | 116 | //! |
117 | | -//! // type aliases for common heaps: Binary or Quarternary |
| 117 | +//! // type aliases for common heaps: Binary or Quaternary |
118 | 118 | //! test_priority_queue(BinaryHeap::default()); |
119 | | -//! test_priority_queue(QuarternaryHeapWithMap::default()); |
| 119 | +//! test_priority_queue(QuaternaryHeapWithMap::default()); |
120 | 120 | //! test_priority_queue(BinaryHeapOfIndices::with_index_bound(100)); |
121 | 121 | //! ``` |
122 | 122 | //! |
|
163 | 163 | //! test_priority_queue_deckey(DaryHeapOfIndices::<usize, f64, D>::with_index_bound(100)); |
164 | 164 | //! test_priority_queue_deckey(DaryHeapWithMap::<usize, f64, D>::default()); |
165 | 165 | //! |
166 | | -//! // type aliases for common heaps: Binary or Quarternary |
| 166 | +//! // type aliases for common heaps: Binary or Quaternary |
167 | 167 | //! test_priority_queue_deckey(BinaryHeapOfIndices::with_index_bound(100)); |
168 | | -//! test_priority_queue_deckey(QuarternaryHeapWithMap::default()); |
| 168 | +//! test_priority_queue_deckey(QuaternaryHeapWithMap::default()); |
169 | 169 | //! ``` |
170 | 170 | //! |
171 | 171 | //! ### C.2. Usage in Dijkstra's Shortest Path |
|
280 | 280 | //! assert_eq!(Some(5), dijkstras_with_basic_pq(&graph, &mut pq, 0, 3)); |
281 | 281 | //! assert_eq!(None, dijkstras_with_basic_pq(&graph, &mut pq, 3, 1)); |
282 | 282 | //! |
283 | | -//! let mut pq = QuarternaryHeap::new(); |
| 283 | +//! let mut pq = QuaternaryHeap::new(); |
284 | 284 | //! assert_eq!(Some(5), dijkstras_with_basic_pq(&graph, &mut pq, 0, 3)); |
285 | 285 | //! assert_eq!(None, dijkstras_with_basic_pq(&graph, &mut pq, 3, 1)); |
286 | 286 | //! |
@@ -335,9 +335,9 @@ mod priority_queue; |
335 | 335 | mod priority_queue_deckey; |
336 | 336 |
|
337 | 337 | pub use crate::priority_queue::PriorityQueue; |
338 | | -pub use dary::daryheap::{BinaryHeap, DaryHeap, QuarternaryHeap}; |
339 | | -pub use dary::daryheap_index::{BinaryHeapOfIndices, DaryHeapOfIndices, QuarternaryHeapOfIndices}; |
340 | | -pub use dary::daryheap_map::{BinaryHeapWithMap, DaryHeapWithMap, QuarternaryHeapWithMap}; |
| 338 | +pub use dary::daryheap::{BinaryHeap, DaryHeap, QuaternaryHeap}; |
| 339 | +pub use dary::daryheap_index::{BinaryHeapOfIndices, DaryHeapOfIndices, QuaternaryHeapOfIndices}; |
| 340 | +pub use dary::daryheap_map::{BinaryHeapWithMap, DaryHeapWithMap, QuaternaryHeapWithMap}; |
341 | 341 | pub use has_index::HasIndex; |
342 | 342 | pub use node_key_ref::NodeKeyRef; |
343 | 343 | pub use priority_queue_deckey::{ |
|
0 commit comments