Skip to content

Commit a8c6987

Browse files
authored
Update basic_concepts.md
1 parent 4f4d066 commit a8c6987

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

notes/basic_concepts.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,7 @@ A **data structure** organizes and stores data in a way that allows efficient ac
1717
5. A **tree** resembles a family tree, starting from one ancestor (the root) and branching out into multiple descendants (nodes), each of which can have their own children. Formally, trees are hierarchical structures organized across various levels. They’re excellent for showing hierarchical relationships, such as organizing files on your computer or visualizing company structures.
1818
6. Consider a **graph** like a network of cities connected by roads. Each city represents a node, and the roads connecting them are edges, which can either be one-way (directed) or two-way (undirected). Graphs effectively illustrate complex relationships and networks, such as social media connections, website link structures, or even mapping transportation routes.
1919

20-
```mermaid
21-
graph TD
22-
DS["data structures"] --> PR[primitive]
23-
DS --> NP["non-primitive"]
24-
PR --> I[int]
25-
PR --> F[float]
26-
PR --> C[char]
27-
PR --> P[pointer]
28-
NP --> A[arrays]
29-
NP --> L[lists]
30-
NP --> FI[files]
31-
L --> LI[linear]
32-
L --> NL["non-linear"]
33-
LI --> S[stack]
34-
LI --> Q[queue]
35-
NL --> G[graph]
36-
NL --> T[tree]
37-
```
20+
![image](https://github.com/user-attachments/assets/f1962de7-aa28-4348-9933-07e49c737cd9)
3821

3922
### Algorithms
4023

0 commit comments

Comments
 (0)