Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithm-visualizer/algorithms
/ functions
Functions
120 in github.com/algorithm-visualizer/algorithms
⨍
Functions
120
◇
Types & classes
9
↓ 6 callers
Method
find
(element)
Uncategorized/Maze Generation/code.js:377
↓ 5 callers
Function
stringify
Uncategorized/K-Means Clustering/code.js:31
↓ 4 callers
Function
update
(i, j, value)
Dynamic Programming/Maximum Sum Path/code.js:26
↓ 3 callers
Function
filledArray
(length, value)
Brute Force/PageRank/code.js:5
↓ 3 callers
Function
testProbablyPrime
* Determine if N is prime using Miller-Rabin probabilistic algorithm * @param {Number} n The number * @param {Number} k An integer that determine
Uncategorized/Miller-Rabin's Primality Test/code.js:49
↓ 3 callers
Function
trace
(v)
Brute Force/Bridge Finding/efficient.js:55
↓ 2 callers
Function
allowImprove
()
Uncategorized/K-Means Clustering/code.js:91
↓ 2 callers
Function
cipher
(str, rotation, direction, cipherTracer)
Uncategorized/Caesar Cipher/code.js:45
↓ 2 callers
Function
cluster
(data, centers)
Uncategorized/K-Means Clustering/code.js:43
↓ 2 callers
Function
col
(a, i)
Uncategorized/K-Means Clustering/code.js:34
↓ 2 callers
Function
digit
(i, exp)
Divide and Conquer/Radix Sort/leastSignificantDigit.js:31
↓ 2 callers
Function
filledArray
(length, value)
Brute Force/Bridge Finding/efficient.js:114
↓ 2 callers
Function
flip
(start)
Brute Force/Pancake Sort/code.js:21
↓ 2 callers
Function
heapify
(array, size, root)
Brute Force/Heapsort/code.js:53
↓ 2 callers
Function
init
(rank)
Greedy/Stable Matching/code.js:33
↓ 2 callers
Function
mean
Uncategorized/K-Means Clustering/code.js:35
↓ 2 callers
Method
setUnion
(_a, _b)
Uncategorized/Maze Generation/code.js:384
↓ 2 callers
Function
shuffle
(array)
Uncategorized/Maze Generation/code.js:411
↓ 1 callers
Function
BELLMAN_FORD
(src, dest)
Dynamic Programming/Bellman-Ford's Shortest Path/code.js:15
↓ 1 callers
Function
BFS
()
Brute Force/Breadth-First Search/shortestPath.js:15
↓ 1 callers
Function
BFS
(s)
Brute Force/Breadth-First Search/tree.js:29
↓ 1 callers
Function
BFSCheckBipartiteness
(s)
Brute Force/Bipartiteness Test/code.js:23
↓ 1 callers
Function
BinarySearch
(array, element)
Branch and Bound/Binary Search/iterative.js:16
↓ 1 callers
Function
BinarySearch
(array, element, minIndex, maxIndex)
Branch and Bound/Binary Search/recursive.js:16
↓ 1 callers
Function
BubbleSort
Brute Force/Bubble Sort/main.cpp:22
↓ 1 callers
Function
CellularAutomata
(fillShape, emptyShape)
Simple Recursive/Cellular Automata/code.js:41
↓ 1 callers
Function
DFS
(node, parent, weight)
Brute Force/Depth-First Search/shortestPath.js:15
↓ 1 callers
Function
DFS
(node, parent, weight)
Brute Force/Depth-First Search/weightedGraph.js:17
↓ 1 callers
Function
DFS
(node, parent)
Brute Force/Depth-First Search/tree.js:29
↓ 1 callers
Function
DFSExplore
(graph, source)
Brute Force/Bridge Finding/naive.js:23
↓ 1 callers
Function
DFSExplore
(graph, source)
Brute Force/Depth-First Search/graph.js:16
↓ 1 callers
Function
DLSCount
(limit, node, parent)
Branch and Bound/Depth-Limited Search/code.js:31
↓ 1 callers
Function
Dijkstra
(start, end)
Greedy/Dijkstra's Shortest Path/code.js:21
↓ 1 callers
Function
FloodFill
(i, j, oldColor, newColor)
Brute Force/Flood Fill/code.js:24
↓ 1 callers
Function
FloydWarshall
()
Dynamic Programming/Floyd-Warshall's Shortest Path/code.js:15
↓ 1 callers
Function
FreivaldsAlgorithm
()
Uncategorized/Freivalds' Matrix-Multiplication Verification/code.js:23
↓ 1 callers
Function
KMP
(string, pattern)
Dynamic Programming/Knuth-Morris-Pratt's String Search/code.js:59
↓ 1 callers
Function
SCCVertex
(u, disc, low, st, stackMember, carry)
Brute Force/Tarjan's Strongly Connected Components/code.js:42
↓ 1 callers
Method
addElements
(numberOfElements)
Uncategorized/Maze Generation/code.js:370
↓ 1 callers
Function
areCentersEqual
(c1, c2)
Uncategorized/K-Means Clustering/code.js:41
↓ 1 callers
Function
arraySum
(array)
Brute Force/PageRank/code.js:37
↓ 1 callers
Function
arrayify
Uncategorized/K-Means Clustering/code.js:30
↓ 1 callers
Function
bst
(item, node, parent)
Branch and Bound/Binary Search Tree/search.js:44
↓ 1 callers
Function
bstInsert
(root, element, parent)
Branch and Bound/Binary Search Tree/insertion.js:19
↓ 1 callers
Function
buildMaze
()
Uncategorized/Maze Generation/code.js:66
↓ 1 callers
Function
chooseRandomCenters
(data, k)
Uncategorized/K-Means Clustering/code.js:28
↓ 1 callers
Function
cleanUpEndLocation
(end)
Uncategorized/Maze Generation/code.js:282
↓ 1 callers
Function
cleanUpGrid
(width, height)
Uncategorized/Maze Generation/code.js:297
↓ 1 callers
Function
cleanUpStartLocation
(start)
Uncategorized/Maze Generation/code.js:267
↓ 1 callers
Method
compareSize
(a, b)
Uncategorized/Maze Generation/code.js:400
↓ 1 callers
Function
copy
(mergeFrom, mergeTo, start, end)
Divide and Conquer/Merge Sort/bottomUp.js:111
↓ 1 callers
Function
createZarr
(concat)
Dynamic Programming/Z String Search/code.js:28
↓ 1 callers
Function
cryptAlpha
(alpha)
Uncategorized/Affine Cipher/code.js:31
↓ 1 callers
Function
decrypt
(str, rotation)
Uncategorized/Caesar Cipher/code.js:94
↓ 1 callers
Function
decrypt
(cypherText)
Uncategorized/Affine Cipher/code.js:68
↓ 1 callers
Function
decryptAlpha
(alpha)
Uncategorized/Affine Cipher/code.js:82
↓ 1 callers
Function
distance
([x1, y1], [x2, y2])
Uncategorized/K-Means Clustering/code.js:32
↓ 1 callers
Function
encrypt
(str, rotation)
Uncategorized/Caesar Cipher/code.js:87
↓ 1 callers
Function
encrypt
(plainText)
Uncategorized/Affine Cipher/code.js:28
↓ 1 callers
Function
extractUnstable
(Q)
Greedy/Stable Matching/code.js:45
↓ 1 callers
Function
fact
(num)
Simple Recursive/Nth Factorial/code.js:17
↓ 1 callers
Function
findBridges
(graph)
Brute Force/Bridge Finding/naive.js:50
↓ 1 callers
Function
findMajorityElement
()
Greedy/Boyer–Moore's Majority Vote/code.js:108
↓ 1 callers
Function
findProbableElement
()
Greedy/Boyer–Moore's Majority Vote/code.js:49
↓ 1 callers
Function
findUnsortedSubarray
(nums)
Uncategorized/Shortest Unsorted Continuous Subarray/code.js:14
↓ 1 callers
Function
getNextChar
(currChar, direction)
Uncategorized/Caesar Cipher/code.js:34
↓ 1 callers
Function
getPosDown
(pos)
Uncategorized/Caesar Cipher/code.js:30
↓ 1 callers
Function
getPosUp
(pos)
Uncategorized/Caesar Cipher/code.js:26
↓ 1 callers
Function
get_next
(pattern)
Dynamic Programming/Knuth-Morris-Pratt's String Search/code.js:16
↓ 1 callers
Method
ham
(int k)
Backtracking/Hamiltonean Cycles/Code.java:17
↓ 1 callers
Function
heapSort
(array, size)
Brute Force/Heapsort/code.js:20
↓ 1 callers
Function
inOrder
(root, parent)
Brute Force/Binary Tree Traversal/inOrder.js:46
↓ 1 callers
Function
integerPartition
(n)
Dynamic Programming/Integer Partition/code.js:31
↓ 1 callers
Function
isMajorityElement
(element)
Greedy/Boyer–Moore's Majority Vote/code.js:16
↓ 1 callers
Function
knightTour
(x, y, moveNum)
Backtracking/Knight's Tour Problem/code.js:41
↓ 1 callers
Function
kruskal
()
Greedy/Kruskal's Minimum Spanning Tree/code.js:21
↓ 1 callers
Function
lcaBT
(parent, root, a, b)
Brute Force/Lowest Common Ancestor/code.js:42
↓ 1 callers
Function
listHasCycle
(head)
Simple Recursive/Cycle Detection/code.js:50
↓ 1 callers
Function
max
(a, b)
Dynamic Programming/Longest Palindromic Subsequence/code.js:30
↓ 1 callers
Function
merge
(mergeFrom, start, middle, end, mergeTo)
Divide and Conquer/Merge Sort/bottomUp.js:50
↓ 1 callers
Function
mergeSort
(start, end)
Divide and Conquer/Merge Sort/topDown.js:20
↓ 1 callers
Function
mergeSort
(start, end)
Divide and Conquer/Merge Sort/bottomUp.js:22
↓ 1 callers
Function
nQ
(currentQueen, currentCol)
Backtracking/N-Queens Problem/code.js:43
↓ 1 callers
Method
nextVal
(int k)
Backtracking/Hamiltonean Cycles/Code.java:39
↓ 1 callers
Function
partition
(A, n, p)
Dynamic Programming/Integer Partition/code.js:21
↓ 1 callers
Function
partition
(D, low, high)
Divide and Conquer/Quicksort/code.js:20
↓ 1 callers
Function
postOrder
(root, parent)
Brute Force/Binary Tree Traversal/postOrder.js:46
↓ 1 callers
Function
pow
(base, expo)
Divide and Conquer/Radix Sort/leastSignificantDigit.js:23
↓ 1 callers
Function
power
(x, y, p)
Uncategorized/Miller-Rabin's Primality Test/code.js:29
↓ 1 callers
Function
preOrder
(root, parent)
Brute Force/Binary Tree Traversal/preOrder.js:46
↓ 1 callers
Function
prim
()
Greedy/Prim's Minimum Spanning Tree/code.js:22
↓ 1 callers
Method
quickSort
(Integer[] arr, int left, int right)
Divide and Conquer/Quicksort/Code.java:26
↓ 1 callers
Function
quicksort
(D)
Divide and Conquer/Quicksort/code.js:76
↓ 1 callers
Function
reCalculateCenters
Uncategorized/K-Means Clustering/code.js:40
↓ 1 callers
Function
recenterAndCluster
(originalClusters)
Uncategorized/K-Means Clustering/code.js:84
↓ 1 callers
Function
selectSuffix
(word, i)
Simple Recursive/Suffix Array/code.js:32
↓ 1 callers
Function
showOutgoingEdges
(i)
Brute Force/PageRank/code.js:45
↓ 1 callers
Function
shuffle
Uncategorized/K-Means Clustering/code.js:14
↓ 1 callers
Method
solve
()
Backtracking/Sum of subsets/Code.java:17
↓ 1 callers
Function
sum
(x, y)
Uncategorized/K-Means Clustering/code.js:27
next →
1–100 of 120, ranked by callers