1 / 6

Reprezentarea grafurilor orientate

Reprezentarea grafurilor orientate. Graf orientat.

easter
Télécharger la présentation

Reprezentarea grafurilor orientate

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Reprezentarea grafurilor orientate

  2. Graf orientat Se numeste graf orientat o pereche ordonata de multimi G=(x,u) unde x este o multime finita si nevida de elemente numita multimea nodurilor sau a varfurilor,iar u este o multime formata din perechi ordonate din x numita multimea arcelor sau a muchiilor.

  3. Pentru reprezentarea grafurilor orientate se poate folosi:

  4. Vectorul de arce Pentru un graf cu n varfuri si m arce ,vectorul de arce are ca numar de componente valoarea m.Fiecare element al sau fiind un arc care va reprezenta extremitatea finala si cea initiala V={(1,2),(1,3),(2,3),(4,1),(4,2)} 1 2 4 3

  5. Matriceadrumurilor Este o matricepatraticaaleacareielementesunt date de relatia : d(I,j)={1,daca nu apartinedrumului de la i la j 0,daca apartinedrumului de la i la j 2 5 3 1 6 4

  6. Matricea de adiacenta Matrice de adiacenta este o matice a cu n linii si n coloane,in care elementele a[i][j] se definescastfel: a[i,j]={1,daca existaarcul (i,j) in multimea u 0,in cazcontrar 2 3 5 1 4

More Related