Coder Social home page Coder Social logo

binarysearchtrees's Introduction

binarysearchtrees's People

Contributors

gzheyts avatar ignl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

binarysearchtrees's Issues

BenchmarkList file disappears

Trying to run individual benchmark files in Eclipse is running into this:
java -jar benchmarks.jar

Exception in thread "main" java.lang.RuntimeException: ERROR: Unable to find the resource: /META-INF/BenchmarkList
at org.openjdk.jmh.runner.AbstractResourceReader.getReaders(AbstractResourceReader.java:96)
at org.openjdk.jmh.runner.BenchmarkList.find(BenchmarkList.java:104)
at org.openjdk.jmh.runner.Runner.internalRun(Runner.java:251)
at org.openjdk.jmh.runner.Runner.run(Runner.java:203)
at org.openjdk.jmh.Main.main(Main.java:69)

Running the Eclipse-generated benchmarks.jar file also gives the same error.

It works fine when using from CLI, as per your instructions. Upon doing so, I see the BenchmarkList and CompilerHints files under target/classes/META-INF, and so too in the generated jar. This is not the case when running from within Eclipse. I've tried recreating the project a couple of times, making sure to use the same JMH archetype and version (1.7.1), but no dice.

This appears to be an issue with the IDE not generating or not keeping around the BenchmarkList and CompilerHints files, somehow related to the JMH library and possibly its maven archetype. Are these generated, or hand written? If they're hand written, a workaround would be to stash them in a resource directory.

I'm wondering what your IDE setup looks like, if you're using one, and if so - how you may have managed to avoid or got around this issue.

Right to use

Hi @ignl ,

I wish to use and modify your AVL Tree code to use in a data structure visualizing application for the "Advanced Data Structures" course of the university in which I study Computer Science. However, your repository has no license, so I can't. Would you mind adding a license?

Thanks for sharing your code,

AVLTree insert problem

Hi ignl, I am learning the data struct lessons, and now about AVL tree. I'm glad to find your code here, it's helpful.

But I have a question about the AVLTree implementaion. It will not work properly in some situations I think, the problem code is below:

@Override
public Node insert(int element) {
    Node newNode = super.insert(element);
    rebalance((AVLNode)newNode);
    return newNode;
}

The problem is, for an AVL tree, we need to reanlance the subtree from the parent of the inserted node, along with it's ancestor, until the root node, to guarantee the whole tree is balanced. But it's not done in your code, just one balancing here.

For example, if we insert serial numbers of 20 21 18 17 19, we got an AVL tree, now if we insert number 15, this tree will not be balanced.

What do you think about this, did I misunderstood your code?

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.