An open API service indexing awesome lists of open source software.

https://github.com/nachinius/linkcuttrees

Link Cut Tree for fast path aggregation calculation on trees and graphs
https://github.com/nachinius/linkcuttrees

data-structure data-structures-algorithms paths scala tree

Last synced: 17 days ago
JSON representation

Link Cut Tree for fast path aggregation calculation on trees and graphs

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/nachinius/LinkCutTrees.svg?branch=master)](https://travis-ci.org/nachinius/LinkCutTrees)
[![codecov](https://codecov.io/gh/nachinius/LinkCutTrees/branch/master/graph/badge.svg)](https://codecov.io/gh/nachinius/LinkCutTrees)
[![Coverage Status](https://coveralls.io/repos/github/nachinius/LinkCutTrees/badge.svg?branch=master)](https://coveralls.io/github/nachinius/LinkCutTrees?branch=master)
[![Join the chat at https://gitter.im/LinkCutTrees/Lobby](https://badges.gitter.im/LinkCutTrees/Lobby.svg)](https://gitter.im/LinkCutTrees/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Latest version](https://index.scala-lang.org/nachinius/linkcuttrees/linkcuttrees/latest.svg)](https://index.scala-lang.org/nachinius/linkcuttrees/linkcuttrees)

# Link Cut Trees

A collection of trees

with operations **O(lg n)** per operation (amortized)
- maketree
- link(v,w)
- cut(v)
- findroot(v)
- pathaggregate(v)

# Ref
[1] https://en.wikipedia.org/wiki/Link/cut_tree