首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

所有算法均用 Rust 实现

网络技术 423.29KB 16 需要积分: 1
立即下载

资源介绍:

项目结构 该项目组织如下: src/ my_algo_category/ mod.rs my_algorithm.rs some_other_algorithm.rs some_other_algo_category/ ... mod.rs包含导出: mod my_algorithm; pub use self::my_algorithm::my_algorithm; my_algorithm.rs包含您的算法和相关测试: pub fn my_algorithm() { // ... } #[cfg(test)] mod tests { #[test] fn my_test() { // ... } }
## Sort Algorithms ### [Bogo-sort](./bogo_sort.rs) ![alt text][bogo-image] From [Wikipedia][bogo-wiki]: In computer science, bogosort is a sorting algorithm based on the generate and test paradigm. The function successively generates permutations of its input until it finds one that is sorted. It is not considered useful for sorting, but may be used for educational purposes, to contrast it with more efficient algorithms. __Properties__ * Worst case performance (unbounded in randomized version) * Best case performance O(n) * Average case performance O((n+1)!) ### [Bubble](./bubble_sort.rs) ![alt text][bubble-image] From [Wikipedia][bubble-wiki]: Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted. __Properties__ * Worst case performance O(n^2) * Best case performance O(n) * Average case performance O(n^2) ###### View the algorithm in [action][bubble-toptal] ### [Cocktail-Shaker](./cocktail_shaker_sort.rs) ![alt text][shaker-image] From [Wikipedia][shaker-wiki]: Cocktail shaker sort, also known as bidirectional bubble sort, cocktail sort, shaker sort (which can also refer to a variant of selection sort), ripple sort, shuffle sort, or shuttle sort, is an extension of bubble sort. The algorithm extends bubble sort by operating in two directions. While it improves on bubble sort by more quickly moving items to the beginning of the list, it provides only marginal performance improvements. __Properties__ * Worst case performance O(n^2) * Best case performance O(n) * Average case performance O(n^2) ### [Comb-sort](./comb_sort.rs) ![comb sort][comb-sort] From [wikipedia][comb-sort-wiki]: Comb sort is a relatively simple sorting algorithm and improves on bubble sort in the same way that shell sort improves on insertion sort. The basic idea of comb sort is that the gap(distance from two compared elements) can be much more than 1. And the inner loop of bubble sort, which does actual `swap`, is modified such that the gap between swapped elements goes down in steps of a `shrink factor k: [n/k, n/k^2, ..., 1]`. And the gap is divided by the shrink factor in every loop, and the process repeats until the gap is 1. At this point, comb sort continues using a gap of 1 until the list is fully sorted. The final stage of the sort is thus equivalent to a bubble sort, but this time most turtles have been dealt with, so a bubble sort will be efficient. And the shrink factor has a great effect on the efficiency of comb sort and `k=1.3` has been suggested as an ideal value. __Properties__ * Worst case performance O(n^2) * Best case performance O(n log n) * Average case performance O(n^2/2^p) where `p` is the number of increments. ### [Counting](./counting_sort.rs) From [Wikipedia][counting-wiki]: In computer science, counting sort is an algorithm for sorting a collection of objects according to keys that are small integers; that is, it is an integer sorting algorithm. It operates by counting the number of objects that have each distinct key value, and using arithmetic on those counts to determine the positions of each key value in the output sequence. Its running time is linear in the number of items and the difference between the maximum and minimum key values, so it is only suitable for direct use in situations where the variation in keys is not significantly greater than the number of items. However, it is often used as a subroutine in another sorting algorithm, radix sort, that can handle larger keys more efficiently. __Properties__ * Worst case performance O(n+k) * Best case performance O(n+k) * Average case performance O(n+k), where n is the number of integers to sort and k is the difference between the largest and smallest integer in our list. ### [Insertion](./insertion_sort.rs) ![alt text][insertion-image] From [Wikipedia][insertion-wiki]: Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time. It is much less efficient on large lists than more advanced algorithms such as quicksort, heapsort, or merge sort. __Properties__ * Worst case performance O(n^2) * Best case performance O(n) * Average case performance O(n^2) ###### View the algorithm in [action][insertion-toptal] ### [Gnome](./gnome_sort.rs) ![alt text][gnome-image] From [Wikipedia][gnome-wiki]: The gnome sort is a sorting algorithm which is similar to insertion sort in that it works with one item at a time but gets the item to the proper place by a series of swaps, similar to a bubble sort. It is conceptually simple, requiring no nested loops. The average running time is O(n^2) but tends towards O(n) if the list is initially almost sorted __Properties__ * Worst case performance O(n^2) * Best case performance O(n) * Average case performance O(n^2) ### [Merge](./merge_sort.rs) ![alt text][merge-image] From [Wikipedia][merge-wiki]: In computer science, merge sort (also commonly spelled mergesort) is an efficient, general-purpose, comparison-based sorting algorithm. Most implementations produce a stable sort, which means that the implementation preserves the input order of equal elements in the sorted output. Mergesort is a divide and conquer algorithm that was invented by John von Neumann in 1945. __Properties__ * Worst case performance O(n log n) * Best case performance O(n log n) * Average case performance O(n log n) ###### View the algorithm in [action][merge-toptal] ### [Odd-even](./odd_even_sort.rs) ![alt text][odd-even-image] From [Wikipedia][odd-even-wiki]: In computing, an odd–even sort or odd–even transposition sort (also known as brick sort or parity sort) is a relatively simple sorting algorithm, developed originally for use on parallel processors with local interconnections. It is a comparison sort related to bubble sort, with which it shares many characteristics. It functions by comparing all odd/even indexed pairs of adjacent elements in the list and, if a pair is in the wrong order (the first is larger than the second) the elements are switched. The next step repeats this for even/odd indexed pairs (of adjacent elements). Then it alternates between odd/even and even/odd steps until the list is sorted. NOTE: The implementation is an adaptation of the algorithm for a single-processor machine, while the original algorithm was devised to be executed on many processors simultaneously. __Properties__ * Worst case performance O(n^2) * Best case performance O(n) * Average case performance O(n^2) ### [Pancake](./pancake_sort.rs) ![alt text][pancake-image] From [Wikipedia][pancake-wiki]: All sorting methods require pairs of elements to be compared. For the traditional sorting problem, the usual problem studied is to minimize the number of comparisons required to sort a list. The number of actual operations, such as swapping two elements, is then irrelevant. For pancake sorting problems, in contrast, the aim is to minimize the number of operations, where the only allowed operations are reversals of the elements of some prefix of the sequence. Now, the number of comparisons is irrelevant. ### [Quick](./quick_sort.rs) ![alt text][quick-image] From [Wikipedia][quick-wiki]: Quicksort (sometimes called partition-exchange sort) is an efficient sorting algorithm, serving as a systematic method for placing the elements of an array in order. __Properties__ * Worst case performance O(n^2) * Best case performance O(n log n) or O(n) with three-way partition * Average case performance O(n log n) ###### View the algorithm in [action][quick-toptal] ### [Radix](./radix_sort.rs) ![alt text][radix-image] From [Wikipedia][radix-wiki]: Radix sort is a non-comparative sorting algorithm. It avoids comparison by creating and distributing elements i

资源文件列表:

Rust-master.zip 大约有384个文件
  1. Rust-master/
  2. Rust-master/.gitconfig 33B
  3. Rust-master/.github/
  4. Rust-master/.github/CODEOWNERS 18B
  5. Rust-master/.github/dependabot.yml 233B
  6. Rust-master/.github/pull_request_template.md 1.47KB
  7. Rust-master/.github/workflows/
  8. Rust-master/.github/workflows/build.yml 595B
  9. Rust-master/.github/workflows/directory_workflow.yml 890B
  10. Rust-master/.github/workflows/scripts/
  11. Rust-master/.github/workflows/scripts/build_directory/
  12. Rust-master/.github/workflows/scripts/build_directory/Cargo.toml 184B
  13. Rust-master/.github/workflows/scripts/build_directory/src/
  14. Rust-master/.github/workflows/scripts/build_directory/src/lib.rs 3.96KB
  15. Rust-master/.github/workflows/scripts/build_directory/src/main.rs 504B
  16. Rust-master/.github/workflows/stale.yml 1.3KB
  17. Rust-master/.github/workflows/upload_coverage_report.yml 1.15KB
  18. Rust-master/.gitignore 67B
  19. Rust-master/.gitpod.Dockerfile 60B
  20. Rust-master/.gitpod.yml 125B
  21. Rust-master/CONTRIBUTING.md 866B
  22. Rust-master/Cargo.toml 8.08KB
  23. Rust-master/DIRECTORY.md 32.12KB
  24. Rust-master/LICENSE 1.05KB
  25. Rust-master/README.md 1.55KB
  26. Rust-master/git_hooks/
  27. Rust-master/git_hooks/pre-commit 21B
  28. Rust-master/src/
  29. Rust-master/src/backtracking/
  30. Rust-master/src/backtracking/all_combination_of_size_k.rs 1.46KB
  31. Rust-master/src/backtracking/graph_coloring.rs 12.51KB
  32. Rust-master/src/backtracking/hamiltonian_cycle.rs 10.51KB
  33. Rust-master/src/backtracking/knight_tour.rs 5.94KB
  34. Rust-master/src/backtracking/mod.rs 623B
  35. Rust-master/src/backtracking/n_queens.rs 6.25KB
  36. Rust-master/src/backtracking/parentheses_generator.rs 2.61KB
  37. Rust-master/src/backtracking/permutations.rs 2.2KB
  38. Rust-master/src/backtracking/rat_in_maze.rs 11.92KB
  39. Rust-master/src/backtracking/subset_sum.rs 2.23KB
  40. Rust-master/src/backtracking/sudoku.rs 5.2KB
  41. Rust-master/src/big_integer/
  42. Rust-master/src/big_integer/fast_factorial.rs 2.82KB
  43. Rust-master/src/big_integer/mod.rs 194B
  44. Rust-master/src/big_integer/multiply.rs 2.31KB
  45. Rust-master/src/big_integer/poly1305.rs 2.78KB
  46. Rust-master/src/bit_manipulation/
  47. Rust-master/src/bit_manipulation/counting_bits.rs 1.19KB
  48. Rust-master/src/bit_manipulation/highest_set_bit.rs 1.02KB
  49. Rust-master/src/bit_manipulation/mod.rs 199B
  50. Rust-master/src/bit_manipulation/sum_of_two_integers.rs 1.31KB
  51. Rust-master/src/ciphers/
  52. Rust-master/src/ciphers/README.md 4.42KB
  53. Rust-master/src/ciphers/aes.rs 27.5KB
  54. Rust-master/src/ciphers/another_rot13.rs 935B
  55. Rust-master/src/ciphers/baconian_cipher.rs 2.27KB
  56. Rust-master/src/ciphers/base64.rs 9.31KB
  57. Rust-master/src/ciphers/blake2b.rs 10.01KB
  58. Rust-master/src/ciphers/caesar.rs 4.11KB
  59. Rust-master/src/ciphers/chacha.rs 5.62KB
  60. Rust-master/src/ciphers/diffie_hellman.rs 14.73KB
  61. Rust-master/src/ciphers/hashing_traits.rs 3.16KB
  62. Rust-master/src/ciphers/kerninghan.rs 486B
  63. Rust-master/src/ciphers/mod.rs 1.28KB
  64. Rust-master/src/ciphers/morse_code.rs 5.98KB
  65. Rust-master/src/ciphers/polybius.rs 3.62KB
  66. Rust-master/src/ciphers/rail_fence.rs 1.17KB
  67. Rust-master/src/ciphers/rot13.rs 692B
  68. Rust-master/src/ciphers/salsa.rs 4.62KB
  69. Rust-master/src/ciphers/sha256.rs 11.26KB
  70. Rust-master/src/ciphers/sha3.rs 21.53KB
  71. Rust-master/src/ciphers/tea.rs 3.68KB
  72. Rust-master/src/ciphers/theoretical_rot13.rs 1012B
  73. Rust-master/src/ciphers/transposition.rs 8.76KB
  74. Rust-master/src/ciphers/vigenere.rs 2.23KB
  75. Rust-master/src/ciphers/xor.rs 1.43KB
  76. Rust-master/src/compression/
  77. Rust-master/src/compression/mod.rs 101B
  78. Rust-master/src/compression/run_length_encoding.rs 1.79KB
  79. Rust-master/src/conversions/
  80. Rust-master/src/conversions/binary_to_decimal.rs 2.9KB
  81. Rust-master/src/conversions/binary_to_hexadecimal.rs 2.52KB
  82. Rust-master/src/conversions/decimal_to_binary.rs 562B
  83. Rust-master/src/conversions/decimal_to_hexadecimal.rs 1.15KB
  84. Rust-master/src/conversions/hexadecimal_to_binary.rs 1.9KB
  85. Rust-master/src/conversions/hexadecimal_to_decimal.rs 1.84KB
  86. Rust-master/src/conversions/mod.rs 645B
  87. Rust-master/src/conversions/octal_to_binary.rs 1.44KB
  88. Rust-master/src/conversions/octal_to_decimal.rs 1.45KB
  89. Rust-master/src/data_structures/
  90. Rust-master/src/data_structures/README.md 3.38KB
  91. Rust-master/src/data_structures/avl_tree.rs 10.33KB
  92. Rust-master/src/data_structures/b_tree.rs 5.67KB
  93. Rust-master/src/data_structures/binary_search_tree.rs 10.38KB
  94. Rust-master/src/data_structures/fenwick_tree.rs 2KB
  95. Rust-master/src/data_structures/floyds_algorithm.rs 2.71KB
  96. Rust-master/src/data_structures/graph.rs 5.93KB
  97. Rust-master/src/data_structures/hash_table.rs 3.62KB
  98. Rust-master/src/data_structures/heap.rs 5.16KB
  99. Rust-master/src/data_structures/lazy_segment_tree.rs 10.8KB
  100. Rust-master/src/data_structures/linked_list.rs 14.69KB
  101. Rust-master/src/data_structures/mod.rs 1.35KB
  102. Rust-master/src/data_structures/postfix_evaluation.rs 2.46KB
  103. Rust-master/src/data_structures/probabilistic/
  104. Rust-master/src/data_structures/probabilistic/bloom_filter.rs 11.22KB
  105. Rust-master/src/data_structures/probabilistic/count_min_sketch.rs 9.68KB
  106. Rust-master/src/data_structures/probabilistic/mod.rs 48B
  107. Rust-master/src/data_structures/queue.rs 2.16KB
  108. Rust-master/src/data_structures/range_minimum_query.rs 4.34KB
  109. Rust-master/src/data_structures/rb_tree.rs 19.35KB
  110. Rust-master/src/data_structures/segment_tree.rs 7.39KB
  111. Rust-master/src/data_structures/segment_tree_recursive.rs 7.54KB
  112. Rust-master/src/data_structures/stack_using_singly_linked_list.rs 7.35KB
  113. Rust-master/src/data_structures/treap.rs 9.4KB
  114. Rust-master/src/data_structures/trie.rs 2.22KB
  115. Rust-master/src/data_structures/union_find.rs 7.61KB
  116. Rust-master/src/data_structures/veb_tree.rs 10.05KB
  117. Rust-master/src/dynamic_programming/
  118. Rust-master/src/dynamic_programming/coin_change.rs 4.12KB
  119. Rust-master/src/dynamic_programming/egg_dropping.rs 2.11KB
  120. Rust-master/src/dynamic_programming/fibonacci.rs 14.84KB
  121. Rust-master/src/dynamic_programming/fractional_knapsack.rs 2.79KB
  122. Rust-master/src/dynamic_programming/is_subsequence.rs 895B
  123. Rust-master/src/dynamic_programming/knapsack.rs 12.13KB
  124. Rust-master/src/dynamic_programming/longest_common_subsequence.rs 4.76KB
  125. Rust-master/src/dynamic_programming/longest_common_substring.rs 1.7KB
  126. Rust-master/src/dynamic_programming/longest_continuous_increasing_subsequence.rs 2.11KB
  127. Rust-master/src/dynamic_programming/longest_increasing_subsequence.rs 3.33KB
  128. Rust-master/src/dynamic_programming/matrix_chain_multiply.rs 3.22KB
  129. Rust-master/src/dynamic_programming/maximal_square.rs 1.64KB
  130. Rust-master/src/dynamic_programming/maximum_subarray.rs 1.47KB
  131. Rust-master/src/dynamic_programming/minimum_cost_path.rs 2.09KB
  132. Rust-master/src/dynamic_programming/mod.rs 1.72KB
  133. Rust-master/src/dynamic_programming/rod_cutting.rs 2.42KB
  134. Rust-master/src/dynamic_programming/snail.rs 3.68KB
  135. Rust-master/src/dynamic_programming/subset_generation.rs 2.74KB
  136. Rust-master/src/dynamic_programming/trapped_rainwater.rs 3.56KB
  137. Rust-master/src/dynamic_programming/word_break.rs 2.2KB
  138. Rust-master/src/general/
  139. Rust-master/src/general/convex_hull.rs 4.82KB
  140. Rust-master/src/general/fisher_yates_shuffle.rs 622B
  141. Rust-master/src/general/genetic.rs 17.15KB
  142. Rust-master/src/general/hanoi.rs 594B
  143. Rust-master/src/general/huffman_encoding.rs 6.91KB
  144. Rust-master/src/general/kadane_algorithm.rs 2.17KB
  145. Rust-master/src/general/kmeans.rs 6.53KB
  146. Rust-master/src/general/mex.rs 2.2KB
  147. Rust-master/src/general/mod.rs 765B
  148. Rust-master/src/general/permutations/
  149. Rust-master/src/general/permutations/heap.rs 2.13KB
  150. Rust-master/src/general/permutations/mod.rs 3KB
  151. Rust-master/src/general/permutations/naive.rs 4.88KB
  152. Rust-master/src/general/permutations/steinhaus_johnson_trotter.rs 1.85KB
  153. Rust-master/src/general/two_sum.rs 2.05KB
  154. Rust-master/src/geometry/
  155. Rust-master/src/geometry/closest_points.rs 6.65KB
  156. Rust-master/src/geometry/graham_scan.rs 6.73KB
  157. Rust-master/src/geometry/jarvis_scan.rs 6.09KB
  158. Rust-master/src/geometry/mod.rs 419B
  159. Rust-master/src/geometry/point.rs 858B
  160. Rust-master/src/geometry/polygon_points.rs 1.77KB
  161. Rust-master/src/geometry/ramer_douglas_peucker.rs 3.33KB
  162. Rust-master/src/geometry/segment.rs 6.35KB
  163. Rust-master/src/graph/
  164. Rust-master/src/graph/astar.rs 7.97KB
  165. Rust-master/src/graph/bellman_ford.rs 9.02KB
  166. Rust-master/src/graph/bipartite_matching.rs 7.87KB
  167. Rust-master/src/graph/breadth_first_search.rs 4.82KB
  168. Rust-master/src/graph/centroid_decomposition.rs 5.42KB
  169. Rust-master/src/graph/decremental_connectivity.rs 8.55KB
  170. Rust-master/src/graph/depth_first_search.rs 4.81KB
  171. Rust-master/src/graph/depth_first_search_tic_tac_toe.rs 12.83KB
  172. Rust-master/src/graph/detect_cycle.rs 9.94KB
  173. Rust-master/src/graph/dijkstra.rs 5.08KB
  174. Rust-master/src/graph/dinic_maxflow.rs 6.12KB
  175. Rust-master/src/graph/disjoint_set_union.rs 2.55KB
  176. Rust-master/src/graph/eulerian_path.rs 5.5KB
  177. Rust-master/src/graph/floyd_warshall.rs 6.17KB
  178. Rust-master/src/graph/ford_fulkerson.rs 8.9KB
  179. Rust-master/src/graph/graph_enumeration.rs 1.98KB
  180. Rust-master/src/graph/heavy_light_decomposition.rs 6.17KB
  181. Rust-master/src/graph/kosaraju.rs 4.09KB
  182. Rust-master/src/graph/lee_breadth_first_search.rs 3.39KB
  183. Rust-master/src/graph/lowest_common_ancestor.rs 6.98KB
  184. Rust-master/src/graph/minimum_spanning_tree.rs 3.71KB
  185. Rust-master/src/graph/mod.rs 1.95KB
  186. Rust-master/src/graph/prim.rs 5.6KB
  187. Rust-master/src/graph/prufer_code.rs 3.87KB
  188. Rust-master/src/graph/strongly_connected_components.rs 4.88KB
  189. Rust-master/src/graph/tarjans_ssc.rs 4.25KB
  190. Rust-master/src/graph/topological_sort.rs 4.49KB
  191. Rust-master/src/graph/two_satisfiability.rs 3.65KB
  192. Rust-master/src/lib.rs 799B
  193. Rust-master/src/machine_learning/
  194. Rust-master/src/machine_learning/cholesky.rs 3.04KB
  195. Rust-master/src/machine_learning/k_means.rs 2.38KB
  196. Rust-master/src/machine_learning/linear_regression.rs 1.45KB
  197. Rust-master/src/machine_learning/loss_function/
  198. Rust-master/src/machine_learning/loss_function/average_margin_ranking_loss.rs 3.94KB
  199. Rust-master/src/machine_learning/loss_function/hinge_loss.rs 1.04KB
  200. Rust-master/src/machine_learning/loss_function/huber_loss.rs 1.97KB
  201. Rust-master/src/machine_learning/loss_function/kl_divergence_loss.rs 1.24KB
  202. Rust-master/src/machine_learning/loss_function/mean_absolute_error_loss.rs 1.07KB
  203. Rust-master/src/machine_learning/loss_function/mean_squared_error_loss.rs 1.02KB
  204. Rust-master/src/machine_learning/loss_function/mod.rs 526B
  205. Rust-master/src/machine_learning/loss_function/negative_log_likelihood.rs 3.79KB
  206. Rust-master/src/machine_learning/mod.rs 590B
  207. Rust-master/src/machine_learning/optimization/
  208. Rust-master/src/machine_learning/optimization/adam.rs 9.67KB
  209. Rust-master/src/machine_learning/optimization/gradient_descent.rs 2.8KB
  210. Rust-master/src/machine_learning/optimization/mod.rs 109B
  211. Rust-master/src/math/
  212. Rust-master/src/math/abs.rs 780B
  213. Rust-master/src/math/aliquot_sum.rs 1.41KB
  214. Rust-master/src/math/amicable_numbers.rs 1.97KB
  215. Rust-master/src/math/area_of_polygon.rs 2.23KB
  216. Rust-master/src/math/area_under_curve.rs 1.22KB
  217. Rust-master/src/math/armstrong_number.rs 976B
  218. Rust-master/src/math/average.rs 3.95KB
  219. Rust-master/src/math/baby_step_giant_step.rs 2.5KB
  220. Rust-master/src/math/bell_numbers.rs 3.79KB
  221. Rust-master/src/math/binary_exponentiation.rs 1.59KB
  222. Rust-master/src/math/binomial_coefficient.rs 1.66KB
  223. Rust-master/src/math/catalan_numbers.rs 1.69KB
  224. Rust-master/src/math/ceil.rs 1.24KB
  225. Rust-master/src/math/chinese_remainder_theorem.rs 951B
  226. Rust-master/src/math/collatz_sequence.rs 768B
  227. Rust-master/src/math/combinations.rs 1.16KB
  228. Rust-master/src/math/cross_entropy_loss.rs 1.51KB
  229. Rust-master/src/math/decimal_to_fraction.rs 1.93KB
  230. Rust-master/src/math/doomsday.rs 952B
  231. Rust-master/src/math/elliptic_curve.rs 11.88KB
  232. Rust-master/src/math/euclidean_distance.rs 1.16KB
  233. Rust-master/src/math/exponential_linear_unit.rs 1.88KB
  234. Rust-master/src/math/extended_euclidean_algorithm.rs 1.15KB
  235. Rust-master/src/math/factorial.rs 1.86KB
  236. Rust-master/src/math/factors.rs 1.1KB
  237. Rust-master/src/math/fast_fourier_transform.rs 6.45KB
  238. Rust-master/src/math/fast_power.rs 727B
  239. Rust-master/src/math/faster_perfect_numbers.rs 1.23KB
  240. Rust-master/src/math/field.rs 8.34KB
  241. Rust-master/src/math/frizzy_number.rs 1.73KB
  242. Rust-master/src/math/gaussian_elimination.rs 2.32KB
  243. Rust-master/src/math/gaussian_error_linear_unit.rs 1.95KB
  244. Rust-master/src/math/gcd_of_n_numbers.rs 657B
  245. Rust-master/src/math/geometric_series.rs 1.42KB
  246. Rust-master/src/math/greatest_common_divisor.rs 4.36KB
  247. Rust-master/src/math/huber_loss.rs 1.9KB
  248. Rust-master/src/math/infix_to_postfix.rs 3.04KB
  249. Rust-master/src/math/interest.rs 1.99KB
  250. Rust-master/src/math/interpolation.rs 3.03KB
  251. Rust-master/src/math/interquartile_range.rs 2.61KB
  252. Rust-master/src/math/karatsuba_multiplication.rs 1.77KB
  253. Rust-master/src/math/lcm_of_n_numbers.rs 671B
  254. Rust-master/src/math/leaky_relu.rs 1.42KB
  255. Rust-master/src/math/least_square_approx.rs 3.15KB
  256. Rust-master/src/math/linear_sieve.rs 4.02KB
  257. Rust-master/src/math/logarithm.rs 2.14KB
  258. Rust-master/src/math/lucas_series.rs 1.37KB
  259. Rust-master/src/math/matrix_ops.rs 13.09KB
  260. Rust-master/src/math/mersenne_primes.rs 928B
  261. Rust-master/src/math/miller_rabin.rs 8.5KB
  262. Rust-master/src/math/mod.rs 6.37KB
  263. Rust-master/src/math/modular_exponential.rs 4.48KB
  264. Rust-master/src/math/newton_raphson.rs 626B
  265. Rust-master/src/math/nthprime.rs 1.26KB
  266. Rust-master/src/math/pascal_triangle.rs 1.24KB
  267. Rust-master/src/math/perfect_cube.rs 1.89KB
  268. Rust-master/src/math/perfect_numbers.rs 1.1KB
  269. Rust-master/src/math/perfect_square.rs 1.44KB
  270. Rust-master/src/math/pollard_rho.rs 8.6KB
  271. Rust-master/src/math/prime_check.rs 696B
  272. Rust-master/src/math/prime_factors.rs 869B
  273. Rust-master/src/math/prime_numbers.rs 886B
  274. Rust-master/src/math/quadratic_residue.rs 7.64KB
  275. Rust-master/src/math/random.rs 4.25KB
  276. Rust-master/src/math/relu.rs 1.09KB
  277. Rust-master/src/math/sieve_of_eratosthenes.rs 4.02KB
  278. Rust-master/src/math/sigmoid.rs 1.08KB
  279. Rust-master/src/math/signum.rs 788B
  280. Rust-master/src/math/simpsons_integration.rs 3.67KB
  281. Rust-master/src/math/softmax.rs 1.47KB
  282. Rust-master/src/math/sprague_grundy_theorem.rs 2.24KB
  283. Rust-master/src/math/square_pyramidal_numbers.rs 463B
  284. Rust-master/src/math/square_root.rs 1.63KB
  285. Rust-master/src/math/sum_of_digits.rs 3.06KB
  286. Rust-master/src/math/sum_of_geometric_progression.rs 1.18KB
  287. Rust-master/src/math/sum_of_harmonic_series.rs 1.32KB
  288. Rust-master/src/math/sylvester_sequence.rs 875B
  289. Rust-master/src/math/tanh.rs 1.12KB
  290. Rust-master/src/math/trapezoidal_integration.rs 1.3KB
  291. Rust-master/src/math/trial_division.rs 1.34KB
  292. Rust-master/src/math/trig_functions.rs 7.8KB
  293. Rust-master/src/math/vector_cross_product.rs 3.13KB
  294. Rust-master/src/math/zellers_congruence_algorithm.rs 1.44KB
  295. Rust-master/src/navigation/
  296. Rust-master/src/navigation/bearing.rs 884B
  297. Rust-master/src/navigation/haversine.rs 839B
  298. Rust-master/src/navigation/mod.rs 97B
  299. Rust-master/src/number_theory/
  300. Rust-master/src/number_theory/compute_totient.rs 1.25KB
  301. Rust-master/src/number_theory/kth_factor.rs 797B
  302. Rust-master/src/number_theory/mod.rs 124B
  303. Rust-master/src/searching/
  304. Rust-master/src/searching/README.md 3.99KB
  305. Rust-master/src/searching/binary_search.rs 5.64KB
  306. Rust-master/src/searching/binary_search_recursive.rs 4.34KB
  307. Rust-master/src/searching/exponential_search.rs 1.63KB
  308. Rust-master/src/searching/fibonacci_search.rs 1.89KB
  309. Rust-master/src/searching/interpolation_search.rs 1.63KB
  310. Rust-master/src/searching/jump_search.rs 1.37KB
  311. Rust-master/src/searching/kth_smallest.rs 1.8KB
  312. Rust-master/src/searching/kth_smallest_heap.rs 2.52KB
  313. Rust-master/src/searching/linear_search.rs 1.06KB
  314. Rust-master/src/searching/mod.rs 1.29KB
  315. Rust-master/src/searching/moore_voting.rs 1.94KB
  316. Rust-master/src/searching/quick_select.rs 1.47KB
  317. Rust-master/src/searching/saddleback_search.rs 3.07KB
  318. Rust-master/src/searching/ternary_search.rs 2.19KB
  319. Rust-master/src/searching/ternary_search_min_max.rs 2.64KB
  320. Rust-master/src/searching/ternary_search_min_max_recursive.rs 2.92KB
  321. Rust-master/src/searching/ternary_search_recursive.rs 2.26KB
  322. Rust-master/src/sorting/
  323. Rust-master/src/sorting/README.md 15.85KB
  324. Rust-master/src/sorting/bead_sort.rs 1.35KB
  325. Rust-master/src/sorting/binary_insertion_sort.rs 1.23KB
  326. Rust-master/src/sorting/bingo_sort.rs 2.53KB
  327. Rust-master/src/sorting/bitonic_sort.rs 1.64KB
  328. Rust-master/src/sorting/bogo_sort.rs 1.65KB
  329. Rust-master/src/sorting/bubble_sort.rs 1.17KB
  330. Rust-master/src/sorting/bucket_sort.rs 2.16KB
  331. Rust-master/src/sorting/cocktail_shaker_sort.rs 1.65KB
  332. Rust-master/src/sorting/comb_sort.rs 1.29KB
  333. Rust-master/src/sorting/counting_sort.rs 2.53KB
  334. Rust-master/src/sorting/cycle_sort.rs 1.78KB
  335. Rust-master/src/sorting/dutch_national_flag_sort.rs 1.78KB
  336. Rust-master/src/sorting/exchange_sort.rs 1.23KB
  337. Rust-master/src/sorting/gnome_sort.rs 1.6KB
  338. Rust-master/src/sorting/heap_sort.rs 3.52KB
  339. Rust-master/src/sorting/insertion_sort.rs 1.92KB
  340. Rust-master/src/sorting/intro_sort.rs 2.61KB
  341. Rust-master/src/sorting/merge_sort.rs 5.29KB
  342. Rust-master/src/sorting/mod.rs 3.33KB
  343. Rust-master/src/sorting/odd_even_sort.rs 1.51KB
  344. Rust-master/src/sorting/pancake_sort.rs 1.29KB
  345. Rust-master/src/sorting/patience_sort.rs 2.12KB
  346. Rust-master/src/sorting/pigeonhole_sort.rs 1.27KB
  347. Rust-master/src/sorting/quick_sort.rs 3.45KB
  348. Rust-master/src/sorting/quick_sort_3_ways.rs 3.99KB
  349. Rust-master/src/sorting/radix_sort.rs 1.99KB
  350. Rust-master/src/sorting/selection_sort.rs 1.28KB
  351. Rust-master/src/sorting/shell_sort.rs 1.85KB
  352. Rust-master/src/sorting/sleep_sort.rs 1.45KB
  353. Rust-master/src/sorting/sort_utils.rs 1.36KB
  354. Rust-master/src/sorting/stooge_sort.rs 1.45KB
  355. Rust-master/src/sorting/tim_sort.rs 4.9KB
  356. Rust-master/src/sorting/tree_sort.rs 2.95KB
  357. Rust-master/src/sorting/wave_sort.rs 1.81KB
  358. Rust-master/src/sorting/wiggle_sort.rs 2.1KB
  359. Rust-master/src/string/
  360. Rust-master/src/string/README.md 3.53KB
  361. Rust-master/src/string/aho_corasick.rs 4.02KB
  362. Rust-master/src/string/anagram.rs 710B
  363. Rust-master/src/string/autocomplete_using_trie.rs 2.73KB
  364. Rust-master/src/string/boyer_moore_search.rs 1.98KB
  365. Rust-master/src/string/burrows_wheeler_transform.rs 3.21KB
  366. Rust-master/src/string/duval_algorithm.rs 1.75KB
  367. Rust-master/src/string/hamming_distance.rs 1.15KB
  368. Rust-master/src/string/isomorphism.rs 2.54KB
  369. Rust-master/src/string/jaro_winkler_distance.rs 2.79KB
  370. Rust-master/src/string/knuth_morris_pratt.rs 2.07KB
  371. Rust-master/src/string/levenshtein_distance.rs 6.39KB
  372. Rust-master/src/string/lipogram.rs 3.21KB
  373. Rust-master/src/string/manacher.rs 3.5KB
  374. Rust-master/src/string/mod.rs 1.72KB
  375. Rust-master/src/string/palindrome.rs 553B
  376. Rust-master/src/string/pangram.rs 2.6KB
  377. Rust-master/src/string/rabin_karp.rs 3.22KB
  378. Rust-master/src/string/reverse.rs 418B
  379. Rust-master/src/string/run_length_encoding.rs 2.42KB
  380. Rust-master/src/string/shortest_palindrome.rs 2.29KB
  381. Rust-master/src/string/suffix_array.rs 2.56KB
  382. Rust-master/src/string/suffix_array_manber_myers.rs 2.94KB
  383. Rust-master/src/string/suffix_tree.rs 4.31KB
  384. Rust-master/src/string/z_algorithm.rs 3.05KB
0评论
提交 加载更多评论
其他资源 Delphi IDE 包提供即时代码分析和 linting
将SonarDelphi(一款具有 100 多种代码分析规则的 Delphi 静态分析器)引入 Delphi IDE 动态分析一个或多个文件,缩短反馈循环,这样您就可以在签入之前发现并解决问题 检测到的问题及其描述和理由以内联方式显示在 IDE 中 通过右键单击即可自动快速修复常见问题 两种分析模式: 独立 - 完全在本地运行分析 无需外部服务器或其他工具 应用常用的 Delphi 规则的默认规则集,或从 SonarDelphi 规则的完整列表中选择所需的编码样式 已连接 - 连接到 SonarQube 实例,允许 从服务器配置的质量配置文件中获取活动规则和配置 抑制过去分析中已解决的问题 服务器 SonarDelphi 版本的使用情况 支持读取标准sonar-project.properties文件,提供额外配置 Visual Studio Code 配套扩展,可用于在 VS Code 本身中运行分析并显示结果
Delphi IDE 包提供即时代码分析和 linting
用 VisualBasic 编写的知识图谱数据库引擎
在脚本中导入R#包,然后创建一个空的图形数据库: import graphQL kb = MsgFile::open()
用 VisualBasic 编写的知识图谱数据库引擎 用 VisualBasic 编写的知识图谱数据库引擎 用 VisualBasic 编写的知识图谱数据库引擎
Ruby on Rails
什么是 Rails? Rails 是一个 Web 应用程序框架,它包含根据 模型-视图-控制器 (MVC) 模式创建数据库支持的 Web 应用程序所需的一切。 理解 MVC 模式是理解 Rails 的关键。MVC 将应用程序分为三层:模型、视图和控制器,每层都有特定的职责。 模型层 模型层代表领域模型(例如帐户、产品、人员、帖子等),并封装特定于应用程序的业务逻辑。在 Rails 中,数据库支持的模型类派生自 ActiveRecord::Base。Active Record允许您将数据库行中的数据显示为对象,并使用业务逻辑方法修饰这些数据对象。虽然大多数 Rails 模型都由数据库支持,但模型也可以是普通的 Ruby 类,或者是实现Active Model模块提供的一组接口的 Ruby 类。
Go 是一种开源编程语言,可以轻松构建简单、可靠、高效的软件
下载并安装 二进制发行版 官方二进制发行版可在https://go.dev/dl/获得。 下载二进制版本后,请访问https://go.dev/doc/install 获取安装说明。 从源安装 如果您的操作系统和架构组合没有可用的二进制分发版,请访问 https://go.dev/doc/install/source 获取源安装说明。
Fortran标准库实用程序
Fortran 标准库的目标是实现以下总体范围: 实用程序(容器、字符串、文件、操作系统/环境集成、单元测试和断言、日志记录......) 算法(搜索和排序,合并......) 数学(线性代数、稀疏矩阵、特殊函数、快速傅里叶变换、随机数、统计学、常微分方程、数值积分、最优化……)
用于为 MATLAB simulink C 调用程序生成 PWM 信号的 C 代码
用于为 MATLAB simulink C 调用程序生成 PWM 信号的 C 代码
Python 代码可在 NKE PROVOR 浮标报告轮廓后自动更新其目标表面时间
Python 代码用于在 NKE PROVOR 浮标报告配置文件后自动更新其目标表面时间。 脚本update-params.py是此功能的主力,通过 cron 作业 github 工作流程(.github/workflows/check-floats.yaml)每天运行。 工作流程的基本步骤: 登录 RUDICS ftp 服务器 循环遍历浮点目录,并针对每个浮点数: 获取最新的配置文件时间,并检查以下条件: 过去 1 天内是否有个人资料? 确保 RUDICS_cmd.txt 文件不存在 是否有与最后一个配置文件相关的命令响应?([date]_[time]_[imei]_RUDICS_cmd.txt) 如果以上所有条件均满足,则: 根据先前的命令文件或用户定义的列表选择新的表面处理时间 创建 RUDICS_cmd.txt 文件并上传到 ftp 记录更改并保存包含日期和 imei 信息的命令文件
利用Matlab仿真,分析了果频优化算法(FOA)对无线传感器网络覆盖率的效果
基于果蝇优化算法的无线传感器网络覆盖研究 利用Matlab仿真,分析了果蝇优化算法(FOA)对无线传感器网络覆盖率的效果,并针对传感器网络的生命周期对果蝇优化算法进行了改进。 main.m主函数,包含了参数,计算,画图等,computeSmell为计算smell值的函数