Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ functions
Functions
865 in github.com/subbarayudu-j/TheAlgorithms-Python
⨍
Functions
865
◇
Types & classes
71
Method
__init__
(self)
data_structures/stacks/__init__.py:3
Method
__init__
These parameters are saved and used when nextNumber() is called. modulo is the largest number that can be generated (exclusive)
other/linear_congruential_generator.py:11
Method
__init__
simple constructor that receives a key or uses default key = 0
ciphers/xor_cipher.py:21
Method
__init__
encrypt_key is an NxN numpy matrix
ciphers/hill_cipher.py:63
Method
__init__
(self, arr)
dynamic_programming/longest_sub_array.py:14
Method
__init__
(self,task_performed,total)
dynamic_programming/bitmask.py:17
Method
__init__
(self, N = 0)
dynamic_programming/floyd_warshall.py:5
Method
__init__
(self)
dynamic_programming/edit_distance.py:20
Method
__init__
(self, N=None)
dynamic_programming/fibonacci.py:9
Method
__len__
returns the size of the vector
linear_algebra_python/src/lib.py:78
Method
__mul__
mul implements the scalar multiplication and the dot-product
linear_algebra_python/src/lib.py:115
Method
__mul__
implements the matrix-vector multiplication. implements the matrix-scalar multiplication
linear_algebra_python/src/lib.py:256
Method
__str__
returns a string representation of the vector
linear_algebra_python/src/lib.py:64
Method
__str__
returns a string representation of this matrix.
linear_algebra_python/src/lib.py:216
Method
__str__
(self)
data_structures/queue/queue_on_pseudo_stack.py:7
Method
__str__
(self)
data_structures/queue/queue_on_list.py:8
Method
__str__
(self)
data_structures/stacks/stack.py:22
Method
__sub__
input: other vector assumes: other vector has the same size returns a new vector that represents the differenz.
linear_algebra_python/src/lib.py:103
Method
__sub__
implements the matrix-subtraction.
linear_algebra_python/src/lib.py:290
Method
_colision_resolution
(self, key, data=None)
data_structures/hashing/hash_table_with_linked_list.py:18
Method
_colision_resolution
(self, key, data=None)
data_structures/hashing/double_hash.py:23
Method
_colision_resolution
(self, key, data=None)
data_structures/hashing/quadratic_probing.py:13
Method
_set_value
(self, key, data)
data_structures/hashing/hash_table_with_linked_list.py:9
Function
adjm
()
Graphs/basic_graphs.py:170
Method
all_nodes
(self)
Graphs/Directed and Undirected (Weighted) Graph.py:24
Method
all_nodes
(self)
Graphs/Directed and Undirected (Weighted) Graph.py:455
Function
b_expo
(a, b)
other/binary_exponentiation.py:14
Function
b_expo
(a, b)
other/binary_exponentiation_2.py:14
Function
b_expo_mod
(a, b, c)
other/binary_exponentiation.py:26
Function
b_expo_mod
(a, b, c)
other/binary_exponentiation_2.py:26
Method
balanced_factor
(self)
data_structures/hashing/hash_table_with_linked_list.py:14
Function
bfs
(G, s)
Graphs/basic_graphs.py:89
Method
bfs_time
(self, s = -2)
Graphs/Directed and Undirected (Weighted) Graph.py:247
Method
bfs_time
(self, s = -2)
Graphs/Directed and Undirected (Weighted) Graph.py:464
Function
binary_search_by_recursion
Pure implementation of binary search algorithm in Python by recursion Be careful collection must be sorted, otherwise result will be unpredic
searches/binary_search.py:88
Function
binary_search_std_lib
Pure implementation of binary search algorithm in Python using stdlib Be careful collection must be sorted, otherwise result will be unpredic
searches/binary_search.py:60
Method
bulk_insert
(self, values)
data_structures/hashing/hash_table.py:34
Method
convolution
(self,data)
neural_network/convolution_neural_network.py:292
Method
cycle_nodes
(self)
Graphs/Directed and Undirected (Weighted) Graph.py:146
Method
cycle_nodes
(self)
Graphs/Directed and Undirected (Weighted) Graph.py:361
Function
decode
(ciphertext, key)
ciphers/playfair_cipher.py:83
Method
decrypt
input: 'content' of type list and 'key' of type int output: decrypted string 'content' as a list of chars if key not passed the method uses
ciphers/xor_cipher.py:55
Method
decrypt_file
input: filename (str) and a key (int) output: returns true if decrypt process was successful otherwise false if key not passed the method
ciphers/xor_cipher.py:158
Method
degree
(self, u)
Graphs/Directed and Undirected (Weighted) Graph.py:358
Method
delete
(self, x)
data_structures/linked_list/doubly_linked_list.py:45
Function
dfs
(G, s)
Graphs/basic_graphs.py:61
Method
dfs_time
(self, s = -2, e = -1)
Graphs/Directed and Undirected (Weighted) Graph.py:241
Method
dfs_time
(self, s = -2, e = -1)
Graphs/Directed and Undirected (Weighted) Graph.py:458
Function
dijk
(G, s)
Graphs/basic_graphs.py:113
Method
display
(self)
data_structures/linked_list/doubly_linked_list.py:64
Method
do_round
(self,x)
neural_network/convolution_neural_network.py:103
Method
draw_error
()
neural_network/convolution_neural_network.py:257
Function
edglist
()
Graphs/basic_graphs.py:244
Function
encode
(plaintext, key)
ciphers/playfair_cipher.py:60
Method
encrypt
input: 'content' of type string and 'key' of type int output: encrypted string 'content' as a list of chars if key not passed the method use
ciphers/xor_cipher.py:30
Method
encrypt_file
input: filename (str) and a key (int) output: returns true if encrypt process was successful otherwise false if key not passed the method
ciphers/xor_cipher.py:132
Function
englishFreqMatchScore
>>> englishFreqMatchScore('Hello World') 1
other/frequency_finder.py:49
Function
f
(x)
arithmetic_analysis/intersection.py:13
Function
f
(x)
arithmetic_analysis/bisection.py:29
Function
f
(x)
arithmetic_analysis/newton_method.py:11
Function
factorial
input: positive integer 'n' returns the factorial of 'n' (n!)
other/primelib.py:567
Function
fib
input: positive integer 'n' returns the n-th fibonacci term , indexing by 0
other/primelib.py:585
Method
fill_graph_randomly
(self, c = -1)
Graphs/Directed and Undirected (Weighted) Graph.py:75
Method
fill_graph_randomly
(self, c = -1)
Graphs/Directed and Undirected (Weighted) Graph.py:331
Function
findMin
(arr)
dynamic_programming/minimum_partition.py:4
Function
findModInverse
(a, m)
ciphers/cryptomath_module.py:6
Function
find_isolated_nodes
(graph)
Graphs/basic_graphs.py:285
Function
floy
(A_and_n)
Graphs/basic_graphs.py:190
Method
front
(self)
data_structures/queue/queue_on_pseudo_stack.py:42
Method
front
(self)
data_structures/queue/queue_on_list.py:40
Function
getItemAtIndexZero
(x)
other/frequency_finder.py:24
Method
getMax
(self)
data_structures/heap/heap.py:47
Function
getPrime
Gets the n-th prime number. input: positive integer 'n' >= 0 returns the n-th prime number, beginning at index 0
other/primelib.py:418
Function
getPrimesBetween
input: prime numbers 'pNumber1' and 'pNumber2' pNumber1 < pNumber2 returns a list of all prime numbers between 'pNumb
other/primelib.py:450
Function
getRandomKey
()
ciphers/simple_substitution_cipher.py:65
Function
getRandomKey
()
ciphers/affine_cipher.py:67
Function
getRightMost
(root)
data_structures/binary tree/AVLtree.py:143
Method
getRoot
(self)
data_structures/avl.py:169
Function
goldbach
Goldbach's assumption input: a even positive integer 'number' > 2 returns a list of two prime numbers whose sum is equal to '
other/primelib.py:267
Function
greatestPrimeFactor
input: positive integer 'number' >= 0 returns the greatest prime number factor of 'number'
other/primelib.py:187
Method
has_cycle
(self)
Graphs/Directed and Undirected (Weighted) Graph.py:193
Method
has_cycle
(self)
Graphs/Directed and Undirected (Weighted) Graph.py:408
Function
hueristic_1
(P, goal)
Graphs/multi_hueristic_astar.py:70
Function
hueristic_2
(P, goal)
Graphs/multi_hueristic_astar.py:66
Method
in_degree
(self, u)
Graphs/Directed and Undirected (Weighted) Graph.py:102
Method
insert
(self,data)
data_structures/heap/heap.py:68
Method
insertHead
(self, x)
data_structures/linked_list/doubly_linked_list.py:15
Method
insertTail
(self, x)
data_structures/linked_list/doubly_linked_list.py:32
Function
interpolation_search_by_recursion
Pure implementation of interpolation search algorithm in Python by recursion Be careful collection must be sorted, otherwise result will be un
searches/interpolation_search.py:41
Method
isEmpty
(self)
data_structures/linked_list/singly_linked_list.py:52
Function
isEnglish
>>> isEnglish('Hello World') True >>> isEnglish('llold HorWd') False
other/detecting_english_programmatically.py:38
Function
isOdd
input: integer 'number' returns true if 'number' is odd, otherwise false.
other/primelib.py:252
Function
isPerfectNumber
input: positive integer 'number' > 1 returns true if 'number' is a perfect number otherwise false.
other/primelib.py:521
Function
kgV
Least common multiple input: two positive integer 'number1' and 'number2' returns the least common multiple of 'number1' and
other/primelib.py:344
Function
krusk
(E_and_n)
Graphs/basic_graphs.py:262
Method
left
(self)
data_structures/avl.py:27
Function
mae
(predict, actual)
machine_learning/scoring_functions.py:18
Function
mbd
(predict, actual)
machine_learning/scoring_functions.py:66
Function
merge_sort
(LIST)
sorts/merge_sort_fastest.py:7
Function
mse
(predict, actual)
machine_learning/scoring_functions.py:28
← previous
next →
701–800 of 865, ranked by callers