-
Notifications
You must be signed in to change notification settings - Fork 19.9k
[FEATURE REQUEST] Update to Maths package and Mew DS package #6192
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
Comments
You can open pull requests with your implementation, just please check before that that the algorithm is still not implemented |
Awesome! Should I submit another pull request for DataStructure classes, or is that request rejected. |
Check which ones are not yet implemented. I think that linked list, queue, stack, bag, redblack tree, graphs are all already implemented |
I agree that refactoring this implementation to use Java's built-in If you'd like, I can help with updating the class and writing proper tests for it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution! |
Please reopen this issue once you have made the required changes. If you need help, feel free to ask in our Discord server or ping one of the maintainers here. Thank you for your contribution! |
Uh oh!
There was an error while loading. Please reload this page.
Additions To Math Package and New Data Structure Package
Math Package Structure.
Additions to the the math package and origination changes:
mathematics (over view)
New Math Implementations I can add now
gaussianElimination: Given a set of linear equations, find a non zero solution.
abstractSyntaxTree(): Given a well formed algebraic expression, reduce it to a minimal number of terms
numericalDeriv(): Find the discrete nth derivative of
of a function with an order of accuracy o
Some other note worthy algorithms belonging to other categories:
Graphs: BellmanFord - finds shortest path with negative weights, UnionFind - connect two points and check if they are connected to the same chain
Trees: Balance a binary tree
data structure package:
While java does offer numerous data structures and I am aware this is an algorithms based repo, a fundamental part of algorithms is properly constructing (for example Java’s design of Stack is flawed) and using data structures correctly. Also many important algorithms come out of data structures . I am proposing a correctly written and well documented package containing the data structures necessary to any of the algorithms already present.
In each Data structure should include algorithms which prevalent or common to the data structure itself. For example, while the java LinkedList is effective at what it does, it implements multiple interfaces which can muddy the educational values. Some data structures don’t exist in standard java like a basic binary tree.
Issue details
Algorithms:
gaussianElimination(String[])
algebraSimplify(String)
numericalDeriv(Unary)
bellmanFord()
balanceTree()
Data Structure class Example:
//documentation with URL to wiki
BinaryTree //clear description of purpose and use case
//description of any inner classes
Node right //description of properties
Node left
Notice that despite being a data structure, all of these methods are very important and sometimes
unintuitive algorithms.
Possible Package:
datastructures
LinkedList
Stack
Queue
Bag
RedBlack
BinaryTree
NArryTree
HashGraph (using hashmap)
AdjancencyGraph (using adjacency matrix)
ReferenceGraph (Using node references)
Additional Information
No response
The text was updated successfully, but these errors were encountered: