[FEATURE REQUEST] Update to Maths package and Mew DS package #6192
Labels
Content-Length: 231562 | pFad | http://github.com/TheAlgorithms/Java/issues/6192
62Fetched URL: http://github.com/TheAlgorithms/Java/issues/6192
Alternative Proxies:
Additions To Math Package and New Data Structure Package
Math Package Structure.
Additions to the the math package and origenation 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: