Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertaisarviointi #1

Open
yumoL opened this issue Feb 13, 2019 · 0 comments
Open

Vertaisarviointi #1

yumoL opened this issue Feb 13, 2019 · 0 comments

Comments

@yumoL
Copy link

yumoL commented Feb 13, 2019

Since the documentations in the project are written in English, the code review will also be given in English.

The project makes sense in structure, both algorithms and GUI have their own package. Also different kinds of heaps extends the same abstract class heap, which reduces repeated codes and makes the structure more clearer.

Some improvements

  • The test of MinHeapKeepsItOrderAfterDecreaseKey didn't pass in my computer. It seems like the binomial heap takes only there integers at a time.
  • For now all heaps accepts only Integer-type. Have you considered about making your heaps accept different types of data using generics?
  • It would be better if there could be a test class for BinomialTree. Most of methods in the BinomialTree class are quite simple and I don't think they need to be tested. It would be better if the complicated method link can be tested in its own unit test.
  • The method createTestData is used in both MinBinaryHeapTest and MinBinomialHeapTest. Would it be better to create an abstract HeapTest class and put this method to the abstract class so that you don't need to copy the method again when you're writing tests for Fibonacci heap?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant