Skip to content

C++ implementation of a data structure for computing O(1)-time next-node-on-path queries between two nodes in an n-ary tree (after O(n) time and space preprocessing of the tree.)

Notifications You must be signed in to change notification settings

rein5/next-node-on-path

Repository files navigation

next-node-on-path

C++ implementation of a data structure for computing next-node-on-path queries between two nodes in an n-ary tree.

The queries run in O(1) time, after O(n) time and space preprocessing of the tree.

About

C++ implementation of a data structure for computing O(1)-time next-node-on-path queries between two nodes in an n-ary tree (after O(n) time and space preprocessing of the tree.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published