Giter Club home page Giter Club logo

thuva4 / algorithms Goto Github PK

View Code? Open in Web Editor NEW
486.0 20.0 545.0 1.57 MB

Collection of algorithms in multiple programming languages.

Home Page: https://thuva4.github.io/Algorithms/

License: Apache License 2.0

JavaScript 9.39% C++ 30.89% Python 14.63% Go 3.80% Java 19.69% C 6.63% Rust 0.86% Ruby 2.04% C# 3.64% Swift 4.13% Kotlin 1.08% Racket 0.08% Perl 0.36% Crystal 0.33% Makefile 0.14% Haskell 1.15% Scala 0.78% Brainfuck 0.06% HTML 0.33% CSS 0.01%
search-algorithm multiple-algorithms fast-algorithm clustering-algorithm algorithms algorithms-implemented hacktoberfest

algorithms's Introduction

Algorithms Example

DeepScan grade

This repository contains examples of various algorithms which were written on different programming languages.

Implemented algorithms with languages:

Language C++ Python Java JavaScript C Go C# Ruby Swift Scala Haskell Kotlin Rust Perl BrainFuck Crystal Racket
Fibonacci ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
BubbleSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
LinearSearch ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
InsertionSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
QuickSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
BinarySearch ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
MergeSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
GreatestCommonDivisor ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
SelectionSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
Doomsday ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
HeapSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
XorSwap ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
Factorial ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
HammingDistance ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
Kadanes ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
FisherYatesShuffle ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
LongestCommonSubsequence ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
Dijkstras ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
CountingSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
DepthFirstSearch ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
FastFourierTransform ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
FloydsAlgorithm ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
RadixSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
TernarySearch ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
BellmanFord ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
BinaryGCD ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
ShellSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
ExtendedEuclidean ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
SegmentedSieve ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
BreadthFirstSearch ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
FloodFill ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
LongestIncreasingSubsequence ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
UnaryCoding ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
QuickSelect ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
SieveOfEratosthenes ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
BitonicSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
PrimeCheck ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
SieveofEratosthenes ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
Swap ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
UnionFind ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
BorweinsAlgorithm ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
CountingInversions ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
CycleSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
EditDistance ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
KnuthMorrisPrath ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
Permutations ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
RabinKarp ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
TopologicalSort ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
DiffieHellman ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘
knapsack ๐Ÿ‘ ๐Ÿ‘
AStarSearch ๐Ÿ‘ ๐Ÿ‘
BitapAlgorithm ๐Ÿ‘ ๐Ÿ‘
CocktailSort ๐Ÿ‘ ๐Ÿ‘
ConjugateGradient ๐Ÿ‘ ๐Ÿ‘
JohnsonAlgorithm ๐Ÿ‘ ๐Ÿ‘
Knapsack ๐Ÿ‘ ๐Ÿ‘
KruskalsAlgorithm ๐Ÿ‘ ๐Ÿ‘
LongestPath ๐Ÿ‘ ๐Ÿ‘
Minimax ๐Ÿ‘ ๐Ÿ‘
BestFirstSearch ๐Ÿ‘ ๐Ÿ‘
ConnectedComponentLabeling ๐Ÿ‘
LeakyBucket ๐Ÿ‘
PostmanSort ๐Ÿ‘
BinaryTree ๐Ÿ‘
CoinChange ๐Ÿ‘
Combination ๐Ÿ‘
DungeonGame ๐Ÿ‘
EulerToient ๐Ÿ‘
FenwickTree ๐Ÿ‘
HeavyLightDecomposition ๐Ÿ‘
InFixToPostFix ๐Ÿ‘
InverseFastFourierTransform ๐Ÿ‘
JosephusProblem ๐Ÿ‘
LongestBitonicSubsequence ๐Ÿ‘
LongestSubsetZeroSum ๐Ÿ‘
MatrixExponentiation ๐Ÿ‘
ModifiedBinarySearch ๐Ÿ‘
PersistentDataStructures ๐Ÿ‘
PrimalityTests ๐Ÿ‘
Prims ๐Ÿ‘
PruferCode ๐Ÿ‘
SegmentTree ๐Ÿ‘
SequenceAlignment ๐Ÿ‘
StringToToken ๐Ÿ‘
StronglyConnectedGraph ๐Ÿ‘
TarjansOfflineLCA ๐Ÿ‘
VEGASAlgorithm ๐Ÿ‘
Cocktailshakersort ๐Ÿ‘
DynamicProgramming ๐Ÿ‘
EdmondsKarp ๐Ÿ‘
ElevatorAlgorithm ๐Ÿ‘
HistogramEqualization ๐Ÿ‘
MinMaxABPruning ๐Ÿ‘
PearsonHashing ๐Ÿ‘
RodCuttingAlgorithm ๐Ÿ‘
PartialSort ๐Ÿ‘
AhoCorasick ๐Ÿ‘
BloomFilter ๐Ÿ‘
Luhn ๐Ÿ‘
Sumset ๐Ÿ‘

List of Algorithms

Folder structure should be like this [language]/[Algorithm name]/file For example:

  • Go/BubbleSort/BubbleSort.go
  • C++/QuickSort/QuickSort.cpp

License

Apache License 2.0

algorithms's People

Contributors

abdatta avatar abhitaker avatar adityadavera avatar anmol27katyani avatar astrophilic avatar atomc avatar chris-len avatar christianbender avatar dependabot[bot] avatar fcmam5 avatar fenilgandhi avatar fernandaochoa avatar gayansandaruwan avatar gionuno avatar jerr-it avatar langlk avatar lavalojan avatar ldhnam avatar maazadeeb avatar openarun avatar p0stmango avatar pabe94 avatar pranjalrai avatar sarthaksharmalive avatar shazly333 avatar srpurwaha201 avatar sudeepa14 avatar thuva4 avatar xirov avatar youssefali11997 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

algorithms's Issues

Case-insensitive fs collide all stuffs

Describe the bug
Case-insensitive filesystems collide all stuffs that's named the same (Case-different)
which might cause real annoying probs in the future

Rename all those things to something like algo.x and algo_1.x is better.

Prims in C

Can I implement Prims Algorithm in C?
Please assign it to me

Support

@thuva4
Can I help you with the open pull requests? I can help you maintain the project.

Josephus Problem in C++

Is your feature request related to a problem? Please describe.
I would like to implement Josephus problem solution

Describe the solution you'd like
I am implementing the solution in C++. It is an iterative solution and users set of CPP STL.

Additional context
Kindly assign this to me and add hacktoberfest tag.

Order Fibonacci algorithms

I was going to do some implementations of the Fibonacci algorithm and I have seen some are already done, I will do another PR for it. Now I have ordered the folder in the #283 because the C# implementation was a level above the others implementast

Issue while cloning repo

Describe the bug
BloomFilterTest.py. is causing following error while trying to clone repository:

error: invalid path 'algorithms/Python/BloomFilter/BloomFilterTest.py.'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

To Reproduce
Run the clone command:

$ git clone https://github.com/Thuva4/Algorithms.git

Expected behavior
It should clone the repo without problem

Desktop (please complete the following information):

  • OS: WIndows 10
  • Browser: Chrome
  • Version: Chrome Version 94.0.4606.61

Additional context
There is an extra period(.) at the end of file which is causing the issue

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.