Skip to content
A simple implementation of the packed memory array
Find file
Pull request Compare This branch is 1 commit behind reddragon:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc
include
pma_tests
tests
Makefile
README.md
impl1.cpp
impl2.cpp

README.md

Benchmarks

Implementation-1

Time to insert 107 elements: 3min 8sec*

Implementation-2

Time to insert 107 elements: 2min 40sec*

* (When compiled with -O2 using g++, on a 1.73 GHz Pentium M machine)

Analysis

  • Complexity of an insert: O(log2n) (amortized)

  • Complexity of find (binary search): O(log2n) (worst-case)

Something went wrong with that request. Please try again.