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 Zoom
Pages (18): « 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
mitnik
.illuminato.

User info:
Registered: Jun 2002
Posts: 235 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 4:25:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

qualcuno mi spiega gentilmente la funzione area e come mai nel primo sempio del prof l'output prodotto da a 1 0 0 è 6?

Grazie

16-09-2004 08:23
Click Here to See the Profile for mitnik Click here to Send mitnik a Private Message Find more posts by mitnik Add mitnik to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mitnik
.illuminato.

User info:
Registered: Jun 2002
Posts: 235 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 4:25:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho capito perchè l'area da 6 ma non sono sicuro sul modo di calcolo del blocco. Aiutino?

16-09-2004 08:37
Click Here to See the Profile for mitnik Click here to Send mitnik a Private Message Find more posts by mitnik Add mitnik to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mitnik
.illuminato.

User info:
Registered: Jun 2002
Posts: 235 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 4:25:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

altro problema: sempre negli esmpi del testo, si arriva ad un certo punto all'input R 3. Ciò vuol dire che imposto la risoluzione a 3 tenendo sempre come riempimento quello precedente che nel nostro caso è 4/25 giusto?

Ora per avere una occupata devo avere al suo interno almeno pk^2/q 1-celle, nel nostro esempio abbiamo 4*9/25=36/25=1.44
Che si fa si considerano 1 o 2 celle?
A questo punto però arriva l'istruzione b che da come out 1, perchè? dove sbaglio?

16-09-2004 09:55
Click Here to See the Profile for mitnik Click here to Send mitnik a Private Message Find more posts by mitnik Add mitnik to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
skorpius
.amico.

User info:
Registered: Apr 2003
Posts: 26 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 10:01:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
area 1 0

Anche a me viene 6, e secondo me xchè ci sono 6 5-celle nel blocco della 5-cella(1,0):
la 1,0 la 0,0 la 2,0 la 2,1 la 3,1 e la 4,1.

Piuttosto c'è secondo me un altro problemino:
supponiamo venga dato il comando c 1 3 5.
Il rapporto è 1/3, ma 1/3*5^2 = 8,33 periodico.
Allora quante 1-celle devono essere presenti perchè la 5-cella sia considerata occupata? 8 o 9 secondo voi?

16-09-2004 10:01
Click Here to See the Profile for skorpius Click here to Send skorpius a Private Message Find more posts by skorpius Add skorpius to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
skorpius
.amico.

User info:
Registered: Apr 2003
Posts: 26 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 10:01:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Question ehi!

ehi Mitnik, abbiamo individuato lo stesso problema insieme eh? :)

16-09-2004 10:03
Click Here to See the Profile for skorpius Click here to Send skorpius a Private Message Find more posts by skorpius Add skorpius to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
attila79
.fedelissimo.

User info:
Registered: Jun 2003
Posts: 49 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 23:55:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Si tratta di numeri interi, il primo intero maggiore di 8,33 è 9 quindi servono 9 1-celle

16-09-2004 10:44
Click Here to See the Profile for attila79 Click here to Send attila79 a Private Message Find more posts by attila79 Add attila79 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
skorpius
.amico.

User info:
Registered: Apr 2003
Posts: 26 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 10:01:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
ok

L'ho pensata alla fine anch'io così, tra l'altro questa considerazione coincide (ed è l'unico modo) con l'esempio del prof che diceva mitnik

16-09-2004 10:55
Click Here to See the Profile for skorpius Click here to Send skorpius a Private Message Find more posts by skorpius Add skorpius to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma state facendo simulazioni "carta e matita" del progetto?

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

16-09-2004 11:06
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
torak
Renaulto muori

User info:
Registered: Dec 2002
Posts: 440 (0.05 al dì)
Location: Bollate
Corso: Informatica laurea triennale
Anno: 3
Time Online: 6 Days, 2:35:19 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

L'implementazione migliore del piano è sicuramente una tabella di hash dinamica con una funzione biunivoca che assoccia una coppia (x,y) ad un valore k, che viene passato alla funzione di hash.
Sul libro di algoritmi c'è spiegato come funziona una tabella dinamica(una tabella che si allarga e si restringe dinamicamente a seconda del fattore di carico), ma va implementata.
In ogni caso ha performance molto buone, dato che la ricerca è in tempo O(1).
Sulle dispense di Torelli mi han detto che c'è la funzione biunivoca per ottenere k dalla coppia (x,y).

16-09-2004 11:54
Click Here to See the Profile for torak Click Here to See the Blog of torak Click here to Send torak a Private Message Find more posts by torak Add torak to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
rach
.novellino.

User info:
Registered: Oct 2003
Posts: 9 (0.00 al dì)
Location: milano
Corso: laureat in informatica
Anno: quinto
Time Online: 17:02:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Pero la tabella di Hash ha una dimensione fissa,non puo implementare un piano infinito.. :-(

16-09-2004 12:12
Click Here to See the Profile for rach Click here to Send rach a Private Message Find more posts by rach Add rach to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sirio
.illuminato.

User info:
Registered: Mar 2003
Posts: 187 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Terzo
Time Online: 2 Days, 17:32:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by rach
Pero la tabella di Hash ha una dimensione fissa,non puo implementare un piano infinito.. :-(


Vero. Ma le celle che cadono in una stessa posizione possono essere infinite, anche se l'efficenza però si va a benedire

16-09-2004 12:34
Click Here to See the Profile for sirio Click here to Send sirio a Private Message Find more posts by sirio Add sirio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mitnik
.illuminato.

User info:
Registered: Jun 2002
Posts: 235 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 4:25:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok allora si utilizza il numero intero piu vicino e maggiore di quello trovato.

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

User info:
Registered: Jun 2002
Posts: 235 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 4:25:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusate ma la funzione crea secondo me deve solo memorizzare i parametri k e p/q o q/p e poi "cancella" o meglio svuota la struttura dati che state usando per memorizzare le 1-celle. Questo perchè il piano deve essere infinito quindi servirebbe una struttura per memorizzare infinite k-celle al suo interno.

Lo so mi sono spiegato da schifo però scrivere in poche righe quello che si pensa per il progetto è difficile.

Ciao

16-09-2004 15:22
Click Here to See the Profile for mitnik Click here to Send mitnik a Private Message Find more posts by mitnik Add mitnik to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
eskimo
.illuminato.

User info:
Registered: Jul 2003
Posts: 156 (0.02 al dì)
Location: Milano
Corso: informatica
Anno: 3datroppotempoormai
Time Online: 1 Day, 22:23:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao, visto che la soluzione con la tabella di hash dovrebbe essere la soluzione da guru :cool: vediamo se si può fare: nella tabella ci metto tutte le celle? e la funzione biunivoca (x, y -> k e viceversa) mi porta alla cella giusta a seconda della risoluzione k?? se non è così credo di non averci capito na mazza ma non voglio già mettermi nell'idea di fare tutto con le liste!! :( :(
altrimenti liste di adiacenza con tutte le 1-celle dentro e poi calcoli a manetta ogni volta che devo sapere se a una certa risoluzione quella k-cella è piena o no, calcolo di blocchi, ecc ecc ecc
....sigh....
P.

16-09-2004 15:26
Click Here to See the Profile for eskimo Click here to Send eskimo a Private Message Find more posts by eskimo Add eskimo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
skorpius
.amico.

User info:
Registered: Apr 2003
Posts: 26 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 10:01:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by mitnik
scusate ma la funzione crea secondo me deve solo memorizzare i parametri k e p/q o q/p e poi "cancella" o meglio svuota la struttura dati che state usando per memorizzare le 1-celle. Ciao


Si, anche secondo me.
Tra l'altro, confermatemi che il c deve essere x forza il 1° comando dato al programma.......non si possono avere inserimenti i prima di aver definito i 3 parametri vero?

16-09-2004 16:02
Click Here to See the Profile for skorpius Click here to Send skorpius a Private Message Find more posts by skorpius Add skorpius to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 10:02.    Post New Thread    Post A Reply
Pages (18): « 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.137 seconds (67.79% PHP - 32.21% MySQL) con 24 query.