Skip to content

Commit eaa01b6

Browse files
committed
Fixing complexity in DFS and BFS
1 parent 6cdd9d5 commit eaa01b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

algorithm/graph_search/bfs/desc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"Construction of the failure function of the Aho-Corasick pattern matcher."
1111
],
1212
"Complexity": {
13-
"time": "worst $O(|E|)$",
13+
"time": "worst $O(|V|+|E|)$",
1414
"space": "worst $O(|V|)$"
1515
},
1616
"References": [

algorithm/graph_search/dfs/desc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"Finding biconnectivity in graphs."
1515
],
1616
"Complexity": {
17-
"time": "worst $O(|E|)$",
17+
"time": "worst $O(|V|+|E|)$",
1818
"space": "worst $O(|V|)$"
1919
},
2020
"References": [

0 commit comments

Comments
 (0)