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 > [algoritmi] Progetto di Febbraio "Itinerari"
Pages (8): « 1 2 [3] 4 5 6 7 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
AlphaGamma
.piano ma pieni.

User info:
Registered: Jun 2002
Posts: 6732 (0.78 al dì)
Location:
Corso: Eh?
Anno: Io cosa?
Time Online: 21 Days, 21:22:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: albero binario

Originally posted by Skanky
scusa ma un labero binario implica che da un nodo partano al massimo 2 lati per collegarsi ad altri 2 nodi .....ma nel progetto potrebbero benissimo essere 3 i lati......non capisco proprio perhè albero binario....

Ale


Attenzione. Io memorizzo su un albero binario i punti, NON il percorso. In questo modo inserimento, cancellazione e ricerca diventano operazioni semplici ed efficienti.

Cmq secondo me c'e' un po' troppa confusione.
NON si possono usare matrici, NE' e' conveniente farlo.
Si possono usare liste, ma sono difficili da mantenere e lente come efficienza.
Si possono usare alberi e sono decisamente piu' efficienti e comodi.
Si possono usare grafi (per liste di adiacenza) tuttavia se i grafi NON sono in programma vuol dire che ESISTONO metodi alternativi per memorizzare dati in memoria.

Infine, esistono anche le tabelle hash. Inserimento e cancellazione O(1), uso di array, indirizzamento aperto.

Infine, scaricatevi il codice dei progetti che sono stati fatti e che sono qui sul dsy (area filez, esame di algoritmi). In particolare e' utile quello di Mino (non a caso e' admin).

__________________
Attenzio', concentrazio', ritmo e VITALITÀ

Last edited by AlphaGamma on 07-02-2003 at 07:55

07-02-2003 07:48
Click Here to See the Profile for AlphaGamma Click Here to See the Blog of AlphaGamma Click here to Send AlphaGamma a Private Message Visit AlphaGamma's homepage! Find more posts by AlphaGamma Add AlphaGamma to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
rafnet
.grande:maestro.

User info:
Registered: Apr 2002
Posts: 524 (0.06 al dì)
Location: milano
Corso: Informatica
Anno: 3° teorico
Time Online: 2 Days, 3:50:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Qualcuno ha iniziato a metterlo giù con qualche struttura?? io sono in mare aperto e sto andando alla deriva con una tempesta in arrivo e un uragano dietro al chapet!

__________________
La vita è una jungla!

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

User info:
Registered: Feb 2003
Posts: 68 (0.01 al dì)
Location: Milano
Corso: informatica
Anno: 2° specialistica
Time Online: 23:19:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ma come cavolo si può attraversare un grafo se in tutti i libri scrivono la procedura in pseudocodice ?!?!

07-02-2003 13:19
Click Here to See the Profile for piuma82 Click here to Send piuma82 a Private Message Find more posts by piuma82 Add piuma82 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
crime
.simpatizzante.

User info:
Registered: Jan 2003
Posts: 9 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 3:12:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Question Albero di Alpha Gamma

Come tieni memorizzato il percorso? Mettendo una flag che indichi la strada. E per calcolare il percorso minimo presente tra due punti interni della strada, che algoritmo usi? Ogni idea e' benvenuta!

07-02-2003 13:22
Click Here to See the Profile for crime Click here to Send crime a Private Message Find more posts by crime Add crime to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dankan
.fedelissimo.

User info:
Registered: Jul 2002
Posts: 41 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 0:58:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

You wrote:

Infine, scaricatevi il codice dei progetti che sono stati fatti e che sono qui sul dsy (area filez, esame di algoritmi). In particolare e' utile quello di Mino (non a caso e' admin).


Scusami ma qual'è il progetto di Mino ?

Grazie Mille
Dankan

07-02-2003 15:57
Click Here to See the Profile for dankan Click here to Send dankan a Private Message Find more posts by dankan Add dankan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Lunik
dsy core staff

User info:
Registered: Mar 2002
Posts: 22362 (2.57 al dì)
Location: Milano
Corso: ComDig
Anno: Dott.ssa
Time Online: 93 Days, 0:52:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Progetto "MiniLife" è quello di Mino ...credo.....o "Life"???

__________________
Il DSY su Facebook!!!

07-02-2003 16:00
Click Here to See the Profile for Lunik Click Here to See the Blog of Lunik Click here to Send Lunik a Private Message Visit Lunik's homepage! Find more posts by Lunik Add Lunik to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lord2y
BANNATO

User info:
Registered: Jul 2002
Posts: 1498 (0.17 al dì)
Location: Milano
Corso: Qualcosa a che fare con l'informatica
Anno: 24esimo ;-(
Time Online: 9 Days, 17:16:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by piuma82
Ma come cavolo si può attraversare un grafo se in tutti i libri scrivono la procedura in pseudocodice ?!?!


On line trovi tutti gli algoritmi di cui hai bisogno (e cmq esiste algoritmi in c)

Io credo che si debba usare un grafo non orientato aciciclico.

La struttura da utilizzare credo sia quella a liste concatenate...l'unica perplessità che nasce è l'attraversamento del grafo che non è del tutto performante...

non siete gli unici nei c****i...questo progetto non è proprio semplice anzi :( :(

__________________
Linux User#271051
Only God can judge me, is that right?
Only God can judge me now
Only God baby, nobody else. All you other motherfuckers get out my business (2Pac)

07-02-2003 16:56
Click Here to See the Profile for lord2y Click Here to See the Blog of lord2y Click here to Send lord2y a Private Message Visit lord2y's homepage! Find more posts by lord2y Add lord2y to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
AlphaGamma
.piano ma pieni.

User info:
Registered: Jun 2002
Posts: 6732 (0.78 al dì)
Location:
Corso: Eh?
Anno: Io cosa?
Time Online: 21 Days, 21:22:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Il grafo e' ciclico.
Sono le strade che devono essere prive di cicli.
Mi sembra che lo stesso esempio mostrato nel progetto contenga un ciclo.

__________________
Attenzio', concentrazio', ritmo e VITALITÀ

07-02-2003 18:31
Click Here to See the Profile for AlphaGamma Click Here to See the Blog of AlphaGamma Click here to Send AlphaGamma a Private Message Visit AlphaGamma's homepage! Find more posts by AlphaGamma Add AlphaGamma to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lord2y
BANNATO

User info:
Registered: Jul 2002
Posts: 1498 (0.17 al dì)
Location: Milano
Corso: Qualcosa a che fare con l'informatica
Anno: 24esimo ;-(
Time Online: 9 Days, 17:16:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si mi sono epresso male..il grafo può essere ciclico, però le strade devono essere prive di cicli...

__________________
Linux User#271051
Only God can judge me, is that right?
Only God can judge me now
Only God baby, nobody else. All you other motherfuckers get out my business (2Pac)

07-02-2003 19:38
Click Here to See the Profile for lord2y Click Here to See the Blog of lord2y Click here to Send lord2y a Private Message Visit lord2y's homepage! Find more posts by lord2y Add lord2y to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
piuma82
.primate.

User info:
Registered: Feb 2003
Posts: 68 (0.01 al dì)
Location: Milano
Corso: informatica
Anno: 2° specialistica
Time Online: 23:19:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusate, sarò stupida, ma davvero non trovo come si faccia a visitare un grafo in ampiezza in linguaggio c...
Qualcuno mi può aiutare?

07-02-2003 19:48
Click Here to See the Profile for piuma82 Click here to Send piuma82 a Private Message Find more posts by piuma82 Add piuma82 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
M3lkor
.consigliere.

User info:
Registered: Feb 2003
Posts: 116 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 19
Time Online: 15:49:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusa ma se l'algoritmo è scritto in pseudo codice un motivo c'è... ed è che SEI tu ad adattare il codice ad un algoritmo non il contrario.

Comunque dando un occhiata al progetto (molto di sfuggita ad essere sincero) non mi è sembrato un eccessivo casino. Si ok sulla difficoltà di implementazione di alcuni passaggi ma in linea di massima il vero problema è la scelta di una struttura dati adeguata.
Una matrice è poco adeguata perchè non dinamica e inoltre è un metodo poco elegante a mio parere: va bene per Programmazione ma non per un esame più avanzato.

Una liste di liste è parecchio lenta ma forse a livello logico più semplice da implementare anche se poi potrebbe essere un mezzo casino da gestire.

Un albero è una soluzione interessante ma forse non un semplice bi-albero... forse è meglio un rb... Non so sinceramente su due piedi...

Forse una tabella HASH sarebbe interessante da utilizzare...
Per il resto non so che dirvi dato che in questo appello non posso partecipare del vostro dolore ;)

Melkor

__________________
---Any sufficiently advanced technology is indistinguishable from magic.---

Per favore non mandatemi allegati in Word o PowerPoint.
Si veda http://www.fsf.org/philosophy/no-word-attachments.html

07-02-2003 20:52
Click Here to See the Profile for M3lkor Click here to Send M3lkor a Private Message Find more posts by M3lkor Add M3lkor to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Wolf
.fedelissimo.

User info:
Registered: Nov 2001
Posts: 41 (0.00 al dì)
Location: LECCO
Corso: Informatica
Anno: 3
Time Online: 3:55:19 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Question

Problema: come cavolo faccio a prendere in ingresso una maledetta stringa di dimensioni qualsiasi??

07-02-2003 21:27
Click Here to See the Profile for Wolf Click here to Send Wolf a Private Message Find more posts by Wolf Add Wolf to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lord2y
BANNATO

User info:
Registered: Jul 2002
Posts: 1498 (0.17 al dì)
Location: Milano
Corso: Qualcosa a che fare con l'informatica
Anno: 24esimo ;-(
Time Online: 9 Days, 17:16:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

...

main(){

char *stringa;
scanf("%s", stringa);

}

problema risolto...però poi devi tokenizzare l'input

__________________
Linux User#271051
Only God can judge me, is that right?
Only God can judge me now
Only God baby, nobody else. All you other motherfuckers get out my business (2Pac)

07-02-2003 21:45
Click Here to See the Profile for lord2y Click Here to See the Blog of lord2y Click here to Send lord2y a Private Message Visit lord2y's homepage! Find more posts by lord2y Add lord2y to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Cancer
.metallaro.

User info:
Registered: Oct 2002
Posts: 66 (0.01 al dì)
Location:
Corso: Specialistica in TICO
Anno:
Time Online: 3 Days, 9:34:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by lord2y
...

main(){

char *stringa;
scanf("%s", stringa);

}

problema risolto...però poi devi tokenizzare l'input


Ehm...Io non farei proprio cosi... Insomma, il tuo puntatore char stringa punta ad un area di memoria non riservata...Insomma, con quella scanf vai a scrivere in un'area di memoria che non hai allocato... Cosi non funza proprio...O meglio: potrebbe X CASO funzionare se l'area di memoria puntata da stringa (che e' random) fosse libera. Il chè non è per niente detto...
Ciao!

__________________
You can find all that you need in your mind...If you take the time

07-02-2003 22:18
Click Here to See the Profile for Cancer Click here to Send Cancer a Private Message Find more posts by Cancer Add Cancer to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lord2y
BANNATO

User info:
Registered: Jul 2002
Posts: 1498 (0.17 al dì)
Location: Milano
Corso: Qualcosa a che fare con l'informatica
Anno: 24esimo ;-(
Time Online: 9 Days, 17:16:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

vers. 1.2

#define DIM 1000

main(){

char stringa[DIM];
/*dimensiono una stringa di 1000*/
scanf("%s", stringa);

}

...

__________________
Linux User#271051
Only God can judge me, is that right?
Only God can judge me now
Only God baby, nobody else. All you other motherfuckers get out my business (2Pac)

Last edited by lord2y on 08-02-2003 at 14:36

07-02-2003 22:39
Click Here to See the Profile for lord2y Click Here to See the Blog of lord2y Click here to Send lord2y a Private Message Visit lord2y's homepage! Find more posts by lord2y Add lord2y 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:28.    Post New Thread    Post A Reply
Pages (8): « 1 2 [3] 4 5 6 7 » ... Last »   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.143 seconds (66.19% PHP - 33.81% MySQL) con 24 query.