You are on page 1of 36

APLIKASI GRAPH

Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
http://graphtheorygroup.com/

Fenomena
Real

Model
Matematika
Model
Deterministik
Model
Stokastik
Model Kontinyu
Model Data Diskrit
Model Kontinyu
Model Data Diskrit
MATH MODELING
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
The Bridges of Konigsberg, Germany
Leonhard Euler, Swiss Math, 1736
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
The Bridges of Konigsberg
Problem
C
A
B
D
C
A
B
D
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
What is a Graph?
Many real-world situations can be
described using a diagram consisting of a
set of points together with lines joining
some pairs of these points.

Points Lines
people joining pairs of friends
cities roads joining pairs of cities
computers connections between pairs of computers

Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Social Network (Facebook)
Joko
Andi
Effie
Santo
Wayan
Mario
Karso
Hanis
A Simple Graph
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
A Forest Ecosystem: Food Chain
Anml 1 Anml 2
Anml 4
Anml 6
Anml 5
Anml 9
Anml 3
Anml 10
Anml 11
Anml 12
Anml 8
Anml 7
A Digraph
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Chemical Compounds
Alkane CnH2n+2
A Multigraph
Hydrogen
Carbon
Benzene
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Time Table for Exam
Guru 1
Guru 2
Std 1
Std 3
Std 2
A Bipartite Graph
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
The Travelling Salesman
Given: A traveller wants the shortest path through all cities.
Question: What route should he/she take?

12
19
22
35
10
13
20
12
51
15
16
32
20
42
15
28
G
F
E
D
C
B
A
A Labelled, Weighted Graph
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
The Travelling Salesman
Given: A traveller wants the shortest path through all cities.
Question: What route should he/she take?

12
19
22
35
10
13
20
11
51
15
16
32
20
42
15
28
G
F
E
D
C
B
A
CBAFEDG = 113
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
The Travelling Salesman
Given: A traveller wants the shortest path through all cities.
Question: What route should he/she take?

12
19
22
35
10
13
20
11
51
15
16
32
20
42
15
28
G
F
E
D
C
B
A
CBAFEDG = 113
AGFEDCB = 85
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
The Travelling Salesman
Given: A traveller wants the shortest path through all cities.
Question: What route should he/she take?

12
19
22
35
10
13
20
11
51
15
16
32
20
42
15
28
G
F
E
D
C
B
A
CBAFEDG = 113
AGFEDCB = 85
BCDGAEF = 84
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Apartment Design
1-exterior, 2-hall, 3-livingroom, 4-balcony,
5-corridor, 6-bedroom, 7-bathroom, 8-study,
9-kitchen, 10-dryingplace.
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Pertanyaan yang muncul:
1. Apakah semua jalan terjangkau dari jalan mana saja?
2. Berapa jarak terjauh dari jalan tertentu ke jalan tertentu?
3. Dari jalan apa ke jalan apa jarak terjauh itu?
4. Dimana potensi kelancaran dan kemacetan lalu lintas terjadi
Map Kota
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Jl. Langsep
Jl. Srikoyo
Jl. Apel
Jl. Duku
Jl. Durian
Jl. Mundu
Jl. Semangka
Jl. Nanas
Jl. Rambutan
Jl. Nangka
Representasi Grafnya
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Chip Design
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
City Map
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Four Colour Theorem
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Representasi Graph
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Representasi Graph
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Hanya dibutuhkan 3 warna
Bandingkan Map Jember
Vertex Colouring of Graphs
Assign colours to the
vertices of a graph so
that no two adjacent
vertices bear the
same colour. Find
(G), the fewest
colours possible for
assignment.
G
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
DOMINATING SET
Ajasensi Matrik
MAP OF EAST JAVA
GRAPH REPRESENTATION
Example of Dominating set in East Java
figure 1
8 ) ( ' G
So, from figure 1 east java have 10 district
District Dominated
Sumenep Pamekasan
Sampang Bangkalan
Gresik Surabaya, Lamongan and Tuban
Ngawi Bojonegoro, Nganjuk and Madiun
Jombang Mojokerto, Kediri and Malang
Pasuruan Sidoarjo and Probolinggo
Situbondo Bondowoso
Jember Lumajang and Banyuwangi
Trenggalek Ponorogo and Tulungagung
Blitar Wlingi
8
8 ) ( ' G
Minimal Independent Dominating set In east Java
figure 2
Computer Network
A Simple Graph
How to ensure connectivity?
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)



Network Topologies
(a) ring
(b) bus
(d) star (c) hierarchical
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Large networks often contain segments of
star, ring, hierarchical, and bus topologies.
star
ring
bus
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
WWW (2012)
Graph Theory Prof. Drs. Dafik, M.Sc, Ph.D. (FKIP UNIVERSITAS JEMBER)
Gunakan Graf dalam menentukan jumlah hari yang
dibutuhkan untuk penyelesaian rumah?
Kode Jenis Pekerjaan Jumlah
Hari
Prasy
arat
A Mempersiapkan rancangan akhir tanah dan bangunan 3 -
B Penggalian dan pemasangan pondasi 5 A
C Pemasangan kerangka dan penutupan struktur utama 12 B
D Pemasangan pipa 5 C
E Pemasangan kabel 3 C
F Pemsangan instalasi pendingin dan pemanas 7 E
G Penyekatan dan penembokan dinding 9 D,F
H Pemasangan papan, hiasan dan pengecatan luar 15 C
I Penyelesaian dan pengecatan bagian dalam rumah 7 G
J Pemasangan kramik 3 I
K Pembuatan taman 4 H
Rencana Pembangunan Rumah

You might also like