Javascript

  •        6

These are for demonstration purposes only. There are many implementations of sorts in the Javascript standard library that are much better for performance reasons. From Wikipedia: Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted.

https://github.com/TheAlgorithms/Javascript

Tags
Implementation
License
Platform

   




Related Projects

Python - All Algorithms implemented in Python

  •    Python

These are for demonstration purposes only. There are many implementations of sorts in the Python standard library that are much better for performance reasons. From Wikipedia: Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted.

Sorting Algorithm Visualization

  •    

Sorting Algorithm Visualization Displays Bead Sort, Binary Tree Sort, Bubble Sort, Bucket Sort, Cocktail Sort, Counting Sort, Gnome Sort, In Place Merge Sort, Insertion Sort, Merge Sort and more...

interview - Data Structures and Algorithms in Java (useful in interview process)

  •    Java

Very useful in interview process for Java Software Development Engineer (SDE). The loop executes N times, so the sequence of statements also executes N times. If we assume the statements are O(1), the total time for the for loop is N * O(1), which is O(N) overall.

SwiftGraph - A Graph Data Structure in Pure Swift

  •    Swift

SwiftGraph is a pure Swift (no Cocoa) implementation of a graph data structure, appropriate for use on all platforms Swift supports (iOS, macOS, Linux, etc.). It includes support for weighted, unweighted, directed, and undirected graphs. It uses generics to abstract away both the type of the vertices, and the type of the weights. It includes copious in-source documentation, unit tests, as well as search functions for doing things like breadth-first search, depth-first search, and Dijkstra's algorithm. Further, it includes utility functions for topological sort, Jarnik's algorithm to find a minimum-spanning tree, detecting a DAG (directed-acyclic-graph), and enumerating all cycles.


javascript-algorithms - 🤖 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

  •    Javascript

This repository contains JavaScript based examples of many popular algorithms and data structures. Each algorithm and data structure has its own separate README with related explanations and links for further reading (including ones to YouTube videos).

Java - All Algorithms implemented in Java

  •    Java

Algorithms are implemented in Java. This is for education purpose only. Algorithms include Sorting, Search Algorithms, Dynamic Programming, Ciphers, Data Structures and few more.

DataStructureAndAlgorithms - Write code that run faster, use less memory and prepare for your Job Interview

  •    Java

In this course you will learn how to Analysis algorithms like Sorting, Searching, and Graph algorithms. And how to reduce the code complexity from one Big-O level to another level. Furthermore, you will learn different type of Data Structure for your code. Also you will learn how to find Big-O for every data structure, and how to apply correct Data Structure to your problem in Java. By the end you will be able to write code that run faster and use low memory. You Also will learn how to analysis problems using Dynamic programming.

java-algorithms-implementation - Algorithms and Data Structures implemented in Java

  •    Java

This is a collection of algorithms and data structures which I've implement over the years in my academic and professional life. The code isn't overly-optimized but is written to be correct and readable. The algorithms and data structures are well tested and, unless noted, are believe to be 100% correct.

Science.NET

  •    CSharp

A scientific library written in managed code. It supports advanced mathematics (algebra system, sequences, statistics, combinatorics...), data structures, sort algorithms...

Decodify - Detect and decode encoded strings, recursively.

  •    Python

Boom! Thats what Decodify does. It automatically detects the encoding and decodes it and it does that recursively. Warning: Decodify uses third party web services for MD5, SHA1 & SHA2 hash lookups. If you are dealing with sensitive data, you are advised to use the -s option which will prevent Decodify to use these services.

go-algorithms - Algorithms and data structures for golang

  •    Go

go-algorithms - implementation of different algorithms and data structures with golang. Clone https://github.com/0xAX/go-algorithms.git repo, it must be in your $GOPATH.

.NET Crypto Library (Devv.Core.Crypto)

  •    DotNet

Devv.Core.Crypto is an encryption library written in VB.NET. It supports all the major Cipher and Hash algorithms: RC2, DES, TripleDES, AES (Rijndael), SHA and MD5. The configuration can be done using the application settings file, and it's quite easy to integrate. Compatible ...

ANUBIS Crypto Engine (Verilog)

  •    

This is a hardware crypto engine for the Anubis block cipher written in Verilog.

pycipher

  •    Python

pycipher is a Python module that implements several well-known classical cipher algorithms; namely: Atbash, Autokey, Beaufort, Caesar, Vernam (a.k.a. one-time pad), and Vigenegrave;re.

algorithms - Ruby algorithms and data structures. C extensions

  •    Ruby

Using the right data structure or algorithm for the situation is an important aspect of programming. In computer science literature, many data structures and algorithms have been researched and extensively documented. However, there is still no standard library in Ruby implementing useful structures and algorithms like Red/Black Trees, tries, different sorting algorithms, etc. This project will create such a library with documentation on when to use a particular structure/algorithm. It will also come with a benchmark suite to compare performance in different situations. See LICENSE.md.

algos - Popular Algorithms and Data Structures implemented in popular languages

  •    Java

Community (college) maintained list of Algorithms and Data Structures implementations. See CONTRIBUTING.md.

cosmos - Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter | Ask us anything at our forum

  •    C++

Cosmos is your personal offline collection of every algorithm and data structure one will ever encounter and use in a lifetime. This provides solutions in various languages spanning C, C++, Java, JavaScript, Swift, Python, Go and others. This work is maintained by a community of hundreds of people and is a massive collaborative effort to bring the readily available coding knowledge offline.

interactive-coding-challenges - Interactive Python coding interview challenges (algorithms and data structures)

  •    Python

Overhauled to now include 120 challenges and solutions and added Anki flashcards.Also included are unit tested reference implementations of various data structures and algorithms.