19.11.2014 Views

Logika dan Algoritma.pdf - iLab

Logika dan Algoritma.pdf - iLab

Logika dan Algoritma.pdf - iLab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GRAF TIDAK BERARAH<br />

Obyektif :<br />

4. Mengerti apa yang dimaksud dengan Graf tidak berarah<br />

5. Mengerti mengenai Graf Berlabel<br />

Graf Secara Formal<br />

Sebuah Graf G mengandung 2 himpunan :<br />

(1). Himp. V, yang elemennya disebut simpul<br />

→ Vertex / point / titik / node<br />

(2). Himp. E, yang merupakan pasangan tak terurut dari simpul-simpul,<br />

disebut ruas<br />

→ Edge / rusuk / sisi<br />

Sehingga sebuah graf dinotasikan sebagai G ( V, E )<br />

Contoh :<br />

G ( V, E )<br />

V = { A, B, C, D }<br />

E = { ( A, B ), ( B, C ), ( C, D ), ( D, A ), ( B, D ) }<br />

Secara Geometri :<br />

A<br />

e1<br />

e2<br />

e5<br />

B<br />

e3<br />

D<br />

C<br />

e4<br />

→ terdiri dari 4 simpul <strong>dan</strong> 5 ruas

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!