This directory contains the code for randomization described in the paper. Below are the folders that contain essential code and results:
common
and integer-lp
contain the common utility classes and the Matlab codele-pairs-csv
contains the <=
pairs using the static analysis from our CC’20 paperlaplace
contains the Laplace-mechanism-based randomization described in the paperrandomized-response
contains the code for the randomized-response-based randomizationstats
includes code for printing statisticsmatlab
to PATH
of executables.Clone the repository:
$ git clone https://github.com/presto-osu/dp-freq-prof.git
$ cd dp-freq-prof
Download and extract dataset.tar.gz to dp-freq-prof
and execute the following commands to reproduce the experimental results:
$ cd code
$ bash runall_experiments_comparison.sh # comparison of the two randomizers (Sec. 7.1)
$ bash runall_rr_experiments.sh # randomized response (Sec. 7.2 & 7.3)
$ bash runall_lap_experiments.sh # Laplace mechanism (Sec. 7.2 & 7.3)
$ export PARTITION=500 && bash runall_experiments_comparison.sh # high-similarity (Sec. 7.5)
$ export PARTITION=-500 && bash runall_experiments_comparison.sh # low-similarity (Sec. 7.5)
The log files are stored in folder log
.