Releases: iamwill123/collection-of-algos
Sombrero Galaxy
List of current available algorithms
generateRandomNumbers,
nativeSort,
bubbleSort,
selectionSort,
insertionSort,
mergeSort,
quickSort,
heapSort,
countSort,
nCk,
fibonacci,
factorial,
towerOfHanoi,
generateAllBinaryStringsOfLenN,
mergeTwoSortedArrIntoOne,
-
generateRandomNumbers: This function is used to generate a sequence of random numbers. The sequence can be uniformly distributed or follow some other statistical distribution, depending on the specific requirements of the task.
-
nativeSort: This is a built-in function in many programming languages that sorts a list or array. The specific algorithm used can vary but often includes efficient algorithms such as Quicksort, Mergesort, or Heapsort.
-
bubbleSort: Bubble Sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted.
-
selectionSort: Selection Sort is a simple sorting algorithm that sorts an array by repeatedly finding the minimum element from the unsorted part and putting it at the beginning. The algorithm maintains two subarrays in a given array.
-
insertionSort: Insertion sort is a simple sorting algorithm that works similarly to the way you sort playing cards in your hands. The array is virtually split into a sorted and an unsorted region. Values from the unsorted region are picked and placed at the correct position in the sorted region.
-
mergeSort: Merge Sort is a Divide and Conquer algorithm. It divides the input array into two halves, calls itself for the two halves, and then merges the two sorted halves.
-
quickSort: QuickSort is a Divide and Conquer algorithm. It picks an element as a pivot and partitions the given array around the picked pivot. There are many different versions of quickSort that pick pivot in different ways.
-
heapSort: HeapSort is a comparison-based sorting technique based on Binary Heap data structure. It is similar to selection sort where we first find the maximum element and place the maximum element at the end.
-
countSort: Counting sort is a sorting technique based on keys between a specific range. It works by counting the number of objects having distinct key values. Then doing some arithmetic to calculate the position of each object in the output sequence.
-
nCk (Combinations): This algorithm calculates the number of combinations of n items taken k at a time. It often uses the factorial function in its calculation.
-
fibonacci: This algorithm generates the Fibonacci sequence, where each number is the sum of the two preceding ones, usually starting with 0 and 1.
-
factorial: The factorial algorithm multiplies a given number by every number less than it down to 1. It's typically denoted as
n!
. -
towerOfHanoi: The Tower of Hanoi is a mathematical game or puzzle. The algorithm for solving the Tower of Hanoi puzzle with any number of disks takes advantage of recursion.
-
generateAllBinaryStringsOfLenN: This algorithm generates all binary strings of length n. This is a common task in combinatorics and computer science.
-
mergeTwoSortedArrIntoOne: This function merges two already sorted arrays/lists into a single sorted array/list. This operation is the heart of the merge sort algorithm.
What's Changed
- Bump @parcel/packager-ts from 2.9.0 to 2.9.1 by @dependabot in #43
- Bump @parcel/transformer-webmanifest from 2.9.0 to 2.9.1 by @dependabot in #42
- Bump @parcel/packager-raw-url from 2.9.0 to 2.9.1 by @dependabot in #39
- Bump parcel from 2.9.0 to 2.9.1 by @dependabot in #41
- Bump @parcel/transformer-typescript-types from 2.9.0 to 2.9.1 by @dependabot in #40
- A start to recursive algos by @iamwill123 in #44
- Add toh algo by @iamwill123 in #46
- Bump @types/jest from 29.5.1 to 29.5.2 by @dependabot in #45
- Bump typescript from 5.0.4 to 5.1.3 by @dependabot in #47
- Bump parcel from 2.9.1 to 2.9.2 by @dependabot in #52
- Bump @parcel/packager-ts from 2.9.1 to 2.9.2 by @dependabot in #51
- Bump @parcel/transformer-webmanifest from 2.9.1 to 2.9.2 by @dependabot in #50
- Bump @parcel/packager-raw-url from 2.9.1 to 2.9.2 by @dependabot in #49
- Bump @parcel/transformer-typescript-types from 2.9.1 to 2.9.2 by @dependabot in #48
- Generate All Binary Strings Of Length N by @iamwill123 in #57
- Bump @types/node from 20.2.5 to 20.3.1 by @dependabot in #56
- Bump @types/node from 20.3.1 to 20.3.2 by @dependabot in #66
- Bump @parcel/transformer-webmanifest from 2.9.2 to 2.9.3 by @dependabot in #65
- Bump @parcel/transformer-typescript-types from 2.9.2 to 2.9.3 by @dependabot in #64
- Bump parcel from 2.9.2 to 2.9.3 by @dependabot in #63
- Bump @parcel/packager-raw-url from 2.9.2 to 2.9.3 by @dependabot in #62
- Bump typescript from 5.1.3 to 5.1.6 by @dependabot in #71
- Bump lint-staged from 13.2.2 to 13.2.3 by @dependabot in #70
- Bump @parcel/packager-ts from 2.9.2 to 2.9.3 by @dependabot in #68
- Add/merge two sorts by @iamwill123 in #74
- Bump ts-jest from 29.1.0 to 29.1.1 by @dependabot in #73
- Bump @types/node from 20.3.2 to 20.3.3 by @dependabot in #72
Full Changelog: 1.0.46...1.0.57
Magellanic Clouds
Current list of available alogs:
generateRandomNumbers
nativeSort
bubbleSort
selectionSort
insertionSort
mergeSort
quickSort
heapSort
countSort
Switched back to NPM packages as the host for this library, reasons:
-
Popularity and Community Support: npm (Node Package Manager) is the default package manager for Node.js and has been around since 2010, which has led to it being the most popular package manager for JavaScript. The large community provides great support and contributes to the extensive library of packages available.
-
Extensive Package Registry: npm hosts the largest registry of JavaScript packages in the world, making it highly likely that you'll find a package you need.
-
Ease of Use: npm is generally easy to use with simple commands to install, update, and manage dependencies in your projects.
-
Semantic Versioning: npm packages follow semantic versioning rules, which help manage dependencies and ensure compatibility.
-
npm Scripts: npm allows you to run scripts, which can be defined in the
package.json
file. This can be used to automate tasks such as testing, building, and deployment. -
Integration: npm is integrated with various continuous integration tools and is supported out of the box with many popular JavaScript frameworks and libraries.
Triangulum
Current list of available alogs:
- generateRandomNumbers
- nativeSort
- bubbleSort
- selectionSort
- insertionSort
- mergeSort
- quickSort
- heapSort
- countSort
Switched from npm package hosting to GitHub package hosting, here are some several benefits:
-
Integration with GitHub: GitHub Packages is directly integrated into GitHub's platform. This means that you can use the same interface and the same set of credentials for both source control and package management, simplifying workflows and decreasing management overhead.
-
Unified Access Control: GitHub Packages uses the same access permissions and roles as the GitHub repository it is associated with, providing a seamless and unified access control experience. You can manage code and package permissions at the same time in one place.
-
Support for Multiple Package Types: Unlike npm which is JavaScript specific, GitHub Packages provides support for a variety of package management systems, including npm (JavaScript), NuGet (.NET), Maven (Java), RubyGems (Ruby), Docker images, and more.
-
Versioning with Git Tags: GitHub Packages links package versions to Git tags, enabling a clear connection between the source code and the packaged software.
-
Pull Request & Issue Integration: With GitHub Packages, it's easier to link between the package version and the corresponding pull request or issue on GitHub.
-
Actions Integration: GitHub Packages integrates seamlessly with GitHub Actions, GitHub's CI/CD solution. For example, you can automate the process of publishing new package versions whenever you push a tag to your repository.
-
Private and Public Packages: GitHub Packages allows you to host both private packages (for a fee, or free for public repositories). It's simple to keep internal packages private while publishing open-source software to the world.
Andromeda
The current library release has these algos available:
nativeSort,
bubbleSort,
selectionSort,
insertionSort,
mergeSort,
quickSort,
The current documentation has these visualizations available
bubbleSort,
selectionSort,
insertionSort,