Coder Social home page Coder Social logo

algorithms_python's Introduction

Other python algorithms

These are a few python algorithms made with python. These include:

  • A code to compare the speed of two methods to find the square root of a large number, binary search and linear search (square_root.py)
  • A code to achieve binary search implementation using recursive algorithm (binary_search_recursive.py)
  • A code to implement quick sort algorithm using recursive method (quick_sort.py)
  • A code to implement insert sort algorithm (insert_sort.py)
  • A code to implement selection sort algorithm (selection_sort.py)
  • A code to implement bubble sort algorithm (bubble_sort.py)
  • A code to calculate the factorial of a number (factorial.py)
  • A code to calculate the greatest common divisor(GCD) of a number using recursive algorithm (gcd_recursive.py)
  • A code to calculate the greatest common divisor(GCD) of a number (gcd.py)
  • A code to calculate the least common multiplier(LCM) of a number (lcm.py)
  • A code to find out if the number is a palindrome number (palindrome_number.py)

Running Guide

This project is based on the Python programming language and primarily utilizes standard libraries like time.

Environment Setup

Download the requirements.txt and install the required Python libraries. Please note all my 4 projects share the same requirements.txt. If you have done the installation for one project, you can skip it for the other 3 projects

# install all packages using requirements.txt
python -m pip install -r requirements.txt

Trying it out

You can try out the code and also mess with the parameters and test out different combinations. I hope you will enjoy messing with the code!

algorithms_python's People

Contributors

theo-xiao-sg avatar

Watchers

 avatar

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.