Skip to content

Commit

Permalink
vault backup: 2025-02-04 18:42:29
Browse files Browse the repository at this point in the history
  • Loading branch information
AglaiaNorza committed Feb 4, 2025
1 parent 2e37380 commit bf81253
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ Ha senso valutare il *costo medio* della ricerca, ma solo nel caso in cui si cer
Cominciamo dalla ricerca quando la chiave ha un valore che non ammette duplicati.

$\text{N: numero di record}$

$\text{R: numero di record che possono essere memorizzati in un blocco}$

$n=\frac{N}{R}=\text{numero di blocchi}$

$$\large\frac{R\times1+R\times 2+\dots+R\times n}{N}=\frac{R\times(1+2+\dots+n)}{N}=\frac{R}{N}\times \frac{n(n+1)}{2}=\frac{1}{n} \frac{n(n+1)}{2}\approx \frac{n}{2}$$
## inserimento
Servono:
Expand Down

0 comments on commit bf81253

Please sign in to comment.