Skip to content

Commit

Permalink
Split up amortized
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonGrodin committed Oct 5, 2023
1 parent 61a24a8 commit 71a4af8
Show file tree
Hide file tree
Showing 6 changed files with 541 additions and 484 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,11 @@ Similarly, `msort≡psort : ◯ (MSort.sort ≡ PSort.sort)` states that `MergeS
- Amortized analysis of sequences of enqueue and dequeue operations:
- The theorem `acost≤2*|l|` stating that the amortized cost of a sequence of queue operations is at most twice the length of the sequence.
-->

##### [`Examples.Amortized`](./src/Examples/Amortized.agda)

Amortized data structures, [via coinduction](https://drops.dagstuhl.de/opus/volltexte/2023/18820).

- [`Examples.Amortized.Simple`](./src/Examples/Amortized/Simple.agda) provides an amortized implementation of a simple amortized stream abstract data type.
- [`Examples.Amortized.Queue`](./src/Examples/Amortized/Queue.agda) provides an implementation of [amortized queues](https://en.wikipedia.org/wiki/Queue_(abstract_data_type)#Amortized_queue).
- [`Examples.Amortized.DynamicArray`](./src/Examples/Amortized/DynamicArray.agda) provides an implementation of dynamically-growing arrays.
Loading

0 comments on commit 71a4af8

Please sign in to comment.