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 N - Z > Programmazione > [Progetto] "Commesso viaggiatore"
Pages (8): « First ... « 2 3 4 5 [6] 7 8 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
nfast
.precettore.

User info:
Registered: Sep 2004
Posts: 95 (0.01 al dì)
Location:
Corso: Informatica
Anno: primo
Time Online: 18:00:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ripeto cosa bisogna inviare al prof Grossi !!!!

secondo me è possibile inviare un file .java (che è un file che si apre con il blocco note tranquillamente) quindi secondo me non c'è nessuna differenza tra un .java e un .txt

solo che il secondo non verrà accettato dal compilatore, quindi per evitare al prof di cambiare estensione al file meglio un .java.

ciao ragazzi e scusate ancora del disturbo

ciao

20-01-2005 22:17
Click Here to See the Profile for nfast Click here to Send nfast a Private Message Find more posts by nfast Add nfast to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ianstilo
.tapino.

User info:
Registered: Sep 2004
Posts: 83 (0.01 al dì)
Location: Merlino
Corso: Informatica
Anno:
Time Online: 17:10:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

beh..meglio per te..io l'ho iniziato oggi...

__________________
Ci sono i geni e quelli che dicono di essere dei geni.
Io sono un genio.

20-01-2005 22:25
Click Here to See the Profile for ianstilo Click here to Send ianstilo a Private Message Find more posts by ianstilo Add ianstilo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nfast
.precettore.

User info:
Registered: Sep 2004
Posts: 95 (0.01 al dì)
Location:
Corso: Informatica
Anno: primo
Time Online: 18:00:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

caspita in orario :)

vai con calma miraccomando :razz:

ciao

20-01-2005 22:51
Click Here to See the Profile for nfast Click here to Send nfast a Private Message Find more posts by nfast Add nfast to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ianstilo
.tapino.

User info:
Registered: Sep 2004
Posts: 83 (0.01 al dì)
Location: Merlino
Corso: Informatica
Anno:
Time Online: 17:10:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

beh..avevo da fare..tanto ci sono ancora tre giorni...sono più o meno a metà..penso..

__________________
Ci sono i geni e quelli che dicono di essere dei geni.
Io sono un genio.

20-01-2005 23:14
Click Here to See the Profile for ianstilo Click here to Send ianstilo a Private Message Find more posts by ianstilo Add ianstilo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Jacoposki
.arcimaestro.

User info:
Registered: Sep 2004
Posts: 498 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno: in tesi-sa dio per quanto
Time Online: 4 Days, 0:36:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

vi odio... a me continua a dare errori senza senso sigh temo di non riuscire a risolvere in tempo (e WoW non aiuta)

__________________
Mai sottovalutare l'ampiezza di banda di una station wagon piena di nastri lanciata a tutta velocità lungo l'autostrada. - Andrew S. Tanenbaum - Reti di Calcolatori

21-01-2005 02:18
Click Here to See the Profile for Jacoposki Click here to Send Jacoposki a Private Message Visit Jacoposki's homepage! Find more posts by Jacoposki Add Jacoposki to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
tandrea85
.precettore.

User info:
Registered: Sep 2004
Posts: 95 (0.01 al dì)
Location:
Corso: informatica
Anno: 1
Time Online: 18:21:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma voi il tour e la sua lunghezza come l'avete calcolato senza fare il challange.. se parto da una citta le scorro tutte in ordine ottengo sempre lo stessa lunghezza 260.. qualsiasi citta di partenza io metti.. dovrebbe essere giusto lo stesso, ma si può lasciare cosi?

21-01-2005 10:51
Click Here to See the Profile for tandrea85 Click here to Send tandrea85 a Private Message Find more posts by tandrea85 Add tandrea85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by tandrea85
ma voi il tour e la sua lunghezza come l'avete calcolato senza fare il challange.. se parto da una citta le scorro tutte in ordine ottengo sempre lo stessa lunghezza 260.. qualsiasi citta di partenza io metti.. dovrebbe essere giusto lo stesso, ma si può lasciare cosi?


C'e sicuramente qualcosa che non va, come puo' venirti sempre la stessa lunghezza ?

Il tour lo generi casualmente ?

21-01-2005 11:34
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Jacoposki
vi odio... a me continua a dare errori senza senso sigh temo di non riuscire a risolvere in tempo (e WoW non aiuta)


Tipo ? Magari sono solo errori di sintassi...

21-01-2005 14:13
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
tandrea85
.precettore.

User info:
Registered: Sep 2004
Posts: 95 (0.01 al dì)
Location:
Corso: informatica
Anno: 1
Time Online: 18:21:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Simeon
C'e sicuramente qualcosa che non va, come puo' venirti sempre la stessa lunghezza ?

Il tour lo generi casualmente ?


noo non casualmente, ma sequenzialmente.. ti faccio un esempio..
MI TO BA GI PR TR AS

parto da BA

il tour ke mi viene fuori è questo: BA GI PR TR AS MI TO BA

quindi il tour lo devo generare casualmente? ma ke casino viene fuori?

21-01-2005 14:18
Click Here to See the Profile for tandrea85 Click here to Send tandrea85 a Private Message Find more posts by tandrea85 Add tandrea85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Simeon
:D

User info:
Registered: Aug 2004
Posts: 984 (0.13 al dì)
Location: Milano
Corso: Informatica
Anno: IT IS OVER!
Time Online: 14 Days, 19:29:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by tandrea85
noo non casualmente, ma sequenzialmente.. ti faccio un esempio..
MI TO BA GI PR TR AS

parto da BA

il tour ke mi viene fuori è questo: BA GI PR TR AS MI TO BA

quindi il tour lo devo generare casualmente? ma ke casino viene fuori?


Aaaaaaaah capito :) Se lo generi cosi' e' ovvio che la lunghezza del tour rimanaga sempre identica... Io l'ho generato casualmente, nel testo parla di creare il tour tra "tutti quelli possibili" e quindi ho fatto cosi', ciao :)

21-01-2005 14:28
Click Here to See the Profile for Simeon Click here to Send Simeon a Private Message Find more posts by Simeon Add Simeon to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nfast
.precettore.

User info:
Registered: Sep 2004
Posts: 95 (0.01 al dì)
Location:
Corso: Informatica
Anno: primo
Time Online: 18:00:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi certo che è casuale la generazione del tour

getTour(.....)

ma partendo però da una citta data in input al metodo

Citta[] getTour(String nomeCitta)

quindi ci vuole un random ...

quello che segue è l'output del famoso challenge :)

provare per credere:

.....

code:
AG 0 10 20 40 40 60 10 60 30 1 BO 10 0 40 20 50 90 20 40 90 1 CH 20 40 0 10 20 50 10 70 80 1 FI 40 20 10 0 10 30 70 30 30 1 GE 40 50 20 10 0 40 70 30 90 1 PR 60 90 50 30 40 0 50 20 10 1 RT 10 20 10 70 70 50 0 60 50 1 SI 60 40 70 30 30 20 60 0 10 1 TR 30 90 80 30 90 10 50 10 0 1 MI 1 1 1 1 1 1 1 1 1 0 Inserisci il nome della citta' da cui iniziare il tour per calcolare il tour min imo: AG Percorso minimo del tour: AG-MI-BO-FI-CH-RT-PR-TR-SI-GE-AG Lunghezza totale del tour: 182 ...........


PS non in termini assoluti cmq

ciao

Last edited by nfast on 21-01-2005 at 14:35

21-01-2005 14:32
Click Here to See the Profile for nfast Click here to Send nfast a Private Message Find more posts by nfast Add nfast to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
tandrea85
.precettore.

User info:
Registered: Sep 2004
Posts: 95 (0.01 al dì)
Location:
Corso: informatica
Anno: 1
Time Online: 18:21:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Simeon
Aaaaaaaah capito :) Se lo generi cosi' e' ovvio che la lunghezza del tour rimanaga sempre identica... Io l'ho generato casualmente, nel testo parla di creare il tour tra "tutti quelli possibili" e quindi ho fatto cosi', ciao :)


si ma per farlo random mi devo inventare un algoritmo specifico o c'è qualke metodo già implementato?

21-01-2005 16:03
Click Here to See the Profile for tandrea85 Click here to Send tandrea85 a Private Message Find more posts by tandrea85 Add tandrea85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
AlVin
.primate.

User info:
Registered: Sep 2004
Posts: 71 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: Terzo
Time Online: 1 Day, 0:25:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Raga ma "la consegna chiude domenica" significa che consgnare domenica sera va ancora bene VERO??

21-01-2005 17:16
Click Here to See the Profile for AlVin Click here to Send AlVin a Private Message Find more posts by AlVin Add AlVin to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lfn
***La Femme Nikita***

User info:
Registered: Nov 2004
Posts: 171 (0.02 al dì)
Location: Milano
Corso: TICOM
Anno: 2° anno
Time Online: 1 Day, 12:50:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusate ragazzi, a 2 giorni dalla fine non mi sembra la domanda ideale da fare pero' ho problema gigante, ma ke in realtà è una kavolata.
avete presente ArrayList, no?
non riesco ad aggiungere elementi!!:sad: :x
:evil:
ad esempio
creo un nuovo arraylist
ArrayList al = new ArrayList();
poi passo al metodo add kon due argomenti definito come
add(int index, E element)
lo sò ke sono idiota, ma proprio non riesco a capire ke kos'è questo e element!!
ho provato ad aggiungere un intero, ma mi dice
cannot resolve simbol :shock:
l'importazione è giusta, la scrittura del metodo (mi sembra di sì)
ditemi, dove CAVOLO è il problema?
skusate se è una domanda abb idiota magari, ma vi giuro ke mi sto scervellando..
help me
lfn :cool:

__________________
an arrow from the sun

21-01-2005 19:03
Click Here to See the Profile for lfn Click here to Send lfn a Private Message Find more posts by lfn Add lfn to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nfast
.precettore.

User info:
Registered: Sep 2004
Posts: 95 (0.01 al dì)
Location:
Corso: Informatica
Anno: primo
Time Online: 18:00:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi ad un arraylist puoi solo aggiungere variabili di tipo riferimento quindi non dati primitivi :)

solo oggetti in sostanza....

quindi fai così meglio iniziare da una gerarchi più alta :

List al = new ArrayList();
for(int pos = 0;pos < 10;pos++)
al.add(new Integer(pos));

il metodo add ha due segnature....

puoi accodare un certo oggetto oppure inserire un certo oggetto in una certa posizione!!!

add(Object o) accoda all'ultima posizione....

add(int index,Object o) inserisce in una certa posizione.

io ti consiglio di usare la prima ;)

ciao Ifn!!!

spero di esserti stato di aiuto.

21-01-2005 19:12
Click Here to See the Profile for nfast Click here to Send nfast a Private Message Find more posts by nfast Add nfast to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 19:29.    Post New Thread    Post A Reply
Pages (8): « First ... « 2 3 4 5 [6] 7 8 »   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.153 seconds (63.59% PHP - 36.41% MySQL) con 23 query.