MCPcopy Create free account

hub / github.com/TheAlgorithms/Go / functions

Functions1,378 in github.com/TheAlgorithms/Go

FunctionBenchmarkTestBitwiseMin
(b *testing.B)
math/min/min_test.go:58
FunctionBenchmarkTestMinInt
(b *testing.B)
math/min/min_test.go:52
FunctionBenchmarkTestXorSearchMissingNumber
(b *testing.B)
math/binary/xorsearch_test.go:35
FunctionBenchmarkTimsort
(b *testing.B)
sort/sorts_test.go:340
FunctionBenchmarkTrialDivision
(b *testing.B)
math/prime/prime_test.go:83
FunctionBenchmarkTrie_Find_existent
(b *testing.B)
structure/trie/trie_bench_test.go:40
FunctionBenchmarkTrie_Find_non_existent
(b *testing.B)
structure/trie/trie_bench_test.go:25
FunctionBenchmarkTrie_Insert
CAUTION : make sure to limit the benchmarks to 3000 iterations, or removal will mostly process an empty Trie, giving absurd results.
structure/trie/trie_bench_test.go:12
FunctionBenchmarkTrie_Remove_and_Compact
(b *testing.B)
structure/trie/trie_bench_test.go:68
FunctionBenchmarkTrie_Remove_lazy
(b *testing.B)
structure/trie/trie_bench_test.go:54
FunctionBenchmarkTwin
(b *testing.B)
math/prime/twin_test.go:35
FunctionBenchmarkUpperBound
(b *testing.B)
search/binary_test.go:80
FunctionBenchmarkUsingLog
(b *testing.B)
math/power/powvialogarithm_test.go:40
FunctionBinaryInsertion
(arr []T)
sort/binaryinsertionsort.go:13
FunctionBogo
(arr []T)
sort/bogosort.go:33
FunctionBucket
Bucket sorts a slice. It is mainly useful when input is uniformly distributed over a range.
sort/bucketsort.go:7
FunctionCircle
Circle sorts an array using the circle sort algorithm.
sort/circlesort.go:7
FunctionCocktail
Cocktail sort is a variation of bubble sort, operating in two directions (beginning to end, end to beginning)
sort/cocktailsort.go:9
FunctionComb
Comb is a simple sorting algorithm which is an improvement of the bubble sorting algorithm.
sort/combSort.go:20
FunctionCount
(data []T)
sort/countingsort.go:14
MethodCreateChild
(value NodeValue, id int)
project_euler/problem_18/edge.go:27
MethodCreateChild
(value NodeValue, id int)
project_euler/problem_18/root.go:26
MethodCreateChild
(value NodeValue, id int)
project_euler/problem_18/leaf.go:31
FunctionCutRodDp
CutRodDp solve the same problem using dynamic programming
dynamic/rodcutting.go:23
FunctionCutRodRec
CutRodRec solve the problem recursively: initial approach
dynamic/rodcutting.go:10
FunctionCycle
Cycle sort is an in-place, unstable sorting algorithm that is particularly useful when sorting arrays containing elements with a small range of values
sort/cyclesort.go:10
MethodDelByPos
DelByPos deletes the node at the middle based on position in the list and returns its value. Returns false if the list is empty or length is not more
structure/linkedlist/singlylinkedlist.go:89
MethodDelByPos
DelByPos deletes node at middle based on position in list and returns value. If empty or position of node is less than linked list length, returns fal
structure/linkedlist/doubly.go:106
MethodDelete
(value T)
structure/set/set.go:61
MethodDelete
Delete a Node from the AVL Tree
structure/tree/avl.go:74
MethodDelete
Delete removes the node of val
structure/tree/bstree.go:66
MethodDelete
Delete a node of Red-Black Tree Returns false if the node does not exist, otherwise returns true.
structure/tree/rbtree.go:80
MethodDelete
(tree *BTree[T], key T)
structure/tree/btree.go:244
MethodDelete
(key T)
structure/tree/btree.go:347
MethodDepth
Depth returns the calculated depth of the AVL tree
structure/tree/avl.go:126
MethodDepth
Depth returns the calculated depth of a binary search tree
structure/tree/bstree.go:118
MethodDepth
Depth returns the calculated depth of a Red-Black tree
structure/tree/rbtree.go:127
MethodDifference
(st2 Set[T])
structure/set/set.go:144
MethodDisplay
Display prints out the elements of the list.
structure/linkedlist/singlylinkedlist.go:175
MethodDisplay
Display display the linked list
structure/linkedlist/doubly.go:169
MethodDisplayReverse
DisplayReverse Display the linkedlist in reverse order
structure/linkedlist/doubly.go:178
FunctionEditDistanceRecursive
EditDistanceRecursive is a naive implementation with exponential time complexity.
dynamic/editdistance.go:12
MethodEmpty
Empty returns the heap is empty or not.
structure/heap/heap.go:59
MethodEmpty
Empty determines the AVL tree is empty
structure/tree/avl.go:62
MethodEmpty
Empty determines the Binary-Search tree is empty
structure/tree/bstree.go:54
MethodEmpty
Empty determines the Red-Black tree is empty
structure/tree/rbtree.go:67
FunctionExample
()
cipher/caesar/caesar_test.go:141
FunctionExample
()
cipher/xor/xor_test.go:10
FunctionExampleKnapsack
()
dynamic/knapsack_test.go:35
FunctionExampleNewPolybius
()
cipher/polybius/polybius_test.go:10
FunctionExampleNode
()
structure/trie/trieexample_test.go:5
FunctionExampleSet
()
structure/set/setexample_test.go:7
FunctionExchange
(arr []T)
sort/exchangesort.go:11
FunctionExtendedIterative
ExtendedIterative finds and returns gcd(a, b), x, y satisfying a*x + b*y = gcd(a, b).
math/gcd/extendedgcditerative.go:4
FunctionExtendedRecursive
ExtendedRecursive finds and returns gcd(a, b), x, y satisfying a*x + b*y = gcd(a, b).
math/gcd/extendedgcd.go:9
FunctionFuzzBase64Encode
(f *testing.F)
conversion/base64_test.go:113
FunctionFuzzCaesar
(f *testing.F)
cipher/caesar/caesar_test.go:158
FunctionFuzzPolybius
(f *testing.F)
cipher/polybius/polybius_test.go:154
FunctionFuzzRot13
(f *testing.F)
cipher/rot13/rot13_test.go:72
FunctionFuzzRsa
(f *testing.F)
cipher/rsa/rsa_test.go:79
FunctionFuzzTransposition
(f *testing.F)
cipher/transposition/transposition_test.go:103
FunctionFuzzXOR
(f *testing.F)
cipher/xor/xor_test.go:108
FunctionGenerate
Generate returns a newly generated password
other/password/generator.go:18
MethodGet
Get returns the value associated with the given key
structure/hashmap/hashmap.go:41
MethodGet
Get a Node from the AVL Tree
structure/tree/avl.go:84
MethodGet
Get a Node from the Red-Black Tree
structure/tree/rbtree.go:85
MethodGetDad
(u int)
graph/lowestcommonancestor.go:57
MethodGetID
()
project_euler/problem_18/edge.go:59
MethodGetID
()
project_euler/problem_18/root.go:36
MethodGetID
()
project_euler/problem_18/leaf.go:42
MethodGetPrivateKey
GetPrivateKey returns the private key
cipher/rsa/rsa2.go:103
MethodGetPublicKey
GetPublicKey returns the public key and modulus
cipher/rsa/rsa2.go:98
MethodHas
Has Determines the tree has the node of Key
structure/tree/bstree.go:81
MethodHas
Has Determines the tree has the node of Key
structure/tree/rbtree.go:90
MethodHasSpace
()
project_euler/problem_18/edge.go:86
MethodHasSpace
()
project_euler/problem_18/root.go:48
MethodHasSpace
()
project_euler/problem_18/leaf.go:61
FunctionHeapSort
(slice []T)
sort/heapsort.go:122
MethodIdx
()
graph/dijkstra.go:21
FunctionImprovedSimple
ImprovedSimple is a improve SimpleSort by skipping an unnecessary comparison of the first and last. This improved version is more similar to implement
sort/simplesort.go:30
MethodIn
(value T)
structure/set/set.go:77
MethodInOrder
InOrder Traverses the tree in the following order Left --> Root --> Right
structure/tree/avl.go:102
MethodInOrder
InOrder Traverses the tree in the following order Left --> Root --> Right
structure/tree/bstree.go:94
MethodInOrder
InOrder Traverses the tree in the following order Left --> Root --> Right
structure/tree/rbtree.go:103
MethodInsert
(key T)
structure/tree/btree.go:178
MethodInsert
(node Node)
project_euler/problem_18/edge.go:63
MethodInsert
(node Node)
project_euler/problem_18/root.go:40
MethodInsert
(node Node)
project_euler/problem_18/leaf.go:46
MethodIntersection
(st2 Set[T])
structure/set/set.go:126
MethodIsProperSubsetOf
(superSet Set[T])
structure/set/set.go:97
MethodIsProperSupersetOf
(subSet Set[T])
structure/set/set.go:108
MethodKey
()
structure/tree/avl.go:26
MethodKey
()
structure/tree/bstree.go:22
MethodKey
()
structure/tree/rbtree.go:33
MethodKind
()
project_euler/problem_18/edge.go:23
MethodKind
()
project_euler/problem_18/root.go:22
MethodKind
()
project_euler/problem_18/leaf.go:27
MethodLeft
()
structure/tree/tree.go:18
MethodLeft
()
structure/tree/avl.go:34
MethodLeft
()
structure/tree/bstree.go:30
← previousnext →801–900 of 1,378, ranked by callers