Giter VIP home page Giter VIP logo

ld-sketch's Introduction

LD-Sketch


Introduction

A sketching structure which can be seamlessly deployed in a distributed architecture.


Paper

Qun Huang, Patrick, P. C. Lee
LD-Sketch: A Distributed Sketching Design for Accurate and Scalable Anomaly Detection in Network Data Streams.
INFOCOM 2014 (AR: 320/1645=19.4%).


Contributor

ld-sketch's People

Contributors

huangqundl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ld-sketch's Issues

Vector subscript out of range

Hello, when I try to update the sketch, the program suddenly stop, and show:Vector Subscript out of range.

First, I run it on Ubuntu 16.04, but the program stoped and the terminal only to display:Floating point exception (core dumped). I have added c++11 optional.

For convenience, I run it on Visual Studio 2017, but it was stopped too. When the program is running, a windows show: Debug Assertion Failed : Vector subscript out of range.

error

And I find the array.find() of unordered_map leads to the failure. I find that the hash value may be negtive when the type of hash functions's returned value transform(from usigned int to long long), and the vector subscript may be out of range. So I limit the hash value to be positive, even decrease the hash value, but it dosen't work.

I test Object for equality and Object for hash, they seemly work well.

this is my code:
`int main(int argc, char** argv) {

LDSketch_t* lds = LDSketch_init(10000, 4, 1, 64, 1024*1024, 0);
dyn_tbl_key_t key;

memcpy(key.key, "abc", lds->lgn / 8);
dyn_tbl_t *test = (dyn_tbl_t*)safe_calloc(10000 * 4, sizeof(long long), std::string("tbl->tbl").c_str());

LDSketch_update(lds, key.key, (long long)5);//stop and out of range
printf("%ld", test->array.find(key));//stop and out of range
LDSketch_destroy(lds);
system("PAUSE");
return 0;

}`

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.