Giter Site home page Giter Site logo

andrewb330 / euclideanmst Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 5.0 20 KB

Implementations of different algorithms for building Euclidean minimum spanning tree in k-dimensional space.

License: MIT License

C++ 98.23% CMake 1.77%
emst geometry kdtree minimal-spanning-tree k-dimensional mst euclidean-distance algorithm minimum-spanning-tree euclidean

euclideanmst's Introduction

Maybe I will post something useful here... sometime ๐Ÿ™ˆ

Hits Generic badge Generic badge Generic badge Generic badge Generic badge Generic badge Generic badge Generic badge

euclideanmst's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

euclideanmst's Issues

Can't run example.cpp

Hi, I'm trying to run your example.cpp file but I am getting a ton of errors when I try to compile it. Can you please check that it is functioning?

Thanks!

shadows template parameter

Hello andrew,

Tried to run your code but i faced this issue.

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$ g++ main.cpp -o binary
In file included from emst.h:2:0,
from main.cpp:9:
model.h:21:14: error: declaration of template parameter โ€˜DIMโ€™ shadows template parameter
template<size_t DIM>
^~~~~~
model.h:9:10: note: template parameter โ€˜DIMโ€™ declared here
template<size_t DIM>
^~~~~~
model.h:69:14: error: declaration of template parameter โ€˜DIMโ€™ shadows template parameter
template<size_t DIM>
^~~~~~
model.h:47:10: note: template parameter โ€˜DIMโ€™ declared here
template<size_t DIM>
^~~~~~
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Possible Variation

Is it possible to find Euclidean Maximum Spanning Tree using this code?

Also, are you sure that it's time complexity is NLogN? Because on my local machine a code with 2e5 points in 3-4 dimension is taking forever to finish

I am attaching the test data i used

[TEST DATA]
and it took 115322ms for the execution

For an algorithm with time complexity of N*log(n), i expected a execution time around 3 seconds
Can please you help a little, i need it for a task?

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.