Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 48882aa

Browse files
authored
adding few more algorithms
.
1 parent a95a291 commit 48882aa

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

‎README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,24 @@
44

55
This repo covers basic graph algorithms for directed and undirected graphs with/without weights on edges. Graph description is read from a file with ascii format.
66

7-
Base graph data structure is targeted for **sparse graphs** efficiency. For example, it maintains adjancy list and pointrs.
7+
Base graph data structure is targeted for **sparse graphs** efficiency. For example, it maintains adjancy list and pointrs. Here are big O time and space complexities.
8+
9+
10+
| | RAM | node-add | edge-add | node-remove | edge-remove | query |
11+
| --------------- |:---------:|:--------:|:--------:|:-----------:|:-----------:|:---------:|
12+
| Adjacency List | [n]+[e] | 1 | 1 | [n]+[e] | [e] | [e] |
13+
| Incident List | [n]+[e] | 1 | 1 | [e] | [e] | [e] |
14+
15+
Legend:
16+
* Two vertices are called adjacent if they are connected by an edge.
17+
* Two edges are called incident, if they share a vertex.
818

919
## Algorithms Covered
1020

1121
* DFS
22+
* Transpose
1223
* Topological Sort
24+
* Strongly Connected Components
1325
* Prim's Mimimal Spanning Tree
1426
* Kruskal's Mimimal Spanning Tree
1527
* Dijkstra's Single Source Shortest Path to All Nodes
@@ -87,5 +99,5 @@ n3 3 [n2 n3 1]
8799

88100
## Disclaimer
89101

90-
This is a quick and dirty code produced over a weekend. Main objective behind this repository is purely educational. It has quite a bit of room for improvement. Feel free to reach out if you spot weakness, bug, enancement or simply a suggestion.
102+
This is a quick and dirty code produced over weekends. Main objective behind this repository is purely educational. It has quite a bit of room for improvement. Feel free to reach out if you spot weakness, bug, enancement or simply a suggestion.
91103

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /