Skip to content

Commit

Permalink
vault backup: 2025-03-03 09:51:30
Browse files Browse the repository at this point in the history
  • Loading branch information
AglaiaNorza committed Mar 3, 2025
1 parent f1b24b7 commit 0a4e3a2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions progettazione di algoritmi/1 - grafi.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,7 @@ Dato un grafo di $n$ nodi, si costruisce una matrice binaria $n\times n$ con:
> ![[graph-1.png|center|200]]
>
> Si rappresenta così:
> $$ \begin{bmatrix} 0 & 0 & 1 & 0 & 0 & 1 \\
> 0 & 0 & 0 & 0 & 0 & 1 \\
> 1 & 0 & 0 & 0 & 1 & 1 \\
> 0 & 0 & 0 & 0 & 1 & 0 \\
> 0 & 0 & 1 & 1 & 0 & 1 \\
> 1 & 1 & 1 & 0 & 1 & 0 \end{bmatrix} $$
> $$ \begin{bmatrix} 0 & 0 & 1 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 & 0 & 1 \\ 1 & 0 & 0 & 0 & 1 & 1 \\ 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 1 & 1 & 0 & 1 \\ 1 & 1 & 1 & 0 & 1 & 0 \end{bmatrix} $$
>
> (si nota che, poiché è un grafo indiretto <small>(quindi ogni arco entrante è anche uscente)</small>, la rappresentazione è **simmetrica rispetto alla diagonale** della matrice)
Expand Down

0 comments on commit 0a4e3a2

Please sign in to comment.