Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexfertel/rust-algorithms
/ functions
Functions
990 in github.com/alexfertel/rust-algorithms
⨍
Functions
990
◇
Types & classes
106
Function
delete
()
src/data_structures/rb_tree.rs:639
Function
delete_at_start
()
src/data_structures/rope.rs:405
Function
delete_in_middle
()
src/data_structures/rope.rs:389
Function
depth_first_search
(graph: &Graph, start: Vertex, end: Vertex)
src/graphs/depth_first_search.rs:4
Function
dijkstra
Performs Dijsktra's algorithm on the given `graph` from the given `start`. `graph` is a positively-weighted undirected graph. Returns a map that for
src/graphs/dijkstra.rs:12
Function
directed_right_edge
()
src/graphs/depth_first_search.rs:58
Function
directed_right_edge
()
src/graphs/breadth_first_search.rs:59
Function
directed_wrong_edge
()
src/graphs/depth_first_search.rs:71
Function
directed_wrong_edge
()
src/graphs/breadth_first_search.rs:72
Function
distance_five
()
src/string/hamming_distance.rs:43
Function
distance_four
()
src/string/hamming_distance.rs:38
Function
distance_three
()
src/string/hamming_distance.rs:33
Function
distance_zero
()
src/string/hamming_distance.rs:28
Function
divided
()
src/graphs/depth_first_search.rs:97
Function
divided
()
src/graphs/breadth_first_search.rs:98
Function
divisible_by_mpf
()
src/math/linear_sieve.rs:91
Method
drop
(&mut self)
src/data_structures/stack_using_singly_linked_list.rs:109
Function
dumbbell
()
src/graphs/strongly_connected_components.rs:130
Function
each_letter_matches
()
src/string/rabin_karp.rs:91
Function
each_letter_matches
()
src/string/knuth_morris_pratt.rs:63
Function
easy_bivariate_clustering
()
src/general/kmeans.rs:143
Function
easy_univariate_clustering
()
src/general/kmeans.rs:110
Function
easy_univariate_clustering_odd_number_of_data
()
src/general/kmeans.rs:126
Method
edges
(&self)
src/data_structures/graph.rs:110
Function
edit_distance
edit_distance(str_a, str_b) returns the edit distance between the two strings. This edit distance is defined as being 1 point per insertion, substitut
src/dynamic_programming/edit_distance.rs:18
Function
edit_distance_se
The space efficient version of the above algorithm. Instead of storing the `m * n` matrix explicitly, only one row (of length `n`) is stored. It keep
src/dynamic_programming/edit_distance.rs:53
Function
egg_drop
Egg Dropping Puzzle `egg_drop(eggs, floors)` returns the least number of egg droppings required to determine the highest floor from which an egg will
src/dynamic_programming/egg_dropping.rs:8
Function
eggs2_floors10
()
src/dynamic_programming/egg_dropping.rs:78
Function
eggs2_floors2
()
src/dynamic_programming/egg_dropping.rs:68
Function
eggs2_floors36
()
src/dynamic_programming/egg_dropping.rs:83
Function
eggs3_floors5
()
src/dynamic_programming/egg_dropping.rs:73
Function
empty
()
src/graphs/prim.rs:66
Function
empty
()
src/general/convex_hull.rs:72
Function
empty
()
src/sorting/sleep_sort.rs:67
Function
empty
()
src/string/burrows_wheeler_transform.rs:88
Function
empty
()
src/ciphers/sha256.rs:200
Function
empty
()
src/ciphers/vigenere.rs:68
Function
empty
()
src/ciphers/caesar.rs:47
Function
empty
()
src/searching/kth_smallest.rs:65
Function
empty
()
src/searching/fibonacci_search.rs:47
Function
empty
()
src/searching/kth_smallest_heap.rs:59
Function
empty
()
src/searching/jump_search.rs:35
Function
empty
()
src/searching/linear_search.rs:45
Function
empty
()
src/searching/binary_search.rs:36
Function
empty
()
src/searching/exponential_search.rs:35
Function
empty_string
()
src/string/rabin_karp.rs:139
Function
empty_string
()
src/string/knuth_morris_pratt.rs:114
Function
empty_strings
()
src/string/hamming_distance.rs:23
Function
encode_and_decode
()
src/ciphers/polybius.rs:163
Function
encode_emoji
()
src/ciphers/polybius.rs:130
Function
encode_empty
()
src/ciphers/polybius.rs:125
Function
encrypt_letters_and_special_characters
()
src/ciphers/morse_code.rs:251
Function
encrypt_message_with_unsupported_character
()
src/ciphers/morse_code.rs:261
Function
encrypt_only_letters
()
src/ciphers/morse_code.rs:241
Function
eq
(p1: Option<(Point, Point)>, p2: Option<(Point, Point)>)
src/geometry/closest_points.rs:112
Method
eq
(&self, other: &Self)
src/graphs/minimum_spanning_tree.rs:11
Function
equal_graphs
(g1: &mut Graph<V>, g2: &mut Graph<V>)
src/graphs/prufer_code.rs:78
Function
equal_strings
()
src/dynamic_programming/edit_distance.rs:93
Function
error
()
src/sorting/sleep_sort.rs:79
Function
expected_loss
()
src/graphs/depth_first_search_tic_tac_toe.rs:390
Function
extended_euclidean_algorithm
(a: i32, b: i32)
src/math/extended_euclidean_algorithm.rs:7
Function
fail_change
()
src/dynamic_programming/coin_change.rs:60
Function
fail_empty_list
()
src/searching/binary_search_recursive.rs:39
Function
fail_search_integers
()
src/searching/binary_search_recursive.rs:129
Function
fail_search_strings_asc
()
src/searching/binary_search_recursive.rs:85
Function
fail_search_strings_desc
()
src/searching/binary_search_recursive.rs:96
Method
fast_power
(mut base: Self, mut power: u64)
src/math/quadratic_residue.rs:55
Function
fibonacci
fibonacci(n) returns the nth fibonacci number This function uses the definition of Fibonacci where: F(0) = F(1) = 1 and F(n+1) = F(n) + F(n-1) for n>0
src/dynamic_programming/fibonacci.rs:9
Function
fills_and_empties
()
src/data_structures/stack.rs:56
Function
fills_and_empties
()
src/data_structures/queue.rs:50
Function
find
()
src/data_structures/rb_tree.rs:617
Function
find_root
(f: fn(f64) -> f64, fd: fn(f64) -> f64, guess: f64, iterations: i32)
src/math/newton_raphson.rs:1
Function
finds_in_kn
()
src/graphs/depth_first_search.rs:28
Function
finds_in_kn
()
src/graphs/breadth_first_search.rs:29
Function
finds_max_value
()
src/searching/ternary_search_min_max_recursive.rs:56
Function
finds_max_value
()
src/searching/ternary_search_min_max.rs:58
Function
finds_max_value_2
()
src/searching/ternary_search_min_max_recursive.rs:84
Function
finds_max_value_2
()
src/searching/ternary_search_min_max.rs:86
Function
finds_min_value
()
src/searching/ternary_search_min_max_recursive.rs:70
Function
finds_min_value
()
src/searching/ternary_search_min_max.rs:72
Function
finds_min_value_2
()
src/searching/ternary_search_min_max_recursive.rs:98
Function
finds_min_value_2
()
src/searching/ternary_search_min_max.rs:100
Method
fmt
(&self, f: &mut Formatter<'_>)
src/data_structures/rope.rs:14
Method
fmt
(&self, f: &mut fmt::Formatter)
src/data_structures/graph.rs:9
Method
from
(item: u32)
src/graphs/representation.rs:20
Method
from_iter
(iter: I)
src/data_structures/avl_tree.rs:405
Method
from_vec
function to build the tree
src/data_structures/segment_tree.rs:16
Function
gaussian_elimination
(matrix: &mut [Vec<f32>])
src/math/gaussian_elimination.rs:6
Function
gcd
returns the greatest common divisor of n numbers
src/math/gcd_of_n_numbers.rs:2
Function
get_longest_palindrome_by_manacher
()
src/string/manacher.rs:83
Method
get_state
(&self)
src/math/random.rs:102
Method
get_u16
(&mut self)
src/math/random.rs:87
Method
get_u8
(&mut self)
src/math/random.rs:92
Function
graph_1
()
src/graphs/dijkstra.rs:116
Function
graph_1
()
src/graphs/prim.rs:129
Function
graph_1
()
src/graphs/bellman_ford.rs:150
Function
graph_2
()
src/graphs/prim.rs:152
Function
graph_2
()
src/graphs/bellman_ford.rs:194
Function
graph_3
()
src/graphs/prim.rs:176
Function
graph_with_negative_loop
()
src/graphs/bellman_ford.rs:249
← previous
next →
401–500 of 990, ranked by callers