Postingan

program pencarian lokasi dengan DFS dan BFS menggunakan Python

Gambar
Source Code DFS dan BFS peta = {'A':set(['B','C','D','F']),          'B':set(['E','C']),          'C':set(['A']),          'D':set(['A','B']),          'E':set(['C']),          'F':set(['A'])} def bfs(graph,start,end):     queue=[[start]]     visited=set()     while queue:         rute=queue.pop(0)         state=rute[-1]         if state==end:             return rute         elif state not in visited:             for cabang in graph.get(state,[]):                 newrute=list(rute)                 newrute.append(cabang)                 queue.append(newrute...

membuat Source code data diri menggunakan HTML

Gambar
TUGAS 1 Buat tampilan seperti berikut, data disesuaikan dengan data diri masing-masing. HASIL TUGAS 1 TUGAS 1 PEMROGRAMAN INTERNET Source Code <html> <head> <title>Ratih Biodata</title> </head> <body bgcolor="grey" background="f.jpg"/> <center> <a href="http://dinus.ac.id" target="_blank"> <img height="100px" width="100px" src="k.jpg" /> </a> </center> <hr/> <h2> <center> <font face="vivaldi" color="white">Biodata</font> </center> </h2> <hr/> <pre> <center> <font color="white"> <b>Nama</b> : <i>Ratih Diah Ayuningtyas</i> <b>Alamat</b> : <i>Jl. Sadewa 1 No.1</i> <b>Kota</b> : <i>Semarang</i> <b>Email</b> : <i>111201408...