Giter Site home page Giter Site logo

dp-sliding-window's Introduction

DPSW-Sketch: A Differentially Private Sketch Framework for Frequency Estimation over Sliding Windows

This repository hosts the implementation code for the "DPSW-Sketch: A Differentially Private Sketch Framework for Frequency Estimation over Sliding Windows" as introduced in our research paper. The codebase includes implementations for various mechanisms, including U-Sketch, PCC-MG, and BLMZ-Sketch, alongside the DPSW-Sketch.

Dataset

The dataset required for running the experiments is expected to be in a text file format, with each line representing an item. An example dataset file is provided in the dataset directory. Ensure your dataset follows this format for compatibility.

Mechanisms Implementation

The Mechanism directory contains the implementation code for the U-Sketch, PCC-MG, BLMZ-Sketch, and the DPSW-Sketch algorithms.

Requirements

  • CMake 3.16 or higher
  • C++14 compatible compiler (GCC 4.9+, Clang 3.4+, MSVC 19.0+)

Getting Started

Follow these steps to compile and run the DPSW-Sketch implementation:

  1. Uncomment the DPSW-Sketch Code Block: In main.cpp, find and uncomment the section of code corresponding to the DPSW-Sketch execution.

  2. Create Build Directory: Run mkdir DPSW to create a new directory for building the project.

  3. Navigate to Build Directory: Change directory to the newly created build directory with cd ./DPSW.

  4. CMake Configuration: From within the DPSW directory, run cmake .. to configure the project build with CMake.

  5. Compile the Code: Execute make -j 16 to compile the code using multiple cores for faster compilation.

  6. Return to Project Root: Once the compilation is complete, navigate back to the project root directory with cd ../.

  7. Execute the Script: Run ./DPSW.sh to execute the DPSW-Sketch.

The execution steps for other algorithms are similar to those outlined above.

dp-sliding-window's People

Contributors

testtest2227 avatar wypsz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.