Giter Site home page Giter Site logo

markmusic2727 / permutant Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 93 KB

🧠 Permutant finds every possible permutation of an array using Heap's Algorithm.

License: MIT License

Dart 24.01% TypeScript 23.57% JavaScript 52.42%
heapsort-algorithm permutation-algorithms permutate factorial recursion

permutant's Introduction

Mark Music| Twitter




Permutant Framework 1.0.16

Permutant is a JavaScript/TypeScript and Dart framework to find every possible permutation of an array (or list in Dart) of data.

Created with ❤️ by @markmusic2727 and @filippofonseca

Table of Content

Why Permutant?

Permutant allows for seamless and easy use of complex algorithms (like Heap's Algorithm) to find every possible permutation of an array/list. Algorithms like these usually take a general understanding of computer science and mathematical concepts, like recursion and factorials, to recreate. Instead of spending valueble time grasping these conceps, simply create a Permutant instance. That is all it takes.

Multi Language Integration

Permutant is not limited to single language architecture. It was designed and optimized to work with TypeScript, and Dart. With cohesive imports and fuctionality, Permutant keeps both codebases consistent, allowing for Permutant to remain the same on all languages.

Get Started

Ensure that you have the latest version of Node and npm (if using TS) or Dart installed.

Using Permutant with Dart

1. Add Permutant to Dependancies

In your pubspec.yaml file, add the following to your dependancies:

dependencies:
  ...
  permutant: ^1.0.15

2. Initiaization

At the top of your Dart file, import the permutant package, as shown:

import 'package:permutant/dart/permutant.dart';

Using Permutant with TypeScript

1. Installation with npm

npm i permutant

2. Initiaization

At the top of your TypeScript file, import permutant, as shown:

import Permutant from "permutant";

NOTE: The name Permutant after import is arbitrary; it can be replaced with whatever you'd like and the code will still run properly:

import Foo from "permutant";

Learn More

Want to know more about what goes behing the scenes in Permutant? We, at Permutant, have made a comprehensive lesson on all of the math behind Heap's Algorithm. Check out the lesson here.

If you want to know more about the functions and the different methods that can be called with Permutant, view the documentation here.

permutant's People

Contributors

filippo-fonseca avatar markmusic2727 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

filippo-fonseca

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.