GithubHelp home page GithubHelp logo

Comments (1)

mtsch avatar mtsch commented on August 15, 2024

Thanks for the kind words, it means a lot!

Sadly the algorithm in question will not work in higher dimensions. It works by first building the 1-skeleton of the simplicial complex at the specified time as a graph. Then, it goes through each edge in the cocycle and connects its endpoints with the shortest path (ignoring the edges of the cocycle). Finally, it selects the one with the minimum weight and returns it (this is what best_sx and best_path are).
The problem here is that we don't have a nice analog to a shortest path in higher dimensions.

It might also be worth noting that in general, finding optimal representative cycles in dimensions higher than one is a very hard problem. If I'm not mistaken, the problem of finding the "shortest" representatives is NP-hard. However, I have a hunch that there is an efficient way to get sufficiently nice cycles according to some other metric. This is definitely something I want to explore in the future.

Also, note that this cycle reconstruction feature is very experimental. I agree the code is a bit convoluted and It also has some serious performance issues. I will probably rewrite it later this year when I have more time to work on this stuff again. I'll try to add some comments to the code in the meantime.

By the way, involuted homology (ripserer(...; alg=:involuted)) has no problem working in high dimensions but it computes an arbitrary cycle. Maybe that can be of some use to you?

from ripserer.jl.

Related Issues (15)

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.