We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15ca8af commit 864c16cCopy full SHA for 864c16c
Hashed Heap/HashedHeap.swift
@@ -3,8 +3,8 @@
3
/// Heap with an index hash map (dictionary) to speed up lookups by value.
4
///
5
/// A heap keeps elements ordered in a binary tree without the use of pointers. A hashed heap does that as well as
6
-/// having amortized constant lookups by value. This is used in the A* and other heuristic search alogirhtms to achieve
7
-/// optimal perfomrance.
+/// having amortized constant lookups by value. This is used in the A* and other heuristic search algorithms to achieve
+/// optimal performance.
8
public struct HashedHeap<T: Hashable> {
9
/// The array that stores the heap's nodes.
10
private(set) var elements = [T]()
0 commit comments