Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Algoritmi e strutture dati > cappi e grafo orientato
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
cappi e grafo orientato

Ciao a tutti sto facendo il progetto edilizia e sto pensando alla struttura dati per gestire le strade.
Io pensavo a un grafo orientato per poter poi utilizzare l'algoritmo di Ford (e simili) per calcolare il cammino minimo.
La mia domanda è questa: Se nel grafo orientato ci sono dei cappi come faccio ad utilizzare un algoritmo come ford che di cappi non ne vuol sentire parlare?

es:
ho 5 nodi:
a,b,c,d,e.
il mio grafo è :
a->a peso 4 (cappio)
a->b peso 10
a->c peso 12
c->d peso 1
d->e peso 3
b->e peso 1

Se parto da a e devo arrivare a e con Ford e Dijkstra continuerei a ciclare sul nodo a perchè l'arco a->a è quello con peso minore rispetto a->b e a->c.
Sapete darmi una mano?
Grazie Laura

09-01-2009 14:30
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 01:24.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.044 seconds (55.34% PHP - 44.66% MySQL) con 22 query.