Jumat, 11 Juni 2010

URGENT POST!!!

| Jumat, 11 Juni 2010 | 3 komentar

alhamdulillahirabbil 'alamin...
akhirnya kami sampai sejauh ini, djikstra-djikstra!!! ternyata susah juga kalau dimasukin ke kodingan, pokoknya semangat deh...

void djikstra::algorithm()
{
initialize();
int count=0;
int i;
int u;
while(count
{
u=minimum();
set[++count]=u;
mark[u]=1;
for(i=1;i<=num_of_vertices;i++)
{
if(graph[u][i]>0)
{
if(mark[i]!=1)
{
if(pathestimate[i]>pathestimate[u]+graph[u][i])
{
pathestimate[i]=pathestimate[u]+graph[u][i];
predecessor[i]=u;
}
}
}
}
}


}


ps : posting buru-buru ini dimuat karena ternyata.......................

3 komentar:

Anonim mengatakan...

knp???

Vika F. Insanittaqwa mengatakan...

karena ternyata....................... APAPAPAPA

qonamii mengatakan...

apapapapapap??? :O:O:O

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Posting Komentar

 
© Copyright 2010. yourblogname.com . All rights reserved | yourblogname.com is proudly powered by Blogger.com | Template by o-om.com - zoomtemplate.com