Git Product home page Git Product logo

k-level's People

Contributors

congyu711 avatar

Watchers

 avatar

k-level's Issues

the x_coord of breakpoints is unreliable

The output of k-level algorithm is an ordered sequence of breakpoints which the k-level meets from -1e10 to 1e10.
Tested with millions of instances

The sequence of lines that appears on the k-level is correct. But in rare cases the x_coord of some breakpoints is slightly wrong.

test.zip

-1e+10
-1242.69
-1104.51
-795.628
-444.492
-438.347
-504.167
-390.544
-373.945
-233.431
-218.397

see line 7 -504.167 is smaller than the x_coord of the previous breakpoint. This is supposed to be a nondecreasing sequence.

I guess this is caused by a late update of kineticPriorityQueue::t while updating the datastructure.

upper and lower envelope can not be handled

The k-level algorithm maintains two kinetic heap consisting of the top k and the rest lines. The implementation of kinetic heap in kpq.cc can not be empty. So the upper and lower envelope( 1-level and n-level if there are n lines) need to computed separately.
However finding upper or lower envelope is equivalent to computing the convex hull. maybe fix later

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.