You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-A\* search algorithm:A single-pair shortest path algorithm. This is a variant of Dijkstra's algorithm using heuristics to try to speed up the search.
190
-
- Bellman-Ford algorithm, CLRS#24.1: [c++](cpp-algorithm/src/graph), [java](java-algorithm/src/main/java/com/example/algorithm/graph) | A single source shortest path algorithm that can handle negative edge weights. It finds the shortest path from a source vertex to all other vertices in a weighted graph.
227
+
- Bellman-Ford algorithm, CLRS#24.1: [c++](cpp-algorithm/src/graph), [java](java-algorithm/src/main/java/com/example/algorithm/graph) | A single source the shortest path algorithm that can handle negative edge weights. It finds the shortest path from a source vertex to all other vertices in a weighted graph.
191
228
192
229
```txt
193
230
algorithm BellmanFord(G, source):
@@ -260,7 +297,7 @@ algorithm DFS-VISIT(G, u):
260
297
u.finished = time
261
298
```
262
299
263
-
- Dijkstra's algorithm, CLRS#24.3, CCSP#4.5.1: [c++](cpp-algorithm/src/graph), [python](python-algorithm/algorithm/graph/test)(test), [java](java-algorithm/src/main/java/com/example/algorithm/graph) |A single source the shortest path algorithm that handle non-negative edge weights. Itfind the shortest path between two vertices in a graph.
300
+
- Dijkstra's algorithm, CLRS#24.3, CCSP#4.5.1: [c++](cpp-algorithm/src/graph), [python](python-algorithm/algorithm/graph/test)(test), [java](java-algorithm/src/main/java/com/example/algorithm/graph) |A single source the shortest path algorithm that handle non-negative edge weights. Itfinds the shortest path between two vertices in a graph.
264
301
265
302
```txt
266
303
algorithm Dijkstra(G, source):
@@ -342,7 +379,7 @@ algorithm Prim(G, root):
342
379
```
343
380
344
381
-Push-relabel algorithm, CLRS#26.4
345
-
-Viterbi algorithm:A shortest stochastic path algorithm. It solves with additional probabilistic weights on each node.
382
+
-Viterbi algorithm:Shortest stochastic path algorithm. It solves with additional probabilistic weights on each node.
346
383
347
384
**Examples**
348
385
@@ -413,19 +450,62 @@ var set = new HashSet<Integer>();
@@ -434,11 +514,11 @@ int[] result = map.entrySet().stream()
434
514
-Anonymous words constructible: [c++](cpp-algorithm/src/hash_table)(`IsWordConstructibleFromMagazine`) |Checkif a letter can be written using the words in a magazine.
435
515
-Collatz conjecture, EPI#12.11: [c++](cpp-algorithm/src/hash_table)(`FindNumbersSatisfyingCollatzConjecture`) |Find the numbers satisfying the Collatz conjecture.
436
516
-Find anagrams: [c++](cpp-algorithm/src/hash_table)(`FindAnagramMappings`) |Given an array of strings, group anagrams together.
437
-
-Find smallest subarray covering all values, EPI#12.6: [c++](cpp-algorithm/src/hash_table)(`FindSmallestSubarrayCoveringSubset`) |Find the smallest subarray that covers all the elements in a set.
438
-
-Find smallest subarray sequentially covering all values, EPI#12.7: [c++](cpp-algorithm/src/hash_table)(`FindSmallestSubarraySequentiallyCoveringSubset`) |Find the smallest subarray that sequentially covers all the elements in a set.
-Findthe smallest subarray covering all values, EPI#12.6: [c++](cpp-algorithm/src/hash_table)(`FindSmallestSubarrayCoveringSubset`) |Find the smallest subarray that covers all the elements in a set.
518
+
-Findthe smallest subarray sequentially covering all values, EPI#12.7: [c++](cpp-algorithm/src/hash_table)(`FindSmallestSubarraySequentiallyCoveringSubset`) |Find the smallest subarray that sequentially covers all the elements in a set.
-Nearest repeated entry, EPI#12.5: [c++](cpp-algorithm/src/hash_table)(`FindNearestRepeatedEntry`) |Find the nearest repeated entry in an array of strings.
441
-
-Optimized lowest common ancestor, EPI#12.4: [c++](cpp-algorithm/src/hash_table)(`FindOptimizedLowestCommonAncestor`) |Find the lowest common ancestor of two nodes in a binary tree using a hash table. This traverses together until node1 and node2 meet.
521
+
-Optimizedthe lowest common ancestor, EPI#12.4: [c++](cpp-algorithm/src/hash_table)(`FindOptimizedLowestCommonAncestor`) |Find the lowest common ancestor of two nodes in a binary tree using a hash table. This traverses together until node1 and node2 meet.
442
522
-Palindromic permutation, EPI#12.1: [c++](cpp-algorithm/src/hash_table)(`IsPalindromePermutation`) |Given a string, determine if a permutation of the string could form a palindrome.
443
523
444
524
[:arrow_up_small: back to toc](#table-of-contents)
@@ -472,6 +552,10 @@ var queue = new PriorityQueue<Integer>();
472
552
var queue =newPriorityQueue<Integer>(Collections.reverseOrder());
-Greatest common divisor (GCD), CLRS#31.2: [python](python-algorithm/algorithm/math), [java](java-algorithm/src/main/java/com/example/algorithm/math) |Find the greatest common divisor of two numbers.
781
879
-Integer factorization: [c++](cpp-algorithm/src/math), [java](java-algorithm/src/main/java/com/example/algorithm/math) |Integer factorization is the process of determining which prime numbers divide a given positive integer.
782
880
-Least common multiple (LCM): [python](python-algorithm/algorithm/math), [java](java-algorithm/src/main/java/com/example/algorithm/math) |Find the least common multiple of two numbers.
783
-
-Miller-Rabin primality test, , CLRS#31.8: [c++](cpp-algorithm/src/math) |Miller-Rabin primality test is a mathematical algorithm that finds whether a given number is prime.
881
+
-Miller-Rabin primality test, CLRS#31.8: [c++](cpp-algorithm/src/math) |Miller-Rabin primality test is a mathematical algorithm that finds whether a given number is prime.
784
882
-Permutation: [c++](cpp-algorithm/src/math)(`Permutation`) |Find the permutation of a set of items.
785
883
-Permutation, EPI#5.10: [c++](cpp-algorithm/src/math)(`ApplyPermutationWithAdditionalSpace`, `ApplyPermutationBySwap`) |Permute the elements of an array
0 commit comments