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] Ingranaggi II Thread Rating: 1 votes, 5.00 average.
Pages (21): « First ... « 6 7 8 9 [10] 11 12 13 14 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
jamez-hetfield
.illuminato.

User info:
Registered: Apr 2007
Posts: 209 (0.03 al dì)
Location: Braone (BS)
Corso: Informatica
Anno: BOH!
Time Online: 21:42:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Posto il primo test che sono riuscito a trascrivere..
..è grandi linee il grafico di esempio con le piastre che c'è sul testo del progettino (pag. 2)..
Non fa molto ma è già un inizio per controllare un pò di cose..

Attachment: test01.txt
This has been downloaded 6 time(s).

13-07-2008 22:05
Click Here to See the Profile for jamez-hetfield Click here to Send jamez-hetfield a Private Message Find more posts by jamez-hetfield Add jamez-hetfield to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
CaboM.BNA
.grande:maestro.

User info:
Registered: Jan 2006
Posts: 503 (0.07 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 23:32:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao gente...
ho un paio di dubbi da chiarire:

1.
Se ad esempio ho 3 piastre p1, p2, p3; con p2 che is sovrappone a p1 , e p3 che a sua volta si sovrappone a p1
(e di conseguenza le altezze saranno: p1->altezza == 0, p2->altezza == 1, p3->altezza ==2).
Se io attivo p3 facendola ruotare in senso orario. Questo implica che si attivano anche p2 e a sua volta p1?

2.
A proposito delle liste di adiacenza nei grafi (che anche io ho intenzione di usare per simulare adiacenze&sovrapposizioni tra piastre), il codie in C, dove l'avete preso?
Sul sito di ALGOTEAM ci sono delle strutture per realizzare i grafi, ma mi sembrano adatte per grafi statici, mentre i nostri sono dinamici
(l'inserimento e la cancellazione di piastre comportano una continua aggiunta e rimonzione di vertici e lati...) :?

Vi ringrazio in anticipo

14-07-2008 12:04
Click Here to See the Profile for CaboM.BNA Click here to Send CaboM.BNA a Private Message Find more posts by CaboM.BNA Add CaboM.BNA to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Sacratix
.illuminato.

User info:
Registered: Jun 2008
Posts: 154 (0.02 al dì)
Location: Lago d'Iseo - Bergamo
Corso: Informatica
Anno: 3
Time Online: 1 Day, 4:47:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non, non ho risolto, ma ho creato un funzione stampatutto
e ho notato che mi capita di avere più volte la stessa piastra nella lista di adiacenza/sovrapposizione... quindi se la elimino una volta, le altre hanno nome vuoto
credo sia il tuo stesso problema, la differenza starà forse nel SO?

-------------------------

1. certo, tutte le piastre collegate si attivano

2. io ho usato una lista di puntatori a piastre

__________________
I wish for this night-time to last for a life-time

14-07-2008 13:17
Click Here to See the Profile for Sacratix Click here to Send Sacratix a Private Message Find more posts by Sacratix Add Sacratix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
CaboM.BNA
.grande:maestro.

User info:
Registered: Jan 2006
Posts: 503 (0.07 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 23:32:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Sacratix
...

2. io ho usato una lista di puntatori a piastre [/B]


infatti è quello che pensavo di usare anche io.
Un esempio è quella proposta nelle slides di Aguzzoli (ludici8).

A pag. 37 il prof. pero precisa :"Questa implementazione non è adatta ad applicazioni che modifichino frequentemente i grafi.
Anche se ad essere sincero non ho capito il perche...

14-07-2008 13:33
Click Here to See the Profile for CaboM.BNA Click here to Send CaboM.BNA a Private Message Find more posts by CaboM.BNA Add CaboM.BNA to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Sacratix
.illuminato.

User info:
Registered: Jun 2008
Posts: 154 (0.02 al dì)
Location: Lago d'Iseo - Bergamo
Corso: Informatica
Anno: 3
Time Online: 1 Day, 4:47:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

con l'array invece.... sono perfette (!?) =.=
boh, mai viste...

la mia è poi solo che:
struct lista
{
lista* next;
piastra* data;
};

tanto, le operazioni che ci devi fare sono:
scorrerle tutte, una dopo l'altra, per visitare il grafo
aggiungere un elemento (lo fai in testa ed è finita lì)
eliminare un elemento (un pò piu lunga ma buono comunque)

__________________
I wish for this night-time to last for a life-time

14-07-2008 14:33
Click Here to See the Profile for Sacratix Click here to Send Sacratix a Private Message Find more posts by Sacratix Add Sacratix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
jamez-hetfield
.illuminato.

User info:
Registered: Apr 2007
Posts: 209 (0.03 al dì)
Location: Braone (BS)
Corso: Informatica
Anno: BOH!
Time Online: 21:42:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Raga, quesito..

p 2 1 6 2 a (h=0)
p 1 2 3 4 b (h=0)
p 5 2 7 4 c (h=0)
p 2 3 4 5 d (h=1)
p 4 3 6 5 e (h=1)

In caso di attivazione "d" ed "e" sono adiacenti, alla stessa altezza e ruotano nella stessa direzione..blocco?

14-07-2008 16:57
Click Here to See the Profile for jamez-hetfield Click here to Send jamez-hetfield a Private Message Find more posts by jamez-hetfield Add jamez-hetfield to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
CaboM.BNA
.grande:maestro.

User info:
Registered: Jan 2006
Posts: 503 (0.07 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 23:32:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Sacratix
con l'array invece.... sono perfette (!?) =.=
boh, mai viste...

la mia è poi solo che:
struct lista
{
lista* next;
piastra* data;
};

tanto, le operazioni che ci devi fare sono:
scorrerle tutte, una dopo l'altra, per visitare il grafo
aggiungere un elemento (lo fai in testa ed è finita lì)
eliminare un elemento (un pò piu lunga ma buono comunque)


quoto tuttoquanto... ho fatto lo stesso...

14-07-2008 17:15
Click Here to See the Profile for CaboM.BNA Click here to Send CaboM.BNA a Private Message Find more posts by CaboM.BNA Add CaboM.BNA to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Sacratix
.illuminato.

User info:
Registered: Jun 2008
Posts: 154 (0.02 al dì)
Location: Lago d'Iseo - Bergamo
Corso: Informatica
Anno: 3
Time Online: 1 Day, 4:47:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

esatto
adiacenti stessa direzione = blocco

__________________
I wish for this night-time to last for a life-time

14-07-2008 17:17
Click Here to See the Profile for Sacratix Click here to Send Sacratix a Private Message Find more posts by Sacratix Add Sacratix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
jamez-hetfield
.illuminato.

User info:
Registered: Apr 2007
Posts: 209 (0.03 al dì)
Location: Braone (BS)
Corso: Informatica
Anno: BOH!
Time Online: 21:42:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by CaboM.BNA
quoto tuttoquanto... ho fatto lo stesso...

..quando andate ad eliminare un nodo avete ripulito bene tutti i puntatori?
Era il mio problema!

14-07-2008 17:18
Click Here to See the Profile for jamez-hetfield Click here to Send jamez-hetfield a Private Message Find more posts by jamez-hetfield Add jamez-hetfield to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
jamez-hetfield
.illuminato.

User info:
Registered: Apr 2007
Posts: 209 (0.03 al dì)
Location: Braone (BS)
Corso: Informatica
Anno: BOH!
Time Online: 21:42:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Sacratix
esatto
adiacenti stessa direzione = blocco

Ok, allora in questo caso l'altezza conta (o dal tuo punto di vista abbiamo due gruppi incompatibili tra loro)..

14-07-2008 17:19
Click Here to See the Profile for jamez-hetfield Click here to Send jamez-hetfield a Private Message Find more posts by jamez-hetfield Add jamez-hetfield to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Sacratix
.illuminato.

User info:
Registered: Jun 2008
Posts: 154 (0.02 al dì)
Location: Lago d'Iseo - Bergamo
Corso: Informatica
Anno: 3
Time Online: 1 Day, 4:47:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ps.

guarda che le altezze, servono solo per eliminare tutte le piastre di una certa altezza

non comportano nient'altro
non c'entrano niente con adiacenze o sovrapposizioni
infatti, una volta assegnate, rimangono quelle

__________________
I wish for this night-time to last for a life-time

14-07-2008 17:20
Click Here to See the Profile for Sacratix Click here to Send Sacratix a Private Message Find more posts by Sacratix Add Sacratix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Sacratix
.illuminato.

User info:
Registered: Jun 2008
Posts: 154 (0.02 al dì)
Location: Lago d'Iseo - Bergamo
Corso: Informatica
Anno: 3
Time Online: 1 Day, 4:47:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by jamez-hetfield
Ok, allora in questo caso l'altezza conta (o dal tuo punto di vista abbiamo due gruppi incompatibili tra loro)..


dimenticatela

__________________
I wish for this night-time to last for a life-time

14-07-2008 17:21
Click Here to See the Profile for Sacratix Click here to Send Sacratix a Private Message Find more posts by Sacratix Add Sacratix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
jamez-hetfield
.illuminato.

User info:
Registered: Apr 2007
Posts: 209 (0.03 al dì)
Location: Braone (BS)
Corso: Informatica
Anno: BOH!
Time Online: 21:42:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Sacratix
dimenticatela


Hehe..se la dimentico devo rifare tutto il progettino! :P

14-07-2008 17:22
Click Here to See the Profile for jamez-hetfield Click here to Send jamez-hetfield a Private Message Find more posts by jamez-hetfield Add jamez-hetfield to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Sacratix
.illuminato.

User info:
Registered: Jun 2008
Posts: 154 (0.02 al dì)
Location: Lago d'Iseo - Bergamo
Corso: Informatica
Anno: 3
Time Online: 1 Day, 4:47:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

*_*

il macchinario si blocca anche se fossero state su livelli diversi

__________________
I wish for this night-time to last for a life-time

14-07-2008 17:25
Click Here to See the Profile for Sacratix Click here to Send Sacratix a Private Message Find more posts by Sacratix Add Sacratix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Sacratix
.illuminato.

User info:
Registered: Jun 2008
Posts: 154 (0.02 al dì)
Location: Lago d'Iseo - Bergamo
Corso: Informatica
Anno: 3
Time Online: 1 Day, 4:47:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

per farti un esempio,

in cima al testo del progetto
dove c'è scritto cosa significa adiacente/sovrapposta
vedi da qualche parte l'altezza?

__________________
I wish for this night-time to last for a life-time

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