GithubHelp home page GithubHelp logo

varuns2002 / python-data-structures-algorithms Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 4.0 41 KB

Repository for Data Structures and Algorithms in Python.

License: GNU General Public License v3.0

Python 100.00%
python data-structures-algorithms matrix-calculations stack binary-tree-traversal tower-of-hanoi factors-factorial pascals-triangle permutations-and-combinations sorting-algorithm-visualizations

python-data-structures-algorithms's Introduction

Python-Data-Structures-Algorithms

Repository for Data Structures and Algorithms in Python.

These programs can be imported and used as modules in your programs.

Programs:

  1. matrix_operations.py

    • Mathematical operations on Matrices
    • Addition
    • Subtraction
    • Scalar Multiplication
    • Multiplication
    • Transpose
    • Identity
  2. stack.py

    • Stack Data Structure
    • Push
    • Pop
    • Top
  3. binary_tree_traversal.py

    • Traverse Binary Trees
    • Without any order
    • Pre order
    • In order
    • Post order
  4. tower_of_hanoi_stack.py

    • Tower of Hanoi puzzle
    • Display Steps
    • Uses Stack DS from stack.py as Rods
  5. factorial.py

    • Factorial of a Positive Integer
    • Iteration (for & while)
    • Recursion
  6. factors.py

    • Factors of Non-Zero Integers
    • Iteration (for & while)
    • Recursion
  7. permutations_combinations.py

    • Permutations & Combinations
    • nPr
    • nCr
    • Uses factorial.py for calculating factorials
  8. pascal_triangle.py

    • Pascal's Triangle
    • Uses permutations_combinations.py for calculating nCr
  9. sorting.py

    • Sorting List of Floats and/or Integers
    • Quick Sort
    • Merge Sort
    • Selection Sort
    • Insertion Sort
    • Bubble Sort
  10. sorting_time_comparison.py

    • Compare Time Complexity of Sorting Algorithms
    • Show Scores
    • Plot a Graph
    • Uses sorting.py for sorting algorithms
  11. searching.py

    • Searching within a List
    • Linear Search
    • Binary Search
    • Uses sorting.py for the sorting algorithm
  12. queue.py

    • Queue Data Structure
    • Single Ended Queue
    • Double Ended Queue
    • Enqueue
    • Dequeue

python-data-structures-algorithms's People

Contributors

varuns2002 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.