Giter Site home page Giter Site logo

personal-projects-in-python's Introduction

Python

Everything interesting that have done in Python. Python is my programming language of choice, so any idea for a game or if I find something interesting in mathematics that I want to code, I do in Python.

Math

  • Linear Algebra (see README in that directory for more details)
  • Prime checker and Prime list generator
  • Fibonacci sequence generator
  • GCD calculator
  • Convert a number in base 10 to binary
  • Using the "repeated squares" method to calculate the a^b (mod n) of large numebrs
  • Checking if a number is a perfect square without a sqrt function

Sorting

I have code many sorting algorithms in C, which are avaiable in the repository labeled C. Using NumPy and MatPlotLib, I have animated a subset of these sorting algorithms. I have animated

TSP

TSP stands for "Traveling Salesman Problem". It is a famous problem in graph theory, which asks how to efficiently find the shortest path between two nodes in a graph. In this directory I have included my implementation of a graph in Python as well as the following solutions to the TSP

  • Nearest Neighbor
  • Dijkstra

Games

Games are always fun things to code in your free time. I have coded the following games.

Turtle

Turtle is a crude drawing tool in Python. I have coded a few things using it just for fun. I enjoy the intellectual excercise of figuring out the geometry to make everything connect. There is not much useful about any of this code however.

Useful

Syntax

There are many things that just require memorizing the syntax of the programming language in order to do.

  • Reading files
  • Writing files
  • Getting arguments from the terminal
  • Sorting a CSV file
  • Parallel processing
  • Timing code
  • HTTP requests
  • Writing to a mysql database

Data Structures

I have implemented many data structures in C, which are available in the repository labeled C. I have coded a subset of them in python as well.

Miscellaneous

  • Encryption
  • Solution to Optimal Scheduling Problem

One Liners File

Python has lambda notation for list generation, which can be very useful and the purpose is to make code more concise and readable. However, I think some people tend to over-use this notation in complicated ways sacraficing readability for brevity. I generally value readability of code, so I would never actually use these one-liners. However, I do enjoy the intellectual excercise of trying to figure out how to make them.

personal-projects-in-python's People

Contributors

ekeilty17 avatar

Stargazers

 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.