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
Method
calc
(&self, stake: f32)
src/graph/shortest/arbitrage.rs:47
Function
cc
()
tests/test_undirected_graph.rs:117
Method
check
(&self, g: &dyn IEWGraph)
src/graph/mst/kruskal_mst.rs:44
Method
check
(&self, g: &dyn IEWGraph)
src/graph/mst/prim_mst.rs:83
Method
check
(&self, g: &dyn IEWGraph)
src/graph/mst/lazy_prim_mst.rs:79
Method
check
check that pre() and post() are consistent with pre[v] and post[v]
src/graph/directed/order.rs:84
Method
check
(&self)
src/graph/directed/cycle.rs:110
Method
check
(&self, g: &dyn IEWDigraph, s: usize)
src/graph/shortest/dijkstra_sp.rs:89
Method
check
check optimality conditions: either (i) there exists a negative cycle reachable from s or (ii) for all edges e = v->w: distTo[w] <= distTo
src/graph/shortest/bellman_ford_sp.rs:109
Method
child_count
(&self)
src/tree/binary/node.rs:219
Method
children_count
直接子节点个数,不包括孙子...
src/tree/binary/node.rs:70
Method
cmp
(&self, other: &Self)
src/graph/shortest/directed_edge.rs:44
Method
color
Returns the side of the bipartite that vertex v is on.
src/graph/undirected/bipartite.rs:52
Method
compute
(alphabet: &Alphabet, s: &str)
src/strings/count.rs:8
Method
connected
are v and w connected?
src/graph/undirected/cc.rs:48
Method
contains
Does this symbol table contain the given key?
src/strings/tries.rs:75
Method
contains
Returns true if the argument is a character in this alphabet
src/strings/alphabet.rs:127
Function
count
()
tests/test_alphabet.rs:25
Method
count
number of connected components
src/graph/undirected/cc.rs:53
Method
count
how many vertices are connected to s? if (search.count() != G.V()) Not connected
src/graph/undirected/dfs.rs:41
Method
count
(&self)
src/graph/directed/scc.rs:44
Function
cpm
()
tests/test_shortest_paths.rs:135
Function
cycle
()
tests/test_undirected_graph.rs:130
Function
cycle
()
tests/test_directed_graph.rs:102
Function
cycle
()
tests/test_shortest_paths.rs:46
Method
cycle
Returns a cycle in the graph G.
src/graph/undirected/cycle.rs:41
Method
default
()
src/strings/tst.rs:227
Method
default
()
src/strings/tries.rs:281
Method
default
()
src/ll/linked_list.rs:167
Method
default
()
src/common/stack.rs:41
Method
default
()
src/common/queue.rs:51
Method
default
()
src/tree/binary/tree.rs:28
Method
degree
(&self, v: usize)
src/graph/mst/ew_graph.rs:67
Function
degree_of_separation
()
tests/test_undirected_graph.rs:161
Function
delete
()
tests/test_rb_tree2.rs:85
Method
delete
(&mut self, key: &K)
src/tree/binary/bst.rs:36
Function
delete_binary_search_tree
()
tests/test_bst_tree.rs:60
Function
delete_max
()
tests/test_rb_tree2.rs:72
Function
delete_min
()
tests/test_rb_tree2.rs:59
Function
delete_right_left_deviation
()
tests/test_bst_tree.rs:98
Method
dequeue
MinPQ: Removes and returns a smallest key on this priority queue MaxPQ: Removes and returns a largest key on this priority queue
src/common/priority_queue.rs:89
Function
dfs
()
tests/test_undirected_graph.rs:52
Function
dfs
()
tests/test_directed_graph.rs:22
Function
dfs
()
tests/test_shortest_paths.rs:38
Method
dfs
run DFS in digraph G from vertex v and compute preorder/postorder
src/graph/directed/order.rs:51
Method
dfs
(&mut self, graph: &dyn IGraph, v: usize)
src/graph/directed/cycle.rs:80
Method
dfs_ewd
run DFS in edge-weighted digraph G from vertex v and compute preorder/postorder
src/graph/directed/order.rs:67
Function
dfs_paths
()
tests/test_undirected_graph.rs:69
Function
dfs_paths
()
tests/test_directed_graph.rs:29
Method
dimension
Returns the dimension of this vector.
src/math/sparse_vector.rs:47
Method
dist
Returns the length of a shortest path from vertex s to vertex t
src/graph/shortest/dijkstra_sp.rs:157
Method
dist_to
Returns the length of a shortest path from the source vertex s to vertex v
src/graph/shortest/acyclic_sp.rs:50
Method
dist_to
(&self, v: usize)
src/graph/util/paths.rs:122
Method
do_sort
3-way string quicksort a[lo..hi] starting at d-th character
src/strings/quick3.rs:67
Method
do_sort
sort from a[lo] to a[hi], starting at the d-th character
src/strings/msd.rs:99
Function
dot
()
tests/test_sparse_vec.rs:7
Method
drop
(&mut self)
src/strings/tst.rs:233
Method
drop
(&mut self)
src/strings/tries.rs:297
Method
drop
(&mut self)
src/ll/linked_list.rs:177
Method
drop
(&mut self)
src/common/drop.rs:17
Method
drop
(&mut self)
src/tree/binary/tree.rs:37
Function
drop_clear
()
tests/test_rb_tree2.rs:124
Function
drop_clear
()
tests/test_bst_tree.rs:125
Function
drop_clear
()
tests/test_linked_list.rs:63
Function
drop_clear_with_reverse
()
tests/test_linked_list.rs:77
Function
drop_with_delete
()
tests/test_rb_tree2.rs:137
Function
drop_with_delete
()
tests/test_bst_tree.rs:138
Function
drop_with_pop
()
tests/test_linked_list.rs:92
Method
edges
(&self)
src/graph/mst/ew_graph.rs:45
Function
empty_tree
()
tests/test_tree_traverse.rs:29
Method
enqueue
Adds a new key to this priority queue
src/common/priority_queue.rs:81
Method
eq
(&self, other: &Self)
src/graph/mst/edge.rs:45
Method
eq
(&self, other: &Self)
src/graph/shortest/directed_edge.rs:38
Function
eq_data_merge_v1
(b: &mut Bencher)
benches/sort.rs:46
Function
eq_data_merge_v2
(b: &mut Bencher)
benches/sort.rs:90
Function
eq_data_merge_v3
(b: &mut Bencher)
benches/sort.rs:134
Function
eq_data_quick
(b: &mut Bencher)
benches/sort.rs:187
Function
fib_cache_result
(b: &mut Bencher)
benches/dp.rs:29
Function
fib_cache_result
(n: usize)
src/dp/fib.rs:19
Function
fib_cache_result
()
tests/test_dp.rs:44
Function
fib_cache_result_c
(b: &mut Bencher)
benches/dp.rs:44
Function
fib_cache_result_c
cpp/fib.c:5
Function
fib_classic_iteration_for
(b: &mut Bencher)
benches/dp.rs:39
Function
fib_classic_iteration_for
(n: usize)
src/dp/fib.rs:61
Function
fib_classic_iteration_for
()
tests/test_dp.rs:60
Function
fib_classic_iteration_for_c
(b: &mut Bencher)
benches/dp.rs:49
Function
fib_classic_iteration_for_c
cpp/fib.c:14
Function
fib_classic_iteration_for_c
()
tests/test_dp.rs:76
Function
fib_classic_iteration_loop
(b: &mut Bencher)
benches/dp.rs:34
Function
fib_classic_iteration_loop
(n: usize)
src/dp/fib.rs:36
Function
fib_classic_iteration_loop
()
tests/test_dp.rs:52
Function
fib_classic_recursive
(b: &mut Bencher)
benches/dp.rs:24
Function
fib_classic_recursive
(n: usize)
src/dp/fib.rs:7
Function
fib_classic_recursive
()
tests/test_dp.rs:36
Function
fib_classic_recursive_c
()
tests/test_dp.rs:68
Function
find_kth2tail
()
tests/test_linked_list.rs:48
Method
finish_time
(&self)
src/graph/shortest/cpm.rs:47
Method
from
(pat: &str)
src/strings/kmp.rs:54
Method
from
(nv: usize)
src/graph/mst/ew_graph.rs:73
Method
from
(nv: usize)
src/graph/undirected/graph.rs:110
← previous
next →
301–400 of 655, ranked by callers