-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a min-max heap implementation that can be used to back a priority queue #61
Commits on Aug 6, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 91b7e50 - Browse repository at this point
Copy the full SHA 91b7e50View commit details -
Configuration menu - View commit details
-
Copy full SHA for f81c588 - Browse repository at this point
Copy the full SHA f81c588View commit details -
Configuration menu - View commit details
-
Copy full SHA for c42096c - Browse repository at this point
Copy the full SHA c42096cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 107a9b4 - Browse repository at this point
Copy the full SHA 107a9b4View commit details -
storage.swapAt exhibits excessive allocations
Configuration menu - View commit details
-
Copy full SHA for db87e18 - Browse repository at this point
Copy the full SHA db87e18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 101bc2c - Browse repository at this point
Copy the full SHA 101bc2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1171c0a - Browse repository at this point
Copy the full SHA 1171c0aView commit details -
Use magic values 1, 2 to refer to the items in the first max level
Co-authored-by: Tim Vermeulen <tvermeulen@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 11ba582 - Browse repository at this point
Copy the full SHA 11ba582View commit details -
Specify logarithmic complexities as "O(log
count
) / 2" instead of "……O(log n)" Co-authored-by: Tim Vermeulen <tvermeulen@apple.com>
Configuration menu - View commit details
-
Copy full SHA for a9efa56 - Browse repository at this point
Copy the full SHA a9efa56View commit details -
Configuration menu - View commit details
-
Copy full SHA for 919c019 - Browse repository at this point
Copy the full SHA 919c019View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cca169 - Browse repository at this point
Copy the full SHA 5cca169View commit details -
Move the bounds checking into the various index computation methods
They will all now return `nil` for invalid indices.
Configuration menu - View commit details
-
Copy full SHA for 5b80eeb - Browse repository at this point
Copy the full SHA 5b80eebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fe1481 - Browse repository at this point
Copy the full SHA 9fe1481View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ceb496 - Browse repository at this point
Copy the full SHA 1ceb496View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f319ab - Browse repository at this point
Copy the full SHA 9f319abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9182557 - Browse repository at this point
Copy the full SHA 9182557View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e92d77 - Browse repository at this point
Copy the full SHA 8e92d77View commit details -
Split _indexOfChildOrGrandchild(of:sortedUsing:) into two separate fu…
…nctions There is a large performance cost with passing a predicate function.
Configuration menu - View commit details
-
Copy full SHA for 18de4fc - Browse repository at this point
Copy the full SHA 18de4fcView commit details -
Defer comparing children when determining largest/smallest descendant
If the given index has 4 grandchildren, we can skip comparing the children.
Configuration menu - View commit details
-
Copy full SHA for 25b88e6 - Browse repository at this point
Copy the full SHA 25b88e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b46a53 - Browse repository at this point
Copy the full SHA 0b46a53View commit details -
Configuration menu - View commit details
-
Copy full SHA for daa4f94 - Browse repository at this point
Copy the full SHA daa4f94View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee35cc1 - Browse repository at this point
Copy the full SHA ee35cc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c095031 - Browse repository at this point
Copy the full SHA c095031View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6452adf - Browse repository at this point
Copy the full SHA 6452adfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f6471f - Browse repository at this point
Copy the full SHA 4f6471fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 309fa96 - Browse repository at this point
Copy the full SHA 309fa96View commit details -
This should already be handled by the init from Sequence
Configuration menu - View commit details
-
Copy full SHA for edc6bcd - Browse repository at this point
Copy the full SHA edc6bcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43d13ea - Browse repository at this point
Copy the full SHA 43d13eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for feb9b7c - Browse repository at this point
Copy the full SHA feb9b7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21efcf9 - Browse repository at this point
Copy the full SHA 21efcf9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8501bc - Browse repository at this point
Copy the full SHA e8501bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cb5842 - Browse repository at this point
Copy the full SHA 6cb5842View commit details -
Iterative instead of recursive implementation, @inline(__always) a co…
…uple more critical functions.
Configuration menu - View commit details
-
Copy full SHA for 07f0649 - Browse repository at this point
Copy the full SHA 07f0649View commit details -
Configuration menu - View commit details
-
Copy full SHA for fdcd604 - Browse repository at this point
Copy the full SHA fdcd604View commit details -
Configuration menu - View commit details
-
Copy full SHA for 593eadb - Browse repository at this point
Copy the full SHA 593eadbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 021704b - Browse repository at this point
Copy the full SHA 021704bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 88faaee - Browse repository at this point
Copy the full SHA 88faaeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2557ef1 - Browse repository at this point
Copy the full SHA 2557ef1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4f9ba0 - Browse repository at this point
Copy the full SHA a4f9ba0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69583d8 - Browse repository at this point
Copy the full SHA 69583d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8507fa - Browse repository at this point
Copy the full SHA b8507faView commit details -
Rename PriorityQueue -> MinMaxHeap
We'll be reintroducing the PriorityQueue type as a wrapper.
Configuration menu - View commit details
-
Copy full SHA for cb78920 - Browse repository at this point
Copy the full SHA cb78920View commit details -
Mark insert(contentsOf:) as inlinable
This results in ~10x speedup in my initial tests.
Configuration menu - View commit details
-
Copy full SHA for f3349e5 - Browse repository at this point
Copy the full SHA f3349e5View commit details -
Rename argument label "startingAt" -> "elementAt"
These functions used to be recursive, so "startingAt" made sense. Now that they're iterative, we should fix the label.
Configuration menu - View commit details
-
Copy full SHA for 2bc784a - Browse repository at this point
Copy the full SHA 2bc784aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ceae6ea - Browse repository at this point
Copy the full SHA ceae6eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 272bb02 - Browse repository at this point
Copy the full SHA 272bb02View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1c529e - Browse repository at this point
Copy the full SHA d1c529eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d7bf55d - Browse repository at this point
Copy the full SHA d7bf55dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60b6ab2 - Browse repository at this point
Copy the full SHA 60b6ab2View commit details -
Fix reference to queue in documentation
Co-authored-by: Dante Broggi <34220985+Dante-Broggi@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c37395c - Browse repository at this point
Copy the full SHA c37395cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 23dbd4f - Browse repository at this point
Copy the full SHA 23dbd4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b633fd - Browse repository at this point
Copy the full SHA 7b633fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7a0f7f - Browse repository at this point
Copy the full SHA b7a0f7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55538df - Browse repository at this point
Copy the full SHA 55538dfView commit details -
Apply suggestions from code review
Co-authored-by: Karoy Lorentey <klorentey@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 55b5500 - Browse repository at this point
Copy the full SHA 55b5500View commit details -
Configuration menu - View commit details
-
Copy full SHA for 563c75e - Browse repository at this point
Copy the full SHA 563c75eView commit details -
Split Heap.Iterator into two separate views
Adapted from Daryle Walker's (github.com/CTMacUser) suggestions
Configuration menu - View commit details
-
Copy full SHA for 42fbc80 - Browse repository at this point
Copy the full SHA 42fbc80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32358a9 - Browse repository at this point
Copy the full SHA 32358a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d1044e - Browse repository at this point
Copy the full SHA 7d1044eView commit details -
Fix Sources/PriorityQueueModule/CMakeLists.txt
Heap+Iterator.swift was renamed to Heap+OrderedViews.swift Co-authored-by: Karoy Lorentey <klorentey@apple.com>
Configuration menu - View commit details
-
Copy full SHA for bd1f007 - Browse repository at this point
Copy the full SHA bd1f007View commit details
Commits on Aug 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c6a7954 - Browse repository at this point
Copy the full SHA c6a7954View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bc94ac - Browse repository at this point
Copy the full SHA 4bc94acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 083102e - Browse repository at this point
Copy the full SHA 083102eView commit details