Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
aa:ammortized-analysis [2017/01/13 17:55] pdmatei |
aa:ammortized-analysis [2019/11/26 13:25] (current) pdmatei |
||
---|---|---|---|
Line 58: | Line 58: | ||
For the FIFO, we estimate: | For the FIFO, we estimate: | ||
* $math[\hat{c}_{enq} = 3] since each inserted element in $math[l] **may** be subsequently removed from $math[l] and inserted in $math[r]. We charge extra to **amortise** for this potential cost. | * $math[\hat{c}_{enq} = 3] since each inserted element in $math[l] **may** be subsequently removed from $math[l] and inserted in $math[r]. We charge extra to **amortise** for this potential cost. | ||
- | * $mat[\hat{c}_{deq} = 1] which represents the deletion from $math[r]. | + | * $math[\hat{c}_{deq} = 1] which represents the deletion from $math[r]. |
To validate this estimation, we verify the **golden rule**. | To validate this estimation, we verify the **golden rule**. |