Skip to content

A collection of absurd, convoluted, and rather impractical algorithms.

License

Notifications You must be signed in to change notification settings

concision/atrocious-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atrocious Algorithms

A collection of absurd, convoluted, and rather impractical algorithms.

This repository contains various algorithms that intentionally designed to be awful in nature, implemented in Java. The algorithms take a different and more creative/convoluted approach to solving a "problem" (i.e. recreational parodies) that is traditionally trivial to solve, or is already solved by well-known and efficient means. As a consequence, they may have horrendously intolerable asymptotic time and/or memory complexity (i.e. extremely computationally intensive), and are woefully impractical for production.

It is not wise to take any algorithms here seriously; however, their implementations may solve some unique challenges brought on by a convoluted approach.

Algorithms

  • parity: testing whether an integer's parity is even or odd
    • lcm (WIP): A "lookup table" based on a large BigInteger least-common multiple of 1, 3, 5, ..., 2^31 - 3, 2^31 - 1 (i.e. up to max integer) and tests parity based on division remainders.
  • ...more to come, in due time

Disclaimer: not all algorithms may necessarily be original ideas; however, they are original implementations.

About

A collection of absurd, convoluted, and rather impractical algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Languages