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