Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/douchuan/algorithm
/ functions
Functions
655 in github.com/douchuan/algorithm
⨍
Functions
655
◇
Types & classes
86
↓ 119 callers
Method
iter
Returns an iterator to this stack that iterates through the items in LIFO order.
src/common/stack.rs:27
↓ 97 callers
Method
push
Adds the item to this stack.
src/common/stack.rs:12
↓ 54 callers
Method
len
(&self)
src/strings/tst.rs:18
↓ 43 callers
Method
left
(node: Option<NonNull<Self>>)
src/tree/binary/node.rs:77
↓ 42 callers
Function
sort
希尔排序 (Shell's Sort) 又称“缩小增量排序”(Diminishing Increment Sort), 是直接插入排序算法的一种更高效的改进版本。希尔排序是 非稳定排序算法。该方法因 D.L.Shell 于 1959 年提出而得名。
src/sort/shell.rs:7
↓ 40 callers
Method
is_some
(&self)
src/tree/binary/node.rs:223
↓ 39 callers
Method
put
Inserts the key-value pair into the symbol table, overwriting the old value with the new value if the key is already in the symbol table. If the value
src/strings/tst.rs:53
↓ 35 callers
Method
right
(node: Option<NonNull<Self>>)
src/tree/binary/node.rs:81
↓ 30 callers
Method
insert
(&mut self, v: T)
src/common/top_m.rs:19
↓ 30 callers
Method
is_red
(&self)
src/tree/binary/node.rs:211
↓ 28 callers
Method
is_none
(&self)
src/tree/binary/node.rs:227
↓ 27 callers
Method
clone
(&self)
src/math/sparse_vector.rs:126
↓ 26 callers
Method
enqueue
Adds the item to this queue
src/common/queue.rs:20
↓ 26 callers
Method
find
Returns the canonical element of the set containing element p
src/common/uf.rs:94
↓ 20 callers
Method
parent
(node: Option<NonNull<Self>>)
src/tree/binary/node.rs:85
↓ 19 callers
Method
set_color
(&mut self, v: Color)
src/tree/binary/node.rs:186
↓ 18 callers
Method
push_front
(&mut self, element: T)
src/ll/linked_list.rs:61
↓ 18 callers
Method
weight
(&self)
src/graph/shortest/directed_edge.rs:18
↓ 17 callers
Function
byte_at
(s: &str, d: usize)
src/common/util.rs:32
↓ 17 callers
Method
other
(&self, v: usize)
src/graph/mst/edge.rs:27
↓ 14 callers
Method
V
(&self)
src/graph/mst/ew_graph.rs:26
↓ 14 callers
Method
V
(&self)
src/graph/shortest/ew_digraph.rs:15
↓ 14 callers
Method
cmp
(&self, other: &Self)
src/graph/mst/edge.rs:52
↓ 14 callers
Method
dequeue
Removes and returns the item on this queue that was least recently added
src/common/queue.rs:25
↓ 14 callers
Method
either
(&self)
src/graph/mst/edge.rs:23
↓ 13 callers
Function
do_sort
(a: &mut [T], l: usize, u: usize, ws: &mut [T])
src/sort/merge.rs:109
↓ 13 callers
Method
get_key
(&self)
src/tree/binary/node.rs:285
↓ 13 callers
Method
to
(&self)
src/graph/shortest/directed_edge.rs:26
↓ 13 callers
Function
with
(f: F)
src/common/drop.rs:29
↓ 12 callers
Method
keys
Returns all keys in the symbol table as an Queue.
src/strings/tst.rs:32
↓ 12 callers
Method
pop
Removes and returns the item most recently added to this stack.
src/common/stack.rs:17
↓ 11 callers
Method
delete
Removes the key from the set if the key is present
src/strings/tries.rs:99
↓ 11 callers
Method
get
Returns the value associated with the given key.
src/strings/tst.rs:42
↓ 11 callers
Method
push_back
(&mut self, element: T)
src/ll/linked_list.rs:46
↓ 10 callers
Method
adj
(&self, v: usize)
src/graph/undirected/graph.rs:67
↓ 10 callers
Method
from
(&self)
src/graph/shortest/directed_edge.rs:22
↓ 9 callers
Method
V
(&self)
src/graph/undirected/graph.rs:50
↓ 9 callers
Function
create_digraph
(i: &str)
tests/test_directed_graph.rs:169
↓ 9 callers
Function
create_graph
(i: &str)
tests/test_shortest_paths.rs:204
↓ 9 callers
Method
reverse
反转链表
src/ll/linked_list.rs:109
↓ 9 callers
Method
set_right
(&mut self, node: Option<NonNull<Node<K, V>>>)
src/tree/binary/node.rs:148
↓ 8 callers
Method
get
Returns the ith coordinate of this vector
src/math/sparse_vector.rs:37
↓ 7 callers
Method
add_edge
(&mut self, v: usize, w: usize, weight: f32)
src/graph/shortest/ew_digraph.rs:23
↓ 7 callers
Method
adj
(&self, v: usize)
src/graph/directed/digraph.rs:28
↓ 7 callers
Method
adj
(&self, v: usize)
src/graph/shortest/ew_digraph.rs:30
↓ 7 callers
Function
create_graph
(i: &str)
tests/test_undirected_graph.rs:185
↓ 7 callers
Function
gen_random_data
(len: usize)
benches/sort.rs:231
↓ 7 callers
Method
get
count of Drop::drop called
src/common/drop.rs:24
↓ 7 callers
Method
is_empty
(&self)
src/strings/tst.rs:22
↓ 7 callers
Method
is_empty
(&self)
src/tree/binary/tree.rs:22
↓ 7 callers
Method
len
Returns the number of key-value pairs in this symbol table.
src/strings/tries.rs:65
↓ 7 callers
Method
len
(&self)
src/common/stack.rs:31
↓ 7 callers
Method
pop_front
(&mut self)
src/ll/linked_list.rs:75
↓ 7 callers
Method
set_left
(&mut self, node: Option<NonNull<Node<K, V>>>)
src/tree/binary/node.rs:136
↓ 7 callers
Method
union
Merges the set containing element p with the the set containing element q
src/common/uf.rs:100
↓ 6 callers
Method
compare
(&self, i: usize, j: usize)
src/common/priority_queue.rs:122
↓ 6 callers
Function
create
()
tests/test_sparse_vec.rs:57
↓ 6 callers
Method
edges
(&self)
src/graph/mst/kruskal_mst.rs:95
↓ 6 callers
Function
extract_words
(i: &str)
tests/test_strings.rs:371
↓ 6 callers
Function
find
# Safety This is highly unsafe, due to pointer
src/tree/binary/bst.rs:108
↓ 6 callers
Method
grandparent
(&self)
src/tree/binary/node.rs:268
↓ 6 callers
Method
len
number of jobs
src/graph/shortest/cpm.rs:35
↓ 6 callers
Method
mid
middle subtries
src/strings/tst.rs:268
↓ 6 callers
Method
sort
Rearranges the array of w-character strings in ascending order. `a` the array to be sorted `w` the number of characters per string
src/strings/lsd.rs:52
↓ 6 callers
Method
to_string
(&self)
src/graph/mst/edge.rs:60
↓ 5 callers
Method
adj
(&self, v: usize)
src/graph/mst/ew_graph.rs:41
↓ 5 callers
Method
color
(&self)
src/tree/binary/node.rs:207
↓ 5 callers
Function
find_min
# Safety This is highly unsafe, due to pointer
src/tree/binary/bst.rs:122
↓ 5 callers
Function
flip_colors
flip the colors of a node and its two children
src/tree/binary/rb2.rs:335
↓ 5 callers
Function
gen_asc_data
(len: usize)
benches/sort.rs:237
↓ 5 callers
Function
insert
(root: Option<NonNull<Node<K, V>>>, key: K, val: V)
src/tree/binary/rb.rs:141
↓ 5 callers
Method
into_iter
(self)
src/ll/linked_list.rs:123
↓ 5 callers
Method
is_empty
(&self)
src/graph/shortest/cpm.rs:39
↓ 5 callers
Method
left
left subtries
src/strings/tst.rs:263
↓ 5 callers
Method
next
(&mut self)
src/ll/linked_list.rs:132
↓ 5 callers
Method
path_to
Returns a shortest path from the source vertex s to vertex v
src/graph/shortest/acyclic_sp.rs:60
↓ 5 callers
Method
right
right subtries
src/strings/tst.rs:273
↓ 5 callers
Function
rotate_right
h x / \ / \ R(x) C => A R(h) / \ / \ A B B C */ m
src/tree/binary/rb2.rs:324
↓ 5 callers
Method
set_entry
(&mut self, (key, val): (K, Option<V>))
src/tree/binary/node.rs:177
↓ 5 callers
Method
set_size
(&mut self, size: usize)
src/tree/binary/tree.rs:18
↓ 5 callers
Function
shuffle
(data: &mut [T])
src/common/util.rs:4
↓ 5 callers
Method
size
(&self)
src/tree/binary/tree.rs:14
↓ 5 callers
Function
sort_dth
insertion sort a[lo..=hi], starting at d-th character lo & hi, is inclusive
src/sort/insert.rs:25
↓ 5 callers
Method
to_string
(&self)
src/common/uf.rs:225
↓ 5 callers
Method
to_string
(&self)
src/graph/shortest/directed_edge.rs:52
↓ 4 callers
Function
balance
restore red-black tree invariant
src/tree/binary/rb2.rs:343
↓ 4 callers
Function
byte_at_checked
(s: &str, d: usize)
src/common/util.rs:22
↓ 4 callers
Function
create_graph
(i: &str)
tests/test_graph_mst.rs:71
↓ 4 callers
Method
edges
Returns the edges in a minimum spanning tree (or forest)
src/graph/mst/prim_mst.rs:43
↓ 4 callers
Method
edges
(&self)
src/graph/mst/lazy_prim_mst.rs:35
↓ 4 callers
Function
extract_words
(i: &str)
benches/strings.rs:102
↓ 4 callers
Method
from
(nv: usize)
src/graph/directed/digraph.rs:47
↓ 4 callers
Function
gen_desc_data
(len: usize)
benches/sort.rs:241
↓ 4 callers
Function
gen_eq_data
(len: usize)
benches/sort.rs:247
↓ 4 callers
Function
gen_vec_data
()
tests/test_sort.rs:94
↓ 4 callers
Method
get_v
(&self)
src/graph/util/parser.rs:62
↓ 4 callers
Method
insert
(&mut self, key: K, val: V)
src/tree/binary/rb2.rs:125
↓ 4 callers
Method
keys_slice
for test
src/common/max_heap.rs:64
↓ 4 callers
Function
parent
(i: usize)
src/common/binary_tree.rs:19
↓ 4 callers
Function
parse
()
tests/test_graph_mst.rs:10
next →
1–100 of 655, ranked by callers