-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working solution with tests. Assumes all the tile sorts can be loaded into memory. If not, we need to bring back two heaps <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Introduce heap sort for tile sorting in Deepscatter with `TileSorter` and `MinHeap`, and add tests for sorting functionality. > > - **Behavior**: > - Introduces `TileSorter` class in `selection.ts` for heap-based sorting of tiles. > - Adds `iterator()` method in `SortedDataSelection` to iterate over sorted data using `TileSorter`. > - Implements `MinHeap` class in `utilityFunctions.ts` for managing heap operations. > - **Tests**: > - Adds tests in `dataset.spec.js` for sorting and iterated sorting of selections using the new heap sort mechanism. > - Tests cover both normal and reverse iteration over sorted data. > - **Misc**: > - Minor import adjustments in `selection.ts` and `deepscatter.ts`. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=nomic-ai%2Fdeepscatter&utm_source=github&utm_medium=referral)<sup> for f1ceb61. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
5 changed files
with
510 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,5 +25,5 @@ export type { | |
OpChannel, | ||
TileProxy, | ||
DeeptableCreateParams, | ||
Transformation, | ||
Transformation | ||
} from './types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.