Giter Club home page Giter Club logo

Comments (4)

m4nh avatar m4nh commented on August 30, 2024

Hi @asbe ! Thanks for the tips!
Actually we never tried it on WINDOWS due to the ROS package wrapper, but it is very strange behavior.. the array is create with "MAXLEVEL + 1" size so also an index of MAXLEVEL is admissible.. when you debug it what is the actual "RandomLevel" value compared with the "udpate" size? ..

However the randomness here is added to choose different depths, for the current new node, in the hidden SkipList superstructure. This randomness is the way to let the SkipList looks like similar to a B-Tree without the drawbacks of the rebalancing.

from skimap_ros.

asbe avatar asbe commented on August 30, 2024

Hi again. Thanks for the quick response. I've been looking at the code again. When debugging update is of size MAXLEVEL, and so is all of the forwards, so the corruption occurs in writing update[level] = header_node_; when new_level is randomly chosen to be MAXLEVEL. I have no clue why this occurs, however in many cases it seems that zero-index of the nodes are never used?!

from skimap_ros.

m4nh avatar m4nh commented on August 30, 2024

No ok! it's a bug.. because the update is created with

SkipListNode<K, V, MAXLEVEL> *update[MAXLEVEL];

Try to modify it with

SkipListNode<K, V, MAXLEVEL> *update[MAXLEVEL+1];

in such a way as to be consistent with forwards.
Level 0 is never used because at level 0 is present the Full Linked List represented by the SkipList.. the higher is level, instead, the shorter is the representation of the list (i.e. random elements are conceptually removed)

from skimap_ros.

asbe avatar asbe commented on August 30, 2024

Yes! Seems to fix it. I'll close the issue, but will not submit a PR for 2 characters edit.. :-)

from skimap_ros.

Related Issues (20)

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.