The purpose of the thesis is to compare two different implementations of priority queues: binary heap and Fibonacci's heap. Firstly we defined what data structures are, what are their functions and how do we evaluate them. In the next part we implemented both data structures in the programming language Java and explained how they were implemented. Then we made a theoretical comparison where we compared the O notation in worst case scenario and amortised O notation. After that we compared both data structures in the ALGator system. We made tests and at the end we determined which data structure is better in which use case.
|