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 > [Analisi ammortizzata] Tabelle dinamiche
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
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
Analisi ammortizzata - tabelle dinamiche.

Qualcuno sa qual è il costo ammortizzato triplicando la tabella dinamica quando è piena? Non riesco a trovare il limite di [sommatoria da j=0 a logaritmo in base 3 di n di 3^j]... magari manco è giusto.

09-03-2006 16:04
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
puntozip
.arcimaestro.

User info:
Registered: Jan 2003
Posts: 332 (0.04 al dì)
Location: milano
Corso: Ticom
Anno: 1
Time Online: 10 Days, 4:57:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non so se ti serve ancora, cmq Torelli non chiede di solito dimostrazioni matematiche, ma che si capisca cosa succede. Quindi raccontaglielo a parole:

Ogni elemento deve avere un credito per il proprio inserimento e uno per spostarsi al primo incremento della tabella.
Quindi si parte da almeno due crediti.

Poi consideri una tabella di dimensioni "unitarie" che viene raddoppiata: Quindi vecchia tabella dimensione 1 e aggiunta dimensione 1 (totale 1+1=2, raddoppiata). Così ogni elemento ogni elemento deve preoccuparsi anche di vecchia/nuova elementi precedentemente inseriti. Se raddoppio 1/1 = 1. Risultato 2 (totale prec. di base) + 1 = 3 costo ammortizzato se raddoppio.

Se triplico vecchia/nuova= 1/2 -> costo amm. 2 + 1/2=2,5
Se quadruplico 1/3 -> 2,33..
and so on...:-D

Ciao e in bocca al lupo se devi ancora sostenerlo.

__________________
There are two ways of constructing a software design:
one way is to make it so simple that there are obviously no deficiencies;
the other way is to make it so complicated that there are no obvious deficiencies.
(C.A.R. Hoare)

11-03-2006 12:22
Click Here to See the Profile for puntozip Click here to Send puntozip a Private Message Find more posts by puntozip Add puntozip to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 12:14.    Post New Thread    Post A Reply
  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.054 seconds (64.95% PHP - 35.05% MySQL) con 23 query.