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 > Progetto "DIE HARD"
Pages (13): « First ... « 8 9 10 11 [12] 13 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
ste182
.arcimaestro.

User info:
Registered: Oct 2004
Posts: 258 (0.03 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 5:06:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nella lista di adiacenza ci vanno tutti nodi che sono raggiungibili dal nodo di partenza eseguendo tutte e 3 le operazioni elementari.
vi posto il grafo con le liste come l'ho implementato:

code:
nodi lista adiacenze (0[3],0[5]) (3[3],0[5]) (0[3],5[5]) (3[3],0[5]) (3[3],5[5]) (0[3],0[5]) (0[3],3[5]) (0[3],5[5]) (3[3],5[5]) (0[3],0[5]) (3[3],2[5]) (3[3],5[5]) (0[3],5[5]) (3[3],0[5]) (0[3],3[5]) (3[3],3[5]) (0[3],5[5]) (0[3],0[5]) (3[3],0[5]) (3[3],2[5]) (3[3],5[5]) (0[3],2[5]) (3[3],0[5]) (0[3],5[5]) (3[3],3[5]) (3[3],5[5]) (0[3],3[5]) (3[3],0[5]) (1[3],5[5]) (0[3],2[5]) (3[3],2[5]) (0[3],5[5]) (0[3],0[5]) (2[3],0[5]) (1[3],5[5]) (3[3],5[5]) (0[3],5[5]) (1[3],0[5]) (3[3],3[5]) (2[3],0[5]) (3[3],0[5]) (2[3],5[5]) (0[3],0[5]) (0[3],2[5]) (1[3],0[5]) (3[3],0[5]) (1[3],5[5]) (0[3],0[5]) (0[3],1[5]) (2[3],5[5]) (3[3],5[5]) (0[3],5[5]) (2[3],0[5]) (3[3],4[5]) (0[3],1[5]) (3[3],1[5]) (0[3],5[5]) (0[3],0[5]) (1[3],0[5]) (3[3],4[5]) (3[3],5[5]) (0[3],4[5]) (3[3],0[5]) (2[3],5[5]) (3[3],1[5]) (3[3],5[5]) (0[3],1[5]) (3[3],0[5]) (0[3],4[5]) (0[3],4[5]) (3[3],4[5]) (0[3],5[5]) (0[3],0[5]) (3[3],1[5])

la prima colonna indica tutti i vertici del grafo, la seconda indica gli archi(le adiacenze) tra il nodo della prima colonna e i nodi della lista stessa.
ps:occhio a non generare duplicati; mettete i puntatori ai nodi nelle liste anzichè duplicare ogni nodo

__________________
Live Fast, Die Fun

02-02-2010 15:04
Click Here to See the Profile for ste182 Click here to Send ste182 a Private Message Find more posts by ste182 Add ste182 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
-Oblivion-
.primate.

User info:
Registered: Nov 2006
Posts: 67 (0.01 al dì)
Location: Seriate
Corso: Informatica
Anno: Quarto [Furoi corso]
Time Online: 22:52:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Si sa qualcosa dell'orale?

__________________
Annunci Gratis : La nuova dimensione degli annuci online - Jabbi.it

02-02-2010 15:25
Click Here to See the Profile for -Oblivion- Click here to Send -Oblivion- a Private Message Visit -Oblivion-'s homepage! Find more posts by -Oblivion- Add -Oblivion- to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
loreste
.grande:maestro.

User info:
Registered: Jan 2003
Posts: 730 (0.09 al dì)
Location: Berghem
Corso: Informatica
Anno: -2 alla specialistica
Time Online: 8 Days, 5:47:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

#ste82 potresti spiegarmi come fai i seguenti passi della lista?
(0[3],0[5]) situazione inizile questo è chiaro
(3[3],0[5]) R1 prima operazione elementare
(0[3],5[5]) qua esegui S1 e R2??? sono 2 operazioni
(3[3],5[5]) qua esegui R1

non capisco se partendo da (0[3],0[5]) il successivo deve essere l'aggiunta di una sola operazione elementare, quindi non mi è chiaro come da (3[3],0[5]) arrivi a (0[3],5[5]) con una sola operazione elementare

__________________
La Fede non retrocede mai!
Döma Atalanta!!!!!!!!

02-02-2010 16:18
Click Here to See the Profile for loreste Click here to Send loreste a Private Message Find more posts by loreste Add loreste to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ste182
.arcimaestro.

User info:
Registered: Oct 2004
Posts: 258 (0.03 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 5:06:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by loreste
#ste82 potresti spiegarmi come fai i seguenti passi della lista?
(0[3],0[5]) situazione inizile questo è chiaro
(3[3],0[5]) R1 prima operazione elementare
(0[3],5[5]) qua esegui S1 e R2??? sono 2 operazioni
(3[3],5[5]) qua esegui R1

non capisco se partendo da (0[3],0[5]) il successivo deve essere l'aggiunta di una sola operazione elementare, quindi non mi è chiaro come da (3[3],0[5]) arrivi a (0[3],5[5]) con una sola operazione elementare

la prima colonna elenca i vertici di tutto il grafo; non è posibile passare da 3[3] 0[5] a 0[3] 5[5] con una sola operazione.
le operazioni sono elencate nella seconda colonna, quindi:

da 3[3] 0[5] puoi passare a (3[3],5[5]) (0[3],0[5]) (0[3],3[5])

__________________
Live Fast, Die Fun

03-02-2010 08:44
Click Here to See the Profile for ste182 Click here to Send ste182 a Private Message Find more posts by ste182 Add ste182 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
asterix07
.precettore.

User info:
Registered: Nov 2007
Posts: 84 (0.01 al dì)
Location: Novara
Corso: Informatica
Anno: 2
Time Online: 1 Day, 9:21:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

@loreste:

Ma tu quindi continui con la stessa struttura (lista adiacenza) o la cambi con i vettori?

03-02-2010 09:56
Click Here to See the Profile for asterix07 Click here to Send asterix07 a Private Message Find more posts by asterix07 Add asterix07 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
loreste
.grande:maestro.

User info:
Registered: Jan 2003
Posts: 730 (0.09 al dì)
Location: Berghem
Corso: Informatica
Anno: -2 alla specialistica
Time Online: 8 Days, 5:47:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok, ho capito, cmq procedo con le liste di adiacenza. Grazie a tutti

__________________
La Fede non retrocede mai!
Döma Atalanta!!!!!!!!

03-02-2010 10:04
Click Here to See the Profile for loreste Click here to Send loreste a Private Message Find more posts by loreste Add loreste to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
BeppeGoal
.el:beatle.

User info:
Registered: Jul 2002
Posts: 1332 (0.15 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 7 Days, 19:44:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusate, voi come fate a leggere n valori in input nell'esecuzione di una funzione?
Ad esempio nell'esecuzione del comando "configurazione",
se devo leggere 2 valori potrei usare scanf("%d%d",&n1,n2), ma per più valori?

03-02-2010 11:01
Click Here to See the Profile for BeppeGoal Click Here to See the Blog of BeppeGoal Click here to Send BeppeGoal a Private Message Find more posts by BeppeGoal Add BeppeGoal to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
technorebel
il R

User info:
Registered: Jun 2003
Posts: 105 (0.01 al dì)
Location: Bergamo
Corso: informatica
Anno:
Time Online: 1 Day, 21:37:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

raga, ma l'orale di Aguzzoli come e'? cioe' il progetto ok, ma ti chiede la righina in particolare?!! sinceramente dopo 1047 righe ultra commentate nn vorrei che ti andasse a chiedere il pelo nell'uovo?!!!
ricordarmi cio' che ho scritto nelle vacanze di Natale....nzommmma :))

...spero nn sia un'interrogazione sul C....e' uno strumento utile per risolvere un problema, pero' chi se le ricorda ora le dispense!"!!

__________________
C0d3 Z3r0

04-02-2010 19:23
Click Here to See the Profile for technorebel Click here to Send technorebel a Private Message Find more posts by technorebel Add technorebel to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
f3d386
.primate.

User info:
Registered: Oct 2005
Posts: 79 (0.01 al dì)
Location: Milano
Corso: Sicurezza Informatica
Anno: 1
Time Online: 6:36:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi qualcuno sa spiegarmi con che idea è riuscito ad implementare la funzione configurazioni(d) ?
grazie

06-02-2010 14:59
Click Here to See the Profile for f3d386 Click here to Send f3d386 a Private Message Find more posts by f3d386 Add f3d386 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
palaz
.amico.

User info:
Registered: Apr 2007
Posts: 36 (0.01 al dì)
Location: nova milanese
Corso: informatica
Anno: secondo
Time Online: 11:03:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma va l'orale di aguzzoli è una vaccata.. devi spiegargli che strutture hai usato.. perche le hai usate, e se ci sono metodi per poter fare meglio...ma tutto con la teoria...la parte difficile è quella di torelli...

06-02-2010 15:07
Click Here to See the Profile for palaz Click here to Send palaz a Private Message Find more posts by palaz Add palaz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
technorebel
il R

User info:
Registered: Jun 2003
Posts: 105 (0.01 al dì)
Location: Bergamo
Corso: informatica
Anno:
Time Online: 1 Day, 21:37:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie Palaz!! allora sotto con la teoria!!! :) e speriamo di passare l'esamone!! dopo 1 mese di progetto!!

__________________
C0d3 Z3r0

06-02-2010 17:36
Click Here to See the Profile for technorebel Click here to Send technorebel a Private Message Find more posts by technorebel Add technorebel to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
f3d386
.primate.

User info:
Registered: Oct 2005
Posts: 79 (0.01 al dì)
Location: Milano
Corso: Sicurezza Informatica
Anno: 1
Time Online: 6:36:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi una domanda...
ma se io dichiaro pericolosa una configurazione, ho capito che non deve più essere utilizzata in operazioni come contenenti o mosse...ma se dovessi raggiungerla con le operazioni elementari R S e T ?
ad esempio:
mettiamo che abbia questa situazione iniziale: 0[3] 0[5]
dichiaro pericolosa 3[3] 5[5] con:
>p 3 5
se poi faccio
>R 1
>R 2
va bene o dovrebbe stamparmi qualcosa per avvertirmi che sono in una configurazione pericolosa?

09-02-2010 14:55
Click Here to See the Profile for f3d386 Click here to Send f3d386 a Private Message Find more posts by f3d386 Add f3d386 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
asterix07
.precettore.

User info:
Registered: Nov 2007
Posts: 84 (0.01 al dì)
Location: Novara
Corso: Informatica
Anno: 2
Time Online: 1 Day, 9:21:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

DA quanto ho capito io dovrebbe dichiararla pericolosa e non farla eseguire

09-02-2010 17:09
Click Here to See the Profile for asterix07 Click here to Send asterix07 a Private Message Find more posts by asterix07 Add asterix07 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
f3d386
.primate.

User info:
Registered: Oct 2005
Posts: 79 (0.01 al dì)
Location: Milano
Corso: Sicurezza Informatica
Anno: 1
Time Online: 6:36:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

quindi dovrebbe stamparmi "operazione pericolosa" e non eseguirla giusto?

grazie mille!

09-02-2010 17:19
Click Here to See the Profile for f3d386 Click here to Send f3d386 a Private Message Find more posts by f3d386 Add f3d386 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
asterix07
.precettore.

User info:
Registered: Nov 2007
Posts: 84 (0.01 al dì)
Location: Novara
Corso: Informatica
Anno: 2
Time Online: 1 Day, 9:21:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io l'ho interpretata cosi...prego

09-02-2010 17:51
Click Here to See the Profile for asterix07 Click here to Send asterix07 a Private Message Find more posts by asterix07 Add asterix07 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 03:21.    Post New Thread    Post A Reply
Pages (13): « First ... « 8 9 10 11 [12] 13 »   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.060 seconds (70.69% PHP - 29.31% MySQL) con 24 query.