MCPcopy Create free account

hub / github.com/VamsiSangam/theoryofprogramming / functions

Functions258 in github.com/VamsiSangam/theoryofprogramming

↓ 1 callersFunctiondijkstra
Dijkstra's Algorithm function
Graph Theory/Dijkstra's Algorithm/C/dijkstras-algorithm.c:50
↓ 1 callersMethoddijkstra
(int[][] graph, int src)
Graph Theory/Dijkstra's Algorithm/Java/DijkstraAlgorithm.java:52
↓ 1 callersFunctioneditDistance
Dynamic Programming/Edit Distance/C/edit-distance-optimised.c:27
↓ 1 callersFunctioneditDistance
Dynamic Programming/Edit Distance/C/edit-distance.c:27
↓ 1 callersMethodeditDistance
(String a, String b)
Dynamic Programming/Edit Distance/Java/EditDistance.java:29
↓ 1 callersMethodeditDistance
(String a, String b)
Dynamic Programming/Edit Distance/Java/OptimisedEditDistance.java:29
↓ 1 callersFunctionenqueue
enqueues an entry into the Priority Queue
Graph Theory/Prim's Algorithm/C/prims-algorithm.c:40
↓ 1 callersFunctionextractMax
Returns the root value and deletes it by swapping the root node and the last node and then calling heapify on root node
Tree Data Structures/Binary Heaps/C++/binary-heap-using-struct.cpp:239
↓ 1 callersFunctionextractMin
Removes and Returns the topmost element - O (log N)
Graph Theory/Dijkstra's Algorithm/C/dijkstras-algorithm-using-binary-heap.c:122
↓ 1 callersFunctionfindLastNode
Traverses the Heap top-to-bottom once and returns the location of the last node. Works on the priciple of traversing a Binary Tree by the binary repre
Tree Data Structures/Binary Heaps/C++/binary-heap-using-struct.cpp:29
↓ 1 callersFunctiongetBinaryHeap
Allocates memory for the Binary Heap thus creates the root node
Tree Data Structures/Binary Heaps/C++/binary-heap-using-struct.cpp:147
↓ 1 callersMethodgetChildren
()
Tree Data Structures/N-ary Tree/Java/NaryTreeNode.java:36
↓ 1 callersMethodgetIntersectingVertex
(int[] sourceParent, int[] goalParent)
Artificial Intelligence/Bidirectional Search/Java/BidirectionalSearch.java:103
↓ 1 callersFunctiongetMinVertex
Retuns the vertex which is not visited and has least distance
Graph Theory/Dijkstra's Algorithm/C/dijkstras-algorithm.c:35
↓ 1 callersMethodgetPath
(int[] sourceParent, int[] goalParent, int intersectingVertex)
Artificial Intelligence/Bidirectional Search/Java/BidirectionalSearch.java:115
↓ 1 callersFunctiongetSegmentTree
Allocates memory for the root and calls method to construct the Segment Tree
Tree Data Structures/Segment Trees/C/segment-tree.c:51
↓ 1 callersFunctiongetSumQuery
Recursive procedure to find out the sum of elements from arr[low] to arr[high] using the Segment Tree
Tree Data Structures/Segment Trees/C/segment-tree.c:84
↓ 1 callersMethodhasGameEnded
(int[][] game)
Artificial Intelligence/MiniMax Algorithm with Alpha-Beta Pruning/Java/MiniMaxWithAlphaBetaPruning.java:207
↓ 1 callersMethodhasGameEnded
(int[][] game)
Artificial Intelligence/MiniMax Algorithm/Java/MiniMaxAlgorithm.java:191
↓ 1 callersFunctionheapSort
Heap Sort procedure which takes and empyt list 'Sorted List' and fills it with the elements in sorted order. Keeps extracting the maximum element from
Tree Data Structures/Binary Heaps/C++/binary-heap-using-struct.cpp:282
↓ 1 callersFunctionheapify
The standard recursive Heapify procedure to convert a partial heap to a complete heap Mainly used by Extract-Max procedure
Tree Data Structures/Binary Heaps/C++/binary-heap-using-struct.cpp:179
↓ 1 callersFunctionheapify
Graph Theory/Prim's Algorithm/C/prims-algorithm.c:60
↓ 1 callersFunctioninOrderTraversal
Prints the nodes of the Binary Heap in the In-Order fashion
Tree Data Structures/Binary Heaps/C++/binary-heap-using-struct.cpp:165
↓ 1 callersFunctioninsert
Tree Data Structures/Trie Tree/C++/trie-tree-spoj-dict.cpp:28
↓ 1 callersFunctioninsertIntoHeap
Inserts a new node into the binary heap and also makes the neccessary swaps to ensure Heap Property isn't violated
Tree Data Structures/Binary Heaps/C++/binary-heap-using-struct.cpp:131
↓ 1 callersFunctioninsertUtil
The recursive procedure which goes top-to-bottom from the root to the place of insertion and inserts the new node with a value 'Value'. Uses binary tr
Tree Data Structures/Binary Heaps/C++/binary-heap-using-struct.cpp:90
↓ 1 callersFunctioninsertWord
Inserts a word 'text' into the Trie Tree 'trieTree' and marks it's occurence as 'index'.
Tree Data Structures/Trie Tree/C++/trie-tree-using-stl.cpp:31
↓ 1 callersFunctionjumpSearchUtil
Searching Algorithms/Jump Search Algorithm/C/optimised-jump-search.c:24
↓ 1 callersMethodjumpSearchUtil
(int[] arr, int val, int low, int high)
Searching Algorithms/Jump Search Algorithm/Java/OptimisedJumpSearch.java:40
↓ 1 callersFunctionlexicographPrint
Tree Data Structures/Trie Tree/C++/trie-tree-spoj-dict.cpp:66
↓ 1 callersFunctionmaxSubArray
Dynamic Programming/Kadane's Algorithm/C/kadanes-algorithm.c:14
↓ 1 callersMethodmaxSubArray
(int[] arr)
Dynamic Programming/Kadane's Algorithm/Java/KadanesAlgorithm.java:28
↓ 1 callersFunctionmerge
(left, right)
Sorting Algorithms/Merge Sort Algorithm/Python/MergeSort.py:93
↓ 1 callersMethodmerge
(int[] array, int low, int mid, int high)
Sorting Algorithms/Merge Sort Algorithm/Java/MergeSort.java:63
↓ 1 callersFunctionmergePartitions
Merges two sorted partitions into a bigger sorted array
Sorting Algorithms/Merge Sort Algorithm/C/merge-sort.c:15
↓ 1 callersFunctionmergeSort
Partitions the array into two Does nothing if array has only one element
Sorting Algorithms/Merge Sort Algorithm/C/merge-sort.c:54
↓ 1 callersMethodmergeSort
(int array[], int low, int high)
Sorting Algorithms/Merge Sort Algorithm/Java/MergeSort.java:46
↓ 1 callersFunctionmergeUsingLoops
(left, right)
Sorting Algorithms/Merge Sort Algorithm/Python/MergeSort.py:38
↓ 1 callersFunctionmergesort
(array)
Sorting Algorithms/Merge Sort Algorithm/Python/MergeSort.py:68
↓ 1 callersFunctionmin
Searching Algorithms/Jump Search Algorithm/C/optimised-jump-search.c:20
↓ 1 callersFunctionmin
Dynamic Programming/Edit Distance/C/edit-distance-optimised.c:16
↓ 1 callersFunctionmin
Dynamic Programming/Edit Distance/C/edit-distance.c:16
↓ 1 callersMethodminDistance
(int[] dist, boolean[] sptSet)
Graph Theory/Dijkstra's Algorithm/Java/DijkstraAlgorithm.java:24
↓ 1 callersMethodminKey
(int[] key, boolean[] mstSet)
Graph Theory/Prim's Algorithm/Java/PrimsAlgorithm.java:24
↓ 1 callersMethodpartition
(int arr[], int low, int high)
Sorting Algorithms/Quick Sort Algorithm/Java/QuickSort.java:57
↓ 1 callersFunctionprim
Prim's Algorithm function
Graph Theory/Prim's Algorithm/C++/prims-algorithm-using-stl.cpp:36
↓ 1 callersFunctionprim
Prim's Algorithm function
Graph Theory/Prim's Algorithm/C/prims-algorithm.c:122
↓ 1 callersMethodprimMST
(int[][] graph)
Graph Theory/Prim's Algorithm/Java/PrimsAlgorithm.java:51
↓ 1 callersFunctionprint
A simple utility function to aid In-Order Walk
Tree Data Structures/Binary Heaps/C++/binary-heap-using-struct.cpp:158
↓ 1 callersMethodprintMST
(int parent[], int n, int[][] graph)
Graph Theory/Prim's Algorithm/Java/PrimsAlgorithm.java:41
↓ 1 callersFunctionprintNegativeCycle
Graph Theory/Bellman Ford Algorithm/C/bellman-ford.c:112
↓ 1 callersFunctionprintPath
Recursively looks at a vertex's parent to print the path
Graph Theory/Dijkstra's Algorithm/C++/dijkstras-algorithm.cpp:72
↓ 1 callersFunctionprintPath
Recursively looks at a vertex's parent to print the path
Graph Theory/Dijkstra's Algorithm/C/dijkstras-algorithm-using-binary-heap.c:187
↓ 1 callersFunctionprintPath
Recursively looks at a vertex's parent to print the path
Graph Theory/Dijkstra's Algorithm/C/dijkstras-algorithm.c:86
↓ 1 callersFunctionprintPathFromSourceToDestination
Graph Theory/Snakes and Ladders Game Code/C++/SnakesAndLadders.cpp:28
↓ 1 callersFunctionprintPathFromSourceToDestination
Graph Theory/Breadth First Search Algorithm/C++/breadth-first-search-using-queue.cpp:19
↓ 1 callersMethodprintSolution
(int[] dist, int n)
Graph Theory/Dijkstra's Algorithm/Java/DijkstraAlgorithm.java:41
↓ 1 callersMethodprintUtil
(NaryTreeNode node, int depth)
Tree Data Structures/N-ary Tree/Java/NaryTreeNode.java:52
↓ 1 callersMethodprintUtil
(Node node, StringBuilder str)
Tree Data Structures/Compressed Trie Tree/Java/Trie.java:91
↓ 1 callersFunctionquickSort
Sorting Algorithms/Quick Sort Algorithm/C/quick-sort.c:14
↓ 1 callersMethodquickSort
(int[] arr, int low, int high)
Sorting Algorithms/Quick Sort Algorithm/Java/QuickSort.java:44
↓ 1 callersFunctionquickSortDijkstra
Sorting Algorithms/Quick Sort Algorithm/C/quick-sort-dijkstra-3-way.c:14
↓ 1 callersMethodquickSortDijsktra
(int[] array, int low, int high)
Sorting Algorithms/Quick Sort Algorithm/Java/QuickSortDijsktra.java:44
↓ 1 callersFunctionquickSortDualPivot
Sorting Algorithms/Quick Sort Algorithm/C/quick-sort-dual-pivot.c:14
↓ 1 callersMethodquickSortDualPivot
(int[] array, int low, int high)
Sorting Algorithms/Quick Sort Algorithm/Java/QuickSortDualPivot.java:45
↓ 1 callersFunctionquickSortRandomPivot
Sorting Algorithms/Quick Sort Algorithm/C/quick-sort-random-pivot.c:15
↓ 1 callersMethodquickSortRandomPivot
(int[] array, int low, int high)
Sorting Algorithms/Quick Sort Algorithm/Java/QuickSortRandomPivot.java:44
↓ 1 callersFunctionquick_sort
(alist)
Sorting Algorithms/Quick Sort Algorithm/Python/QuickSort.py:13
↓ 1 callersMethodremoveEdge
Removes the first occurence of an edge and returns true if there was any change in the collection, else false
Graph Theory/Adjcacency List/C#/AdjacencyList.cs:84
↓ 1 callersFunctionremoveWord
Searches the word first, if not found, does nothing if found, deletes the nodes corresponding to the word
Tree Data Structures/Trie Tree/C++/trie-tree-using-stl.cpp:79
↓ 1 callersMethodresetChildren
()
Tree Data Structures/Trie Tree/Java/Trie.java:178
↓ 1 callersFunctionsearchWord
Tree Data Structures/Trie Tree/C++/trie-tree-spoj-dict.cpp:44
↓ 1 callersFunctionsearchWord
Searches for the occurence of a word in 'trieTree', if not found, returns NULL, if found, returns poniter pointing to the last node of the word in the
Tree Data Structures/Trie Tree/C++/trie-tree-using-stl.cpp:56
↓ 1 callersMethodsetLeaf
(boolean leaf)
Tree Data Structures/Trie Tree/Java/Trie.java:186
↓ 1 callersMethodsolveMazeUsingBacktracking
(int[][] maze, int i, int j)
Backtracking/Maze Solver/Java/MazeSolver.java:72
↓ 1 callersFunctionupdateQuery
Updates an element in the Segment Tree and makes the neccessary adjustments
Tree Data Structures/Segment Trees/C/segment-tree.c:123
MethodAdjacencyList
Constructor - creates an empty Adjacency List
Graph Theory/Adjcacency List/C#/AdjacencyList.cs:22
MethodDijkstraAlgorithm
(int vertices)
Graph Theory/Dijkstra's Algorithm/Java/DijkstraAlgorithm.java:18
MethodGraph
(int v)
Graph Theory/Breadth First Search Algorithm/Java/Graph.java:24
MethodGraph
(int v)
Graph Theory/Depth First Search Algorithm/Java/Graph.java:24
MethodMain
()
Graph Theory/Adjcacency List/C#/AdjacencyList.cs:94
MethodMove
(int i, int j)
Artificial Intelligence/MiniMax Algorithm/Java/MiniMaxAlgorithm.java:236
MethodNaryTreeNode
(String LABEL, int n)
Tree Data Structures/N-ary Tree/Java/NaryTreeNode.java:18
MethodNode
(boolean isEnd)
Tree Data Structures/Compressed Trie Tree/Java/Trie.java:174
MethodNode
(int vertex, int weight)
Graph Theory/Adjcacency List/Java/AdjacencyList.java:23
MethodPair
(int left, int right)
Searching Algorithms/Jump Search Algorithm/Java/OptimisedJumpSearch.java:63
MethodPrimsAlgorithm
(int vertices)
Graph Theory/Prim's Algorithm/Java/PrimsAlgorithm.java:18
MethodResult
(int score, Move move)
Artificial Intelligence/MiniMax Algorithm/Java/MiniMaxAlgorithm.java:226
MethodTrie
()
Tree Data Structures/Trie Tree/Java/Trie.java:19
MethodTrie
()
Tree Data Structures/Compressed Trie Tree/Java/Trie.java:16
MethodTrieNode
()
Tree Data Structures/Trie Tree/Java/Trie.java:151
MethodaddEdgeAtBegin
Adds a new Edge to the linked list from the front
Graph Theory/Adjcacency List/C#/AdjacencyList.cs:39
MethodgetNumberOfVertices
Returns number of vertices Does not change for an object
Graph Theory/Adjcacency List/C#/AdjacencyList.cs:46
Functionmain
Searching Algorithms/Jump Search Algorithm/C++/JumpSearch.cpp:48
Functionmain
Searching Algorithms/Jump Search Algorithm/C/jump-search.c:51
Functionmain
Searching Algorithms/Jump Search Algorithm/C/optimised-jump-search.c:65
Functionmain
Searching Algorithms/Binary Search Algorithm/C++/binary-search.cpp:42
Functionmain
Searching Algorithms/Binary Search Algorithm/C/binary-search.c:34
Functionmain
Sorting Algorithms/Quick Sort Algorithm/C/quick-sort.c:62
Functionmain
Sorting Algorithms/Quick Sort Algorithm/C/quick-sort-dijkstra-3-way.c:49
← previousnext →101–200 of 258, ranked by callers