Git Product home page Git Product logo

project-cs2023's Introduction

HyperLogLog_Cpp

This is the implementation of HyperLogLog algorithm in C++. To start, you have to install the dependences with the following command:

sudo sh ./install.sh

Then, with any IDE that supports CMake, you can compile the project and use it as a server.

Usage

To use the server, just compile it and make the request to http://0.0.0.0:5000/api/v1/hyperloglog with the following parameters:

  • /create (POST) - Create a new HyperLogLog with number of buckets 2^p. p is between 4 and 16.
    {
      "p": 16
    }
  • /insert (POST) - Add a new key to the HyperLogLog.
    {
      "value": "key"
    }
  • /count (GET) - Return the number of unique keys in the HyperLogLog.
  • /reset (POST) - Reset the HyperLogLog counter.
  • /csv (POST)
    {
      "nombreArchivo": "../mock/esas_mehsullar.csv",
      "nombreColumna": "satish_kodu"
    }

To run frontend server, go to the frontend folder and run the following command:

npm install
npm run dev

You have to install any chrome extension to allow CORS. I recommend this one.

project-cs2023's People

Contributors

fabrizzio20k avatar darkblackv32 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.