MCPcopy Create free account

hub / github.com/VamsiSangam/theoryofprogramming / functions

Functions258 in github.com/VamsiSangam/theoryofprogramming

↓ 58 callersMethodgetChild
(int index)
Tree Data Structures/N-ary Tree/Java/NaryTreeNode.java:40
↓ 34 callersMethodaddChild
(NaryTreeNode node)
Tree Data Structures/N-ary Tree/Java/NaryTreeNode.java:24
↓ 25 callersMethodprint
()
Tree Data Structures/Compressed Trie Tree/Java/Trie.java:87
↓ 13 callersFunctionprint
A utility function used for Inorder Walk
Tree Data Structures/Segment Trees/C/segment-tree.c:65
↓ 12 callersMethodaddEdge
(int v, int w)
Graph Theory/Depth First Search Algorithm/Java/Graph.java:34
↓ 11 callersMethodaddEdge
(int v, int w)
Graph Theory/Breadth First Search Algorithm/Java/Graph.java:34
↓ 9 callersMethodgetChildren
()
Tree Data Structures/Trie Tree/Java/Trie.java:174
↓ 8 callersMethodinsertWord
(TrieNode root, String word)
Tree Data Structures/Trie Tree/Java/TrieTreeSimple.java:42
↓ 7 callersMethodinsert
(String word)
Tree Data Structures/Trie Tree/Java/Trie.java:25
↓ 6 callersFunctionaddEdge
Adds an edge to an Adjacency List element
Graph Theory/Prim's Algorithm/C/prims-algorithm.c:27
↓ 6 callersMethodhasPlayerWon
(int[][] game, int player)
Artificial Intelligence/MiniMax Algorithm with Alpha-Beta Pruning/Java/MiniMaxWithAlphaBetaPruning.java:163
↓ 6 callersMethodhasPlayerWon
(int[][] game, int player)
Artificial Intelligence/MiniMax Algorithm/Java/MiniMaxAlgorithm.java:147
↓ 6 callersMethodprint
(Node[] adjacencyList)
Graph Theory/Adjcacency List/Java/AdjacencyList.java:117
↓ 6 callersMethodqueryWord
(TrieNode root, String word)
Tree Data Structures/Trie Tree/Java/TrieTreeSimple.java:59
↓ 5 callersMethodinsert
(String word)
Tree Data Structures/Compressed Trie Tree/Java/Trie.java:24
↓ 5 callersMethodstartsWith
(String prefix)
Tree Data Structures/Trie Tree/Java/Trie.java:96
↓ 4 callersFunctionjumpSearch
Searching Algorithms/Jump Search Algorithm/C++/JumpSearch.cpp:18
↓ 4 callersFunctionjumpSearch
Searching Algorithms/Jump Search Algorithm/C/jump-search.c:19
↓ 4 callersFunctionjumpSearch
Searching Algorithms/Jump Search Algorithm/C/optimised-jump-search.c:48
↓ 4 callersMethodjumpSearch
(int[] arr, int val)
Searching Algorithms/Jump Search Algorithm/Java/OptimisedJumpSearch.java:23
↓ 4 callersMethodjumpSearch
(int[] arr, int val)
Searching Algorithms/Jump Search Algorithm/Java/JumpSearch.java:23
↓ 4 callersFunctionjump_search
(alist, val)
Searching Algorithms/Jump Search Algorithm/Python/JumpSearch.py:15
↓ 4 callersFunctionmin
Searching Algorithms/Jump Search Algorithm/C/jump-search.c:15
↓ 4 callersMethodstrCopy
(CharSequence str, int index)
Tree Data Structures/Compressed Trie Tree/Java/Trie.java:77
↓ 3 callersFunctionbinarySearch
(alist, item)
Searching Algorithms/Binary Search Algorithm/Python/BinarySearch.py:9
↓ 3 callersMethoddelete
(String word)
Tree Data Structures/Trie Tree/Java/Trie.java:59
↓ 3 callersMethodisTerminalState
(int[][] game)
Artificial Intelligence/MiniMax Algorithm with Alpha-Beta Pruning/Java/MiniMaxWithAlphaBetaPruning.java:159
↓ 3 callersMethodisTerminalState
(int[][] game)
Artificial Intelligence/MiniMax Algorithm/Java/MiniMaxAlgorithm.java:143
↓ 3 callersFunctionmerge_sort
(array)
Sorting Algorithms/Merge Sort Algorithm/Python/MergeSort.py:13
↓ 3 callersMethodprint
(NaryTreeNode root)
Tree Data Structures/N-ary Tree/Java/NaryTreeNode.java:48
↓ 3 callersFunctionreplace
Replaces the value of an edge (u -->) v to (u --> v') newNodes the entire list of adjacencyList[u] => O(|E|) operation Here, "v" is stored as "oldVert
Graph Theory/Snakes and Ladders Game Code/C/snakes-and-ladders.c:74
↓ 3 callersMethodsearch
(String word)
Tree Data Structures/Trie Tree/Java/Trie.java:85
↓ 2 callersMethodBFSExplore
(LinkedList< Integer >[] adjacencyList, LinkedList<Integer> queue, int[] parent)
Artificial Intelligence/Bidirectional Search/Java/BidirectionalSearch.java:87
↓ 2 callersMethodIDDFS
(NaryTreeNode node, int maxDepth, NaryTreeNode goal)
Artificial Intelligence/Iterative Deepening Depth First Search/Java/IterativeDeepeningDepthFirstSearch.java:54
↓ 2 callersFunctionaddEdge
Inserts Node to the Linked List by Head Insertion - O(1) Returns address of head which is the newly created node.
Graph Theory/Adjcacency List/C/adjacency-list.c:22
↓ 2 callersFunctionextractMin
Returns the element with Minimum Priority and deletes it
Graph Theory/Prim's Algorithm/C/prims-algorithm.c:112
↓ 2 callersFunctionfactorial
Returns (n! % PRIME)
Math/Modular Arithmetic/C/modular-arithmetic.c:17
↓ 2 callersMethodgetCharacter
()
Tree Data Structures/Trie Tree/Java/Trie.java:162
↓ 2 callersMethodgetParent
()
Tree Data Structures/Trie Tree/Java/Trie.java:170
↓ 2 callersFunctionheapify
Applies the heapify procedure - O(log N)
Tree Data Structures/Binary Heaps/C/binary-heap.c:51
↓ 2 callersFunctionheapify
Applies the heapify procedure - O(log N)
Graph Theory/Dijkstra's Algorithm/C/dijkstras-algorithm-using-binary-heap.c:42
↓ 2 callersFunctioninOrderWalk
In-Order Walk of Segment Tree
Tree Data Structures/Segment Trees/C/segment-tree.c:71
↓ 2 callersFunctioninsert
Graph Theory/Breadth First Search Algorithm/C/breadth-first-search.c:20
↓ 2 callersMethodisLeaf
()
Tree Data Structures/Trie Tree/Java/Trie.java:182
↓ 2 callersFunctionlexicographicalPrint
Prints the 'trieTree' in a Pre-Order or a DFS manner which automatically results in a Lexicographical Order
Tree Data Structures/Trie Tree/C++/trie-tree-using-stl.cpp:146
↓ 2 callersMethodmaxTurn
(int[][] game, int depth, int alpha, int beta)
Artificial Intelligence/MiniMax Algorithm with Alpha-Beta Pruning/Java/MiniMaxWithAlphaBetaPruning.java:83
↓ 2 callersMethodmaxTurn
(int[][] game, int depth)
Artificial Intelligence/MiniMax Algorithm/Java/MiniMaxAlgorithm.java:83
↓ 2 callersMethodmaxValueOfRod
(int n, int[] price, HashMap<Integer, Integer> cache)
Dynamic Programming/Rod Cutting/Java/RodCutting.java:24
↓ 2 callersMethodminTurn
(int[][] game, int depth, int alpha, int beta)
Artificial Intelligence/MiniMax Algorithm with Alpha-Beta Pruning/Java/MiniMaxWithAlphaBetaPruning.java:122
↓ 2 callersMethodminTurn
(int[][] game, int depth)
Artificial Intelligence/MiniMax Algorithm/Java/MiniMaxAlgorithm.java:114
↓ 2 callersMethodprintAdjacencyList
Prints the Adjacency List
Graph Theory/Adjcacency List/C#/AdjacencyList.cs:64
↓ 2 callersMethodprintGame
(int[][] game)
Artificial Intelligence/MiniMax Algorithm with Alpha-Beta Pruning/Java/MiniMaxWithAlphaBetaPruning.java:219
↓ 2 callersMethodprintGame
(int[][] game)
Artificial Intelligence/MiniMax Algorithm/Java/MiniMaxAlgorithm.java:203
↓ 2 callersMethodprintMaze
(int[][] maze)
Backtracking/Maze Solver/Java/MazeSolver.java:123
↓ 2 callersFunctionreplaceEdgeFor6PreceedingVertices
Graph Theory/Snakes and Ladders Game Code/C++/SnakesAndLadders.cpp:20
↓ 2 callersMethodscore
(int[][] game, int depth)
Artificial Intelligence/MiniMax Algorithm with Alpha-Beta Pruning/Java/MiniMaxWithAlphaBetaPruning.java:197
↓ 2 callersMethodscore
(int[][] game, int depth)
Artificial Intelligence/MiniMax Algorithm/Java/MiniMaxAlgorithm.java:181
↓ 2 callersMethodsearch
(String word)
Tree Data Structures/Compressed Trie Tree/Java/Trie.java:107
↓ 2 callersMethodsearchNode
(String word)
Tree Data Structures/Trie Tree/Java/Trie.java:119
↓ 2 callersMethodsetParent
(TrieNode parent)
Tree Data Structures/Trie Tree/Java/Trie.java:166
↓ 2 callersMethodstartsWith
(String prefix)
Tree Data Structures/Compressed Trie Tree/Java/Trie.java:138
↓ 1 callersFunctionDFS
Graph Theory/Depth First Search Algorithm/C/depth-first-search.c:55
↓ 1 callersFunctionDFSExplore
Graph Theory/Depth First Search Algorithm/C/depth-first-search.c:33
↓ 1 callersMethodDLS
(NaryTreeNode node, NaryTreeNode goal, int depth)
Artificial Intelligence/Iterative Deepening Depth First Search/Java/IterativeDeepeningDepthFirstSearch.java:70
↓ 1 callersFunctionInsert
Tree Data Structures/Trie Tree/C++/trie-tree-spoj-phonelst.cpp:28
↓ 1 callersFunction_partition
(alist, start, end)
Sorting Algorithms/Quick Sort Algorithm/Python/QuickSort.py:32
↓ 1 callersFunction_quick_sort_helper
(alist, start, end)
Sorting Algorithms/Quick Sort Algorithm/Python/QuickSort.py:18
↓ 1 callersFunctionadd
Adds a new edge into the Adjacency List Follows Head Insertion for O(1) Insertion
Graph Theory/Bellman Ford Algorithm/C/bellman-ford.c:36
↓ 1 callersFunctionadd
Graph Theory/Depth First Search Algorithm/C/depth-first-search.c:20
↓ 1 callersFunctionaddEdge
Follows head insertion to give O(1) insertion
Graph Theory/Dijkstra's Algorithm/C/dijkstras-algorithm-using-binary-heap.c:30
↓ 1 callersFunctionaddEdge
Follows head insertion to give O(1) insertion
Graph Theory/Dijkstra's Algorithm/C/dijkstras-algorithm.c:23
↓ 1 callersFunctionaddEdge
Adds a new edge, u --> v, to adjacencyList[u]
Graph Theory/Snakes and Ladders Game Code/C/snakes-and-ladders.c:21
↓ 1 callersMethodaddEdge
Adds a new node in the linked list. Follows head insertion for O(1) performance. @param oldHead head of the linked list to which new node is to be ad
Graph Theory/Adjcacency List/Java/AdjacencyList.java:79
↓ 1 callersMethodaddEdgeAtEnd
Appends a new Edge to the linked list
Graph Theory/Adjcacency List/C#/AdjacencyList.cs:33
↓ 1 callersFunctionaddVertex
Adds an element to the heap and returns the size - O(log N)
Tree Data Structures/Binary Heaps/C/binary-heap.c:21
↓ 1 callersFunctionbellmanFord
Bellman-Ford Algorithm which takes the Graph (adjacencyList[]), starting vertex (startVertex), and an empty array shortestDistances[] as input. It app
Graph Theory/Bellman Ford Algorithm/C/bellman-ford.c:50
↓ 1 callersMethodbfs
(int source)
Graph Theory/Breadth First Search Algorithm/Java/Graph.java:40
↓ 1 callersMethodbidirectionalSearch
(LinkedList< Integer >[] adjacencyList, int source, int goal)
Artificial Intelligence/Bidirectional Search/Java/BidirectionalSearch.java:53
↓ 1 callersFunctionbinarySearch
Main Binary Search logic
Searching Algorithms/Binary Search Algorithm/C++/binary-search.cpp:18
↓ 1 callersFunctionbinarySearch
Searching Algorithms/Binary Search Algorithm/C/binary-search.c:14
↓ 1 callersMethodbinarySearch
(int arr[], int val)
Searching Algorithms/Binary Search Algorithm/Java/BinarySearch.java:14
↓ 1 callersFunctionbreadthFirstSearch
Graph Theory/Snakes and Ladders Game Code/C++/SnakesAndLadders.cpp:39
↓ 1 callersFunctionbreadthFirstSearch
Graph Theory/Snakes and Ladders Game Code/C/snakes-and-ladders.c:31
↓ 1 callersFunctionbreadthFirstSearch
Graph Theory/Breadth First Search Algorithm/C++/breadth-first-search-using-queue.cpp:30
↓ 1 callersFunctionbreadthFirstSearch
Graph Theory/Breadth First Search Algorithm/C++/breadth-first-search-using-stl.cpp:19
↓ 1 callersFunctionbreadth_first_search
Graph Theory/Breadth First Search Algorithm/C/breadth-first-search.c:34
↓ 1 callersFunctionbubbleUp
This makes the neccessary adjustments after insertion to ensure the validity of Heap Property in the Binary Heap
Tree Data Structures/Binary Heaps/C++/binary-heap-using-struct.cpp:72
↓ 1 callersFunctionbuildHeap
Build Heap Procedure - O(N)
Tree Data Structures/Binary Heaps/C/binary-heap.c:142
↓ 1 callersFunctionbuildHeap
Build Heap Procedure - O(N)
Graph Theory/Dijkstra's Algorithm/C/dijkstras-algorithm-using-binary-heap.c:87
↓ 1 callersFunctionbuildSegmentTree
The recursive procedure which actually constructs the Segment Tre
Tree Data Structures/Segment Trees/C/segment-tree.c:23
↓ 1 callersMethodcomputeAndPlayBestMove
(int[][] game, int player)
Artificial Intelligence/MiniMax Algorithm with Alpha-Beta Pruning/Java/MiniMaxWithAlphaBetaPruning.java:67
↓ 1 callersMethodcomputeAndPlayBestMove
(int[][] game, int player)
Artificial Intelligence/MiniMax Algorithm/Java/MiniMaxAlgorithm.java:67
↓ 1 callersFunctiondecreaseKey
Searches for a node in the Heap in O(1) time and decreases its value Then calls Heapify() on it's parent to adjust heap -> totally takes O(log N) time
Graph Theory/Dijkstra's Algorithm/C/dijkstras-algorithm-using-binary-heap.c:98
↓ 1 callersMethoddeleteEdge
(Node adjacencyList, Node edgeToBeRemoved)
Graph Theory/Adjcacency List/Java/AdjacencyList.java:87
↓ 1 callersFunctiondeleteNode
Deletes and entry in the Priority Queue
Graph Theory/Prim's Algorithm/C/prims-algorithm.c:97
↓ 1 callersFunctiondeleteVertex
Deletes the vertex and returns the size - O(log N)
Tree Data Structures/Binary Heaps/C/binary-heap.c:105
↓ 1 callersMethoddfs
()
Graph Theory/Depth First Search Algorithm/Java/Graph.java:40
↓ 1 callersMethoddfsUtil
(int v, boolean visited[])
Graph Theory/Depth First Search Algorithm/Java/Graph.java:53
↓ 1 callersFunctiondijkstra
Dijkstra's Algorithm function
Graph Theory/Dijkstra's Algorithm/C++/dijkstras-algorithm.cpp:31
↓ 1 callersFunctiondijkstra
Dijkstra's Algorithm function
Graph Theory/Dijkstra's Algorithm/C/dijkstras-algorithm-using-binary-heap.c:137
next →1–100 of 258, ranked by callers