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 > Fondamenti di architettura e programmazione > Nuovo Progetto Giugno Luglio
Pages (7): « First ... « 2 3 4 5 [6] 7 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Supernick
.tritagranchi.

User info:
Registered: Jan 2008
Posts: 323 (0.05 al dì)
Location: Albairate (MI)
Corso: Comunicazione Digitale
Anno:
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

credo di si...

06-06-2009 19:37
Click Here to See the Profile for Supernick Click here to Send Supernick a Private Message Find more posts by Supernick Add Supernick to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Jaky
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 703 (0.09 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: laureando
Time Online: 5 Days, 1:02:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nel caso in cui, per comodit`a, si intenda utilizzare le istanze di Node come chiavi in una
mappa in qualsiasi parte del codice, sar`a anche necessario ridefinire opportunamente
anche i metodi equals e hashCode.

:?:?:?

06-06-2009 21:07
Click Here to See the Profile for Jaky Click here to Send Jaky a Private Message Find more posts by Jaky Add Jaky to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
giron
.primate.

User info:
Registered: Jun 2006
Posts: 62 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 16:21:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io a getRow e getColumn faccio ritornare un'array contenente tutti i valori della riga o della colonna passata come argomento invece. sembrano un pò a libera interpretazione alcuni metodi!!!!

07-06-2009 08:30
Click Here to See the Profile for giron Click here to Send giron a Private Message Find more posts by giron Add giron to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Supernick
.tritagranchi.

User info:
Registered: Jan 2008
Posts: 323 (0.05 al dì)
Location: Albairate (MI)
Corso: Comunicazione Digitale
Anno:
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nel caso in cui, per comodit`a, si intenda utilizzare le istanze di Node come chiavi in una
mappa in qualsiasi parte del codice, sar`a anche necessario ridefinire opportunamente
anche i metodi equals e hashCode. :?:?:?


Beh, io ho dovuto usare una hashtable in una parte del codice per poter ottenere l'id di un nodo data la descrizione come chiave, e comunque va beh, l'equals l'ho usato nel metodo ricorsivo x vedere se un nodo era uguale a un altro, ma l'hashcode, no, non l'ho usato...

07-06-2009 11:10
Click Here to See the Profile for Supernick Click here to Send Supernick a Private Message Find more posts by Supernick Add Supernick to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
giron
.primate.

User info:
Registered: Jun 2006
Posts: 62 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 16:21:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma il costruttore di Graph, quello a cui passo anche un array bidimensionale di String cosa deve fare?

07-06-2009 21:00
Click Here to See the Profile for giron Click here to Send giron a Private Message Find more posts by giron Add giron to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
AnTHrAx
.dead end.

User info:
Registered: Apr 2004
Posts: 100 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: 5
Time Online: 21:07:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by giron
ma il costruttore di Graph, quello a cui passo anche un array bidimensionale di String cosa deve fare?


da quello che ho capito io crei una matrice delle stesse dimensioni della matrice di adiacenza/incidenza solo che al posto del peso come argomento ci metti una stringa che descrive l'arco.

__________________
:O

08-06-2009 11:39
Click Here to See the Profile for AnTHrAx Click here to Send AnTHrAx a Private Message Find more posts by AnTHrAx Add AnTHrAx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
giron
.primate.

User info:
Registered: Jun 2006
Posts: 62 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 16:21:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ah ok!grazie del consiglio..non vedendo proprio l'utilità di questo costruttore mi risultava difficile immaginare cosa avesse dovuto fare!

08-06-2009 12:48
Click Here to See the Profile for giron Click here to Send giron a Private Message Find more posts by giron Add giron to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
giron
.primate.

User info:
Registered: Jun 2006
Posts: 62 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 16:21:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

però se fosse come dici tu, allora dovrei creare anche un costruttore di Matrix che prenda come argomenti l'array String[][]

public Matrix(Node[] nodi, String[][] descrizioni)


inoltre descrizioni[][] dovrebbe contenere le descrizioni nella giusta riga e colonna altrimenti io non saprei a priori a quale collegamento assegnare la decrizione..non capisco

08-06-2009 13:13
Click Here to See the Profile for giron Click here to Send giron a Private Message Find more posts by giron Add giron to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
AnTHrAx
.dead end.

User info:
Registered: Apr 2004
Posts: 100 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: 5
Time Online: 21:07:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma tu le descrizioni le hai nel graph, nel matrix hai solo i pesi

__________________
:O

08-06-2009 15:05
Click Here to See the Profile for AnTHrAx Click here to Send AnTHrAx a Private Message Find more posts by AnTHrAx Add AnTHrAx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
AnTHrAx
.dead end.

User info:
Registered: Apr 2004
Posts: 100 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: 5
Time Online: 21:07:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ah avevo una domanda... mi sono tenuto il parser dell'incidencymatrix come ultima cosa... ma ho notato che la matrice di incidenza mi viene di posizioni differenti rispetto a quella nel pdf...
anche xkè nel pdf della matrice gli archi sono descritti in posizioni differenti rispetto a quella del testo... in teoria non dovrebbe essere un problema... ma voi come avete risolto?

__________________
:O

08-06-2009 15:08
Click Here to See the Profile for AnTHrAx Click here to Send AnTHrAx a Private Message Find more posts by AnTHrAx Add AnTHrAx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
giron
.primate.

User info:
Registered: Jun 2006
Posts: 62 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 16:21:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si era un problema sollevato a inizio thread ma risolto man mano facevamo prove. Le posizioni delle colonne all'interno della matrice di incidenza non devono avere un ordine particolare, l'import è che ogni colonna della matrice di inc abbia due valori (uno negativo e l'altro uguale e negativo)!
guarda indietro che trovi tutte le info.

per qunto riguarda il problema del terzo costruttore di graph io non capisco in che modo vuole che vengano "associati" (come scritto nel pdf) i i pesi degli archi alle descrizioni

08-06-2009 15:41
Click Here to See the Profile for giron Click here to Send giron a Private Message Find more posts by giron Add giron to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
AnTHrAx
.dead end.

User info:
Registered: Apr 2004
Posts: 100 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: 5
Time Online: 21:07:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

giron dammi il tuo msn che vediamo di ragionare assieme XD

__________________
:O

08-06-2009 19:42
Click Here to See the Profile for AnTHrAx Click here to Send AnTHrAx a Private Message Find more posts by AnTHrAx Add AnTHrAx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Supernick
.tritagranchi.

User info:
Registered: Jan 2008
Posts: 323 (0.05 al dì)
Location: Albairate (MI)
Corso: Comunicazione Digitale
Anno:
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi se non sbagli avevate un dubbio sui valori di ritorno di getColumn(int i) e getRow(int i)

Beh, ho provato ora la sottoposizione e deve tornare un ARRAY di double

09-06-2009 15:46
Click Here to See the Profile for Supernick Click here to Send Supernick a Private Message Find more posts by Supernick Add Supernick to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pavo88
.fedelissimo.

User info:
Registered: May 2008
Posts: 56 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 9:56:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi, ma il metodo size() cosa deve ritornare??

10-06-2009 17:16
Click Here to See the Profile for Pavo88 Click here to Send Pavo88 a Private Message Find more posts by Pavo88 Add Pavo88 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Supernick
.tritagranchi.

User info:
Registered: Jan 2008
Posts: 323 (0.05 al dì)
Location: Albairate (MI)
Corso: Comunicazione Digitale
Anno:
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io credo semplicemente il numero di nodi del grafo....

sto a pezzi, sti problemi idioti dell'ultimo giorno che ti fan restare 16 ore filate incollato al pc son davvero simpatici :D

10-06-2009 23:26
Click Here to See the Profile for Supernick Click here to Send Supernick a Private Message Find more posts by Supernick Add Supernick to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 02:25.    Post New Thread    Post A Reply
Pages (7): « First ... « 2 3 4 5 [6] 7 »   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.315 seconds (76.24% PHP - 23.76% MySQL) con 23 query.