Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VAR-solutions/Algorithms
/ functions
Functions
3,327 in github.com/VAR-solutions/Algorithms
⨍
Functions
3,327
◇
Types & classes
712
↓ 2 callers
Function
updateBIT
Updates a node in Binary Index Tree (BITree) at given index in BITree. The given value 'val' is added to BITree[i] and all of its ancestors in tree.
data structures/Fenwick_Tree.cpp:35
↓ 2 callers
Method
usage
Searching/binary search/c/test/catch.hpp:4993
↓ 2 callers
Method
useColour
Searching/binary search/c/test/catch.hpp:4080
↓ 2 callers
Method
writeMatrix
(int[][] solution)
Backtracking/Sudoku solution/Java/Sudoku.java:62
↓ 1 callers
Method
Append
(value int)
heaps/BinomialHeap/Go/binomial_heap.go:121
↓ 1 callers
Function
ArePair
Other Algorithms/balanced parentheses/cpp/balanced_parentheses.cpp:4
↓ 1 callers
Function
AreParenthesesBalanced
Other Algorithms/balanced parentheses/cpp/balanced_parentheses.cpp:11
↓ 1 callers
Method
BFS
(self,s, t, parent)
Graphs/ford-fulkerson/python/max_flow.py:16
↓ 1 callers
Method
BFS
Graphs/bfs/cpp/bfs.cpp:36
↓ 1 callers
Function
BSTToMinHeap
function to convert the given BST to MIN HEAP performs preorder traversal of the tree
Tree/Binary Search Tree/Bst to min heap.cpp:50
↓ 1 callers
Function
BinarySearch
Searching/binary search/cpp/binarySearch.cpp:3
↓ 1 callers
Function
BubbleSort
data structures/kth largest element/Biggest_Num_Bubble.cpp:6
↓ 1 callers
Function
Buildtree
Tree/Traverals/CPP/vertical order traversal.cpp:29
↓ 1 callers
Function
ConstructQueue
data structures/queue/c/queue.c:31
↓ 1 callers
Function
Create
data structures/linked list/c/MaxOfLinkedList.c:10
↓ 1 callers
Function
DFS
Sorting/Topological Sorting/C/topological_sorting.c:45
↓ 1 callers
Function
DFS
Graphs/dfs/c/dfs.c:33
↓ 1 callers
Method
DFS
prints all not yet visited vertices reachable from s
Graphs/bfs/cpp/iterative_bfs.cpp:29
↓ 1 callers
Method
DFS
(self,s)
Graphs/dfs/python/dfs.py:18
↓ 1 callers
Method
DFS
DFS traversal of the vertices reachable from v. It uses recursive DFSUtil()
Graphs/dfs/cpp/dfs.cpp:56
↓ 1 callers
Method
DFS
prints all not yet visited vertices reachable from s
Graphs/dfs/cpp/iterative_dfs.cpp:32
↓ 1 callers
Function
DFS_visit
Sorting/Topological Sorting/C/topological_sorting.c:24
↓ 1 callers
Method
DFSrecur
(self,s,visited)
Graphs/dfs/python/dfs.py:11
↓ 1 callers
Function
DLLDelete
data structures/linked list/c/linked list.c:119
↓ 1 callers
Method
Delete
(s string, parent *Node)
Tree/Binary Search Tree/go/src/bst.go:84
↓ 1 callers
Function
DestructQueue
data structures/queue/c/queue.c:47
↓ 1 callers
Function
Enqueue
data structures/queue/c/queue.c:56
↓ 1 callers
Function
Equals
Searching/binary search/c/test/catch.hpp:3115
↓ 1 callers
Method
Extract
()
heaps/BinomialHeap/Go/binomial_heap.go:131
↓ 1 callers
Method
Fcfs
(process r[],int n)
Other Algorithms/Process Scheduling/java/process.java:261
↓ 1 callers
Function
Fib
(n)
Dynamic Programming/fibonacci/python/fib.py:1
↓ 1 callers
Function
Fibonacci
(n)
Other Algorithms/nth_fibonacci_number.py:5
↓ 1 callers
Method
Find
find element
Tree/Binary Search Tree/go/src/bst.go:43
↓ 1 callers
Function
FindUnassignedLocation
Searches the grid to find an entry that is still unassigned. If found, the reference parameters row, col will be set the location that is unas
Backtracking/Sudoku solution/C/sudoku.c:52
↓ 1 callers
Function
FlippedCount
Bit Manipulation/FlipBits/flipbits.cpp:17
↓ 1 callers
Function
FlippedCount
(a , b)
Bit Manipulation/FlipBits/flipbits.py:12
↓ 1 callers
Method
FordFulkerson
(self, source, sink)
Graphs/ford-fulkerson/python/max_flow.py:49
↓ 1 callers
Function
GnomeSort
(slice []int)
Sorting/Gnome Sort/Go/GnomeSort.go:7
↓ 1 callers
Function
GradientDescent
(inputValue, learningRate, precision, maximumIterations, gradientFunction)
Optimization/GradientDescent.py:1
↓ 1 callers
Method
HighestVbyW
(int[] values, int[] weights)
Greedy Algorithms/Fractional Knapsack/java/Fractional_Knapsack.java:32
↓ 1 callers
Method
Insert
insert into node
Tree/Binary Search Tree/go/src/bst.go:15
↓ 1 callers
Function
InsertionSort
Function to sort the elements of each bucket
Sorting/Bucket Sort/C/bucket_sort.c:83
↓ 1 callers
Function
KMPSearch
(pat, txt)
Other Algorithms/KMP/pyhton/kmpsearch.py:2
↓ 1 callers
Function
KnapSack
Dynamic Programming/knapsack/cpp/KnapSackDP.cpp:5
↓ 1 callers
Method
KruskalMST
(self)
Graphs/Minimum Spanning Tree/python/MST_kruskal.py:48
↓ 1 callers
Method
KruskalMST
()
Graphs/kruskal/Java/KruskalAlgo.java:76
↓ 1 callers
Method
KthString
(int a[],int n,int k)
data structures/kth largest element/KthLargest.java:7
↓ 1 callers
Function
LCS
Recursive Algorithms/LCSRecursive/cpp/LCSRecursive.cpp:5
↓ 1 callers
Function
LCS
Dynamic Programming/LCSDP/Length-of-LCS-DP.cpp:9
↓ 1 callers
Function
LCS
Dynamic Programming/LCSDP/cpp/LCSDP.cpp:9
↓ 1 callers
Function
LongestCommonSubsequence
Dynamic Programming/common sub sequence/cpp/LCS.cpp:47
↓ 1 callers
Function
MatrixChainOrder
(p, n)
Dynamic Programming/Matrix Chain Multiplication/Python/MatrixChainMult.py:3
↓ 1 callers
Method
MatrixChainOrder
(int p[], int n)
Dynamic Programming/Matrix Chain Multiplication/Java/MatrixChainMult.java:2
↓ 1 callers
Function
Merge
(left,right,A)
Sorting/Merge Sort/Python/merge_sort.py:1
↓ 1 callers
Function
MergeSort
(A)
Sorting/Merge Sort/Python/merge_sort.py:26
↓ 1 callers
Function
MergeSortLinked
Sorting/Merge Sort/C++/mergeSort_linked_list.cpp:78
↓ 1 callers
Function
Min
data structures/linked list/c/MaxOfLinkedList.c:41
↓ 1 callers
Function
NewBinomialHeap
()
heaps/BinomialHeap/Go/binomial_heap.go:158
↓ 1 callers
Method
PigeonHoleSortAscending
(this IList<int> collection)
Sorting/PigeonHoleSorter/PigeonHoleSorter.cs:17
↓ 1 callers
Function
PollardRho
Mathematics/prime.cpp:21
↓ 1 callers
Function
PollardRho
Mathematics/Pollard-Rho/cpp/prime.cpp:18
↓ 1 callers
Function
PrintPath
Dynamic Programming/common sub sequence/cpp/LCS.cpp:21
↓ 1 callers
Method
PrintPermutations2
(String str, String asf)
Recursive Algorithms/PrintPemutations.java:15
↓ 1 callers
Function
PrintVerticalOrder
Tree/Traverals/CPP/vertical order traversal.cpp:78
↓ 1 callers
Method
PriorityNonpremptive
(process g[],int n)
Other Algorithms/Process Scheduling/java/process.java:486
↓ 1 callers
Method
Prioritypremptive
(process e[],int n)
Other Algorithms/Process Scheduling/java/process.java:400
↓ 1 callers
Method
Queue
(int size)
data structures/queue/java/queue.java:6
↓ 1 callers
Function
QuickSort
(slice []int)
Sorting/quickSort/Go/quick_sort.go:8
↓ 1 callers
Function
RMax
data structures/linked list/c/MaxOfLinkedList.c:53
↓ 1 callers
Method
RoundRobin
(process m[],int n)
Other Algorithms/Process Scheduling/java/process.java:180
↓ 1 callers
Function
SLLDelete
data structures/linked list/c/linked list.c:45
↓ 1 callers
Function
SPFA
Graphs/SPFA/shortest-path-faster-algorithm.cpp:32
↓ 1 callers
Function
ShellSort
A function implementing Shell sort.
Sorting/ShellSort/C++/shell_sort.cpp:6
↓ 1 callers
Function
Sieve
Mathematics/sieve of Eratosthenes/cpp/Sieve-of-Eratosthenes.cpp:6
↓ 1 callers
Method
SjfNp
(process k[],int n)
Other Algorithms/Process Scheduling/java/process.java:106
↓ 1 callers
Method
SjfP
(process o[],int n)
Other Algorithms/Process Scheduling/java/process.java:314
↓ 1 callers
Function
SlowSort
(A, i, j)
Sorting/SlowSort/python/SlowSort.py:6
↓ 1 callers
Function
Solve
Bit Manipulation/GeneratingEverySubsetWithBitmask/EverySubset.cpp:4
↓ 1 callers
Function
SolveSudoku
Takes a partially filled-in grid and attempts to assign values to all unassigned locations in such a way to meet the requirements for Sudoku sol
Backtracking/Sudoku solution/C/sudoku.c:20
↓ 1 callers
Method
Swap
To Swap two given numbers
Sorting/Bogosort/C Sharp/Bogosort.cs:7
↓ 1 callers
Method
Swap
(int A[],int p,int q)
Sorting/quickSort/Java/quick_sort.java:61
↓ 1 callers
Function
TS
Sorting/Topological Sorting/C/topological_sorting.c:61
↓ 1 callers
Function
UsedInBox
Returns a boolean which indicates whether an assigned entry within the specified 3x3 box matches the given number. */
Backtracking/Sudoku solution/C/sudoku.c:83
↓ 1 callers
Function
UsedInCol
Returns a boolean which indicates whether an assigned entry in the specified column matches the given number. */
Backtracking/Sudoku solution/C/sudoku.c:73
↓ 1 callers
Function
UsedInRow
Returns a boolean which indicates whether an assigned entry in the specified row matches the given number. */
Backtracking/Sudoku solution/C/sudoku.c:63
↓ 1 callers
Method
_dfs
(self, vertex, visited)
Recursive Algorithms/DFS/Python/dfs_graph.py:13
↓ 1 callers
Method
_heapifyDown
(index, value)
heaps/JavaScript/heap.js:40
↓ 1 callers
Method
_insert
Insertion helper for inserting a node into the forest @param cur : Node where the insertion should happen @param sibling : No
heaps/BinomialHeap/Python/binomial_heap.py:58
↓ 1 callers
Function
_quick_sort
(arr: &mut [T], low: isize, high: isize)
Sorting/quickSort/Rust/quick-sort.rs:6
↓ 1 callers
Method
abortAfter
Searching/binary search/c/test/catch.hpp:4082
↓ 1 callers
Function
activities
Greedy Algorithms/Activity Selection/C/activitysel.c:4
↓ 1 callers
Function
activity_selection
(activity_arr)
Greedy Algorithms/Activity Selection/python/activity_selection.py:16
↓ 1 callers
Function
add
Other Algorithms/Suffix Automaton/CPP/SA.cpp:21
↓ 1 callers
Function
addAtEnd
inserting a node at the end of the list
LinkedList/Reverse/Reversal_of_Single_Linked_List/C/iterative_reversal.c:20
↓ 1 callers
Method
addAtIndex
(int index,int value)
LinkedList/Java/LinkedList.java:42
↓ 1 callers
Method
addEdge
(self,vertexFrom,vertexTo)
data structures/Graph/Example/GraphExample.py:22
↓ 1 callers
Method
addInitialFilters
Searching/binary search/c/test/catch.hpp:6311
↓ 1 callers
Function
addListeners
Searching/binary search/c/test/catch.hpp:7056
↓ 1 callers
Method
addNodes
Graphs/Minimum Spanning Tree/C++/data-structures/LinkedGraph.cpp:9
↓ 1 callers
Function
addTestOrTags
Searching/binary search/c/test/catch.hpp:5158
← previous
next →
601–700 of 3,327, ranked by callers