manrajgrover / algorithms-js Goto Github PK
View Code? Open in Web Editor NEWConsumable Data Structures and Algorithms library in JavaScript
License: MIT License
Consumable Data Structures and Algorithms library in JavaScript
License: MIT License
Currently, one can add elements to queue only one element at a time. Need to allow arrays to be passed.
Currently, Heap Constructor accepts only compare function. Need to support heapifying through arrays.
Suggestion : we can implement a method for inserting or pushing node at specific index
###Description
In our current linked list implementation, we lack a method to insert or push a node at a specific index within the linked list structure. The addition of such a method would significantly enhance the flexibility and functionality of our linked list.
The suggested method, tentatively named insertAtIndex(data, index)
, will take two parameters:
data
: The data to be stored in the new node.index
: The index at which the node containing the provided data will be inserted.Create a gulp task for transpiling the code to ES5
As the title says, we need to implement LRU Cache.
Integrate Travis with the project
Integrate Appveyor
Currently, test coverage is at 90% which can surely be improved. Possibly, one of the easiest ways for someone to contribute to this library.
Currently, one can add elements to stack only one element at a time. Need to allow arrays to be passed for building stack.
Docusaurus is a documentation website builder by Facebook. Need to explore and build a website for documentation of this project.
Better interface is needed (this could be some other documentation generation tool, if required)
I noticed that common algorithms related to graphs such as finding single source shortest path and multisource shortest path that are commonly used in programming paradigm are missing in the algorithms section. I would like to create a new directory named as Graph-Based-Algorithms and try to add them
Step 1 ->Creating a directory named as Graph-Based-Algorithms
Step 2-> Creating a file named as Djkstras.md which would be a readme file where I would implement the Djkstras Algorithm
Step 3-> Creating a file named as EdmondKarp.md which would be a readme file where I would implement the Edmond Karp Algorithm
Step 4 ->Creating a readme file named as readme.md where I would write and link all the aforesaid algorithms and this would be present in the directory.
Add a section on how to:
Since auto documentation generation depends on JS DocStrings, there is need to fix and provide as much information possible.
Reference: http://usejsdoc.org/index.html
interpolationSearch always returns -1 even if value is included in an array with duplicates. For instance, if the input is [42,42,42] and the target element is 42, the interpolation search will return -1 although 42 is included in the array.
interpolationSearch should return 0.
Input an array with all the same values in interpolationSearch, and a target element which is included in the array.
Currently, graph only allows adding vertices and edges. Need to support deletion of them too.
Currently, there is no documentation for the code. I feel instead of normal markdown documentation, we should have a Sphinx-like documentation.
Need to explore some options.
Currently, NPM package does not contain es6 modules. Package should be shipped with the same for nodejs consumption.
module.js:544
throw err;
^
Error: Cannot find module './algorithms'
at Function.Module._resolveFilename (module.js:542:15)
at Function.Module._load (module.js:472:25)
at Module.require (module.js:585:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/manrajsingh/Github/test/algo/node_modules/algorithms-js/src/index.js:1:82)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
Seamless import
Install and require the package
Build is failing due to path issue which is not reproducible locally. Need to look into it.
Kindly assist me with the correct answer to this Repository
Thanks
Originally posted by @DANEX78 in #145 (comment)
Currently, tests are added only for undirected graph, need to test directed graphs too.
Currently, we make use of gulp. We need to move away from it and use Webpack.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.