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
new
(m: usize)
src/common/top_m.rs:12
Method
new
(v: usize, w: usize, weight: f32)
src/graph/mst/edge.rs:12
Method
new
(g: &dyn IEWGraph)
src/graph/mst/kruskal_mst.rs:14
Method
new
Compute a minimum spanning tree (or forest) of an edge-weighted graph
src/graph/mst/prim_mst.rs:24
Method
new
(g: &dyn IEWGraph)
src/graph/mst/lazy_prim_mst.rs:16
Method
new
(g: &dyn IGraph)
src/graph/undirected/cc.rs:29
Method
new
(g: &dyn IGraph)
src/graph/undirected/cycle.rs:17
Method
new
(g: &dyn IGraph)
src/graph/undirected/bipartite.rs:29
Method
new
(graph: &dyn IGraph, s: usize)
src/graph/undirected/dfs2.rs:16
Method
new
(g: &dyn IGraph, s: usize)
src/graph/undirected/dfs.rs:23
Method
new
Computes the transitive closure of the digraph
src/graph/directed/transitive_closure.rs:20
Method
new
(nv: usize)
src/graph/directed/order.rs:38
Method
new
(nv: usize)
src/graph/directed/cycle.rs:71
Method
new
(graph: &dyn IGraph)
src/graph/directed/scc.rs:19
Method
new
(g: &dyn IEWDigraph, s: usize)
src/graph/shortest/dijkstra_sp.rs:22
Method
new
Computes a shortest paths tree from s to every other vertex in the edge-weighted digraph G.
src/graph/shortest/bellman_ford_sp.rs:26
Method
new
(v: usize, w: usize, weight: f32)
src/graph/shortest/directed_edge.rs:11
Method
new
(g: &dyn IEWDigraph, s: usize)
src/graph/shortest/acyclic_sp.rs:24
Method
new
build graph specified in i using delim to separate vertex names
src/graph/util/symbol_graph.rs:70
Method
new
(g: &dyn IGraph, s: usize)
src/graph/util/paths.rs:88
Method
new
Initializes a d-dimensional zero vector.
src/math/sparse_vector.rs:22
Method
new
( key: K, val: Option<V>, left: Option<NonNull<Node<K, V>>>, right: Option<Non
src/tree/binary/node.rs:32
Method
new_entry
(key: K, val: V)
src/tree/binary/node.rs:59
Method
new_key
(key: K)
src/tree/binary/node.rs:55
Method
new_leaf
(key: K, val: Option<V>, parent: Option<NonNull<Node<K, V>>>)
src/tree/binary/node.rs:51
Method
new_max_pq
The MaxPQ represents a priority queue of generic keys. It supports the usual insert and delete-the-max operations, along with methods for peeking at t
src/common/priority_queue.rs:46
Method
new_min_pq
The MinPQ represents a priority queue of generic keys. It supports the usual insert and delete-the-minimum operations, along with methods for peeking
src/common/priority_queue.rs:36
Method
new_multi
find vertices in G that are reachable from sources
src/graph/directed/search.rs:18
Method
new_parent
create NodeQuery from node parent
src/tree/binary/node.rs:132
Method
new_single
find vertices in G that are reachable from s
src/graph/directed/search.rs:9
Function
non_recursive_dfs
()
tests/test_undirected_graph.rs:61
Function
normal
()
tests/test_linked_list.rs:4
Method
number_of_self_loops
count self-loops
src/graph/undirected/graph.rs:93
Method
out_degree
(&self, v: usize)
src/graph/shortest/ew_digraph.rs:44
Function
palindrome
()
tests/test_strings.rs:362
Function
parse
()
tests/test_shortest_paths.rs:18
Function
parse_float
(i: &str)
src/graph/util/parser.rs:88
Function
parser
()
tests/test_undirected_graph.rs:11
Function
parser
()
tests/test_directed_graph.rs:13
Method
path
Returns a shortest path from vertex s to vertex t
src/graph/shortest/dijkstra_sp.rs:147
Method
path_to
(&self, v: usize)
src/graph/util/paths.rs:44
Method
peek
MinPQ: Returns a smallest key on this priority queue MaxPQ: Returns a largest key on this priority queue
src/common/priority_queue.rs:76
Method
peek
Returns the item least recently added to this queue
src/common/queue.rs:30
Method
peek_index
MinPQ: Returns an index associated with a minimum key MaxPQ: Returns an index associated with a maximum key
src/common/priority_queue.rs:166
Function
plus
()
tests/test_sparse_vec.rs:32
Function
pop
()
tests/test_common_heap.rs:36
Method
pop
(&mut self)
src/common/max_heap.rs:30
Function
postorder_iter
()
tests/test_tree_traverse.rs:132
Function
postorder_recursive
()
tests/test_tree_traverse.rs:124
Function
preorder_iter
()
tests/test_tree_traverse.rs:59
Function
preorder_morris
()
tests/test_tree_traverse.rs:72
Function
preorder_recursive
()
tests/test_tree_traverse.rs:85
Function
push_front
()
tests/test_linked_list.rs:17
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/tries.rs:88
Function
queue
()
tests/test_common.rs:11
Function
quf
(b: &mut Bencher)
benches/common.rs:20
Function
quick3str
()
tests/test_strings.rs:55
Function
quick3way
()
tests/test_strings.rs:69
Function
quick_find_uf
()
tests/test_common.rs:159
Method
radix
Returns the number of characters in this alphabet (the radix)
src/strings/alphabet.rs:132
Function
rb_tree_height
()
tests/test_rb_tree.rs:4
Method
reachable
Is there a directed path from vertex v to vertex w in the digraph?
src/graph/directed/transitive_closure.rs:29
Method
recursive
# Safety This is highly unsafe, due to pointer 时间复杂度 O(n), 空间复杂度 O(n)
src/tree/binary/traverse.rs:201
Method
release
(node: NonNull<Node<K, V>>)
src/tree/binary/node.rs:63
Function
repeat_insert
()
tests/test_rb_tree2.rs:45
Function
reverse
()
tests/test_linked_list.rs:34
Method
reverse
directed graph op
src/graph/undirected/mod.rs:47
Function
scale
()
tests/test_sparse_vec.rs:22
Function
scc
()
tests/test_directed_graph.rs:131
Function
search
(arr: &[K], k: K)
src/search/binary.rs:5
Function
search
()
tests/test_directed_graph.rs:91
Function
search2
(pat: &str, txt: &str)
src/strings/brute_force.rs:27
Function
set
()
tests/test_common_heap.rs:46
Method
sibling
(node: Option<NonNull<Self>>)
src/tree/binary/node.rs:89
Method
size
Returns the number of vertices in the connected component containing vertex *v*.
src/graph/undirected/cc.rs:64
Method
size_hint
(&self)
src/ll/linked_list.rs:147
Function
small_merge_v1
(b: &mut Bencher)
benches/sort.rs:11
Function
small_merge_v2
(b: &mut Bencher)
benches/sort.rs:55
Function
small_merge_v3
(b: &mut Bencher)
benches/sort.rs:99
Function
small_quick
(b: &mut Bencher)
benches/sort.rs:143
Function
small_selection_sort
(b: &mut Bencher)
benches/sort.rs:196
Function
small_selection_tree_selection
(b: &mut Bencher)
benches/sort.rs:204
Function
sort
选择排序 从待排序的数据元素中选出最小(或最大)的一个元素, 然后放到已排序的序列的末尾,直到全部待排序的数据元素的个数为零。 选择排序是不稳定的排序方法
src/sort/selection.rs:8
Function
sort
快速排序 C. A. R. Hoare在1960年提出。 它的基本思想是:通过一趟排序将要排序的数据分割成独立的两部分, 其中一部分的所有数据都比另外一部分的所有数据都要小,然后再按 此方法对这两部分数据分别进行快速排序,整个排序过程可以递归进行, 以此达到整个数据变成有序序列
src/sort/quick.rs:9
Function
sort
(a: &mut [T])
src/sort/floyd.rs:11
Function
sort
(a: &mut [T])
src/sort/insert.rs:7
Function
sort
(a: &[T])
src/sort/merge.rs:55
Function
sort
冒泡排序(Bubble Sort) 它重复地走访过要排序的元素列,依次比较两个相邻的元素,如果顺 序(如从大到小、首字母从Z到A)错误就把他们交换过来。走访元素 的工作是重复地进行直到没有相邻元素需要交换,也就是说该元素列 已经排序完成。 这个算法的名字由来是因为越小的元素会经由交换慢慢“浮”到
src/sort/bubble.rs:13
Method
sort
Rearranges the array of strings in ascending order.
src/strings/quick3.rs:54
Method
sort
Rearranges the array of extended ASCII strings in ascending order.
src/strings/msd.rs:90
Function
sort_cocktail
鸡尾酒排序 (Cock-tail sort) 每次扫描可以同时查找最小值和最大值,将最小值放到开头, 最大值放到末尾
src/sort/selection.rs:28
Method
sort_i32
(a: &mut [i32])
src/strings/lsd.rs:85
Function
sort_i32_LSD_radix
(b: &mut Bencher)
benches/strings.rs:40
Function
sort_i32_std_Vec
(b: &mut Bencher)
benches/strings.rs:22
Function
sort_str_LSD_radix
(b: &mut Bencher)
benches/strings.rs:30
Function
sort_str_MSD_radix
(b: &mut Bencher)
benches/strings.rs:48
Function
sort_str_quick3strings
(b: &mut Bencher)
benches/strings.rs:57
Function
sort_str_std_Vec
(b: &mut Bencher)
benches/strings.rs:13
Function
sorted_data
()
tests/test_strings.rs:84
Function
sqrt
()
tests/test_math.rs:4
← previous
next →
501–600 of 655, ranked by callers