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.
229
+
-A\* search algorithm, CCSP#2.2.5:A single-pair shortest path algorithm. This is a variant of Dijkstra's algorithm using heuristics to try to speed up the search.
230
230
- 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.
- Breadth-first search (BFS), CLRS#22.2, CCSP#4.3.1: [c++](cpp-algorithm/src/graph), [java](java-algorithm/src/main/java/com/example/algorithm/graph), [python(test)](python-algorithm/algorithm/graph/test) | A search algorithm that traverses a graph layer by layer. Check the shortest path and compute the distance from the source vertex to all other vertices.
253
+
- Breadth-first search (BFS), CLRS#22.2, CCSP#2.2.4, CCSP#4.3.1: [c++](cpp-algorithm/src/graph), [java](java-algorithm/src/main/java/com/example/algorithm/graph), [python(test)](python-algorithm/algorithm/graph/test) | A search algorithm that traverses a graph layer by layer. Check the shortest path and compute the distance from the source vertex to all other vertices.
254
254
255
255
```txt
256
256
algorithm BFS(G, source):
@@ -275,7 +275,7 @@ algorithm BFS(G, source):
275
275
u.color = BLACK
276
276
```
277
277
278
-
- Depth-first search (DFS), CLRS#22.3: [c++](cpp-algorithm/src/graph), [java](java-algorithm/src/main/java/com/example/algorithm/graph) | A search algorithm that traverses a graph by exploring as far as possible along each branch before backtracking. Check to exists cycle in a graph.
278
+
- Depth-first search (DFS), CLRS#22.3, CCSP#2.2.3: [c++](cpp-algorithm/src/graph), [java](java-algorithm/src/main/java/com/example/algorithm/graph) | A search algorithm that traverses a graph by exploring as far as possible along each branch before backtracking. Check to exists cycle in a graph.
279
279
280
280
```txt
281
281
algorithm DFS(G):
@@ -821,7 +821,7 @@ Set<Integer> set = Sets.newTreeSet();
821
821
822
822
**Examples**
823
823
824
-
-Fibonacci number: [c++](cpp-algorithm/src/dp) |Fibonacci sequence is a sequence of numbers where each number is the sum of the two preceding numbers. Fibonacci number is $n$th number in the sequence. TheFibonacci sequence is defined as follows:
824
+
-Fibonacci number, CCSP#1.1: [c++](cpp-algorithm/src/dp),[python](python-algorithm/algorithm/dp) |Fibonacci sequence is a sequence of numbers where each number is the sum of the two preceding numbers. Fibonacci number is $n$th number in the sequence. TheFibonacci sequence is defined as follows:
825
825
- $F_0=0$
826
826
- $F_1=1$
827
827
- $F_n=F_{n-1} +F_{n-2}$ (for $n >1$)
@@ -1051,9 +1051,9 @@ Collections.binarySearch(arrayList, 3); // for list
1051
1051
1052
1052
**Examples**
1053
1053
1054
+
-DNA search (Search a codon(combinations of three nucleotides) in a gene), CCSP#2.1: [python](python-algorithm/algorithm/search)(`linear_contains`, `binary_contains`) |Search a codon(combinations of three nucleotides) in a gene using linear search and binary search.
1054
1055
-Find k-th smallest/largest element in an array, EPI#11.8: [c++](cpp-algorithm/src/search)(`FindKthSmallestElement`, `FindKthLargestElement`) |Find the k-th smallest/largest element in an array using the quickselect algorithm (`QuickSelectAlgorithm`).
1055
1056
-Find the minimum and maximum elements in an array, EPI#11.7: [c++](cpp-algorithm/src/search)(`FindMinMax`)
1056
-
-Search a codon(combinations of three nucleotides) in a gene, CCSP#2.1: [python](python-algorithm/algorithm/search)(`linear_contains`, `binary_contains`) |Search a codon(combinations of three nucleotides) in a gene using linear search and binary search.
1057
1057
-Search an element in generic list, CCSP#2.1: [python](python-algorithm/algorithm/search)(`generic_linear_contains`, `generic_linear_contains`) |Search an element in generic list using linear search and binary search.
1058
1058
-Search a sorted array for entry equal to its index, EPI#11.2: [c++](cpp-algorithm/src/search)(`SearchEntryEqualToItsIndex`)
1059
1059
-Search a sorted array for the first greater than a key: [c++](cpp-algorithm/src/search)(`SearchFirstGreaterThanKey`)
@@ -1249,6 +1249,7 @@ var str = collection.stream()
1249
1249
1250
1250
**Examples**
1251
1251
1252
+
- Bit compression, CCSP#1.2: [python](python-algorithm/algorithm/string) | Compress a string using bit manipulation.
1252
1253
- Convert string, EPI#6.1: [c++](cpp-algorithm/src/string)(`IntToString`, `StringToInt`) | Convert integer to string and vice versa.
1253
1254
- IP address validation, EPI#6.9: [c++](cpp-algorithm/src/string) | Validate IPv4 address that is in the form of _x.x.x.x_ where _x_ is a number between 0 and 255.
1254
1255
- Look and say problem, EPI#6.7: [c++](cpp-algorithm/src/string)
0 commit comments