Java icon indicating copy to clipboard operation
Java copied to clipboard

Add more algorithms

Open AnupKumarPanwar opened this issue 9 years ago • 46 comments

This repo has less contributions. Please add more algorithms.

See the structure and README of this repo for reference https://github.com/TheAlgorithms/Python

AnupKumarPanwar avatar Sep 28 '17 12:09 AnupKumarPanwar

would you be interested in some Set-implementations or maybe Bag? didnt see it in your repo :)

dhinske avatar Sep 28 '17 13:09 dhinske

I would like to contribute it. I see that you have no shell sort algorithm for Java. I would take that one first. Than later I would continue with few mores, if that is ok.

dpunosevac avatar Sep 28 '17 14:09 dpunosevac

Would you be interested in a level-order tree traversal?

mpokryva avatar Sep 28 '17 15:09 mpokryva

Thanks. @mpokryva

dynamitechetan avatar Sep 28 '17 15:09 dynamitechetan

Ok, I will take that then. Or, if you want, @dpunosevac , you can do that, and I can do some bit algorithms, as I don't see any of those.

mpokryva avatar Sep 28 '17 15:09 mpokryva

@mpokryva I mistakenly thought you were talking to me. And not asking for yourself. Anyway, you can grab that one, and I hope that @dynamitechetan needs shellsort, so I do that one.

dpunosevac avatar Sep 28 '17 15:09 dpunosevac

Ok, sounds good! Sorry for the misunderstanding :)

mpokryva avatar Sep 28 '17 15:09 mpokryva

@dynamitechetan @AnupKumarPanwar Would be continue to add more algorithms to this as a part of hacktoberfest PRs would be maily in Data Structures and other domain

varunu28 avatar Sep 28 '17 17:09 varunu28

Please look over pull requests before merging because I noticed the most recent one won't even compile properly and I'm assuming that a lot of people will make PRs soon because of Hacktoberfest (myself included). For example, in PR #101 there are many errors.

Can't compile because there is no type for len_a and len_b Can't compile because calculate_distance is a non-static method One of the loops will go on forever because it's declared as for(int j = 0; i < len_b; j++) and i is not getting updated within the loop.

rei2hu avatar Sep 28 '17 19:09 rei2hu

@rei2hu @dynamitechetan @AnupKumarPanwar Also the PRs should be monitored correctly to check for coding style and if an addition to the repo is actually an algorithm or just a solution of an interview question. The long term goal should be to make this repo as a one stop solution for Java algorithms rather than a repository with bunch of random interview problems.

varunu28 avatar Sep 28 '17 23:09 varunu28

@dynamitechetan @varunu28 @rei2hu I think we should create a repo that contains simple English explanation of the algorithms with example and a link to their implementation in different programming languages.

AnupKumarPanwar avatar Sep 29 '17 05:09 AnupKumarPanwar

@AnupKumarPanwar I am relatively late here so I thought I directly ask you. Whats next in your priority list. i ll address it. I love writing algorithms.

praveenkannan avatar Sep 29 '17 22:09 praveenkannan

@praveenkannan I would like you to contribute on https://github.com/TheAlgorithms/Algorithms-Explainations

AnupKumarPanwar avatar Sep 30 '17 01:09 AnupKumarPanwar

@AnupKumarPanwar assign that to me. I am starting to work on it now.

praveenkannan avatar Oct 01 '17 03:10 praveenkannan

@AnupKumarPanwar can I write dijkstra algo on Java?

Alastifer avatar Oct 01 '17 07:10 Alastifer

Wouldn't it be easier to keep track of the algorithms that are missing? Some sort of list on the repo maybe.

TheFern2 avatar Oct 01 '17 15:10 TheFern2

Would I be able to write A* Algorithm? I created a version in Processing

MichGedd avatar Oct 01 '17 21:10 MichGedd

I've looked at the python repo, and I will be doing a bunch of the cypher algorithms.

TheFern2 avatar Oct 02 '17 00:10 TheFern2

Are you interested to add compression algorithm?

shikhart98 avatar Oct 03 '17 15:10 shikhart98

#147 Added Bag-Datastructure

dhinske avatar Oct 04 '17 12:10 dhinske