GithubHelp home page GithubHelp logo

tobuya / data-structures Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

This repository is dedicated to creating fundamental visual representations of various non-primitive data structures using Python. Each data structure will be visually depicted, accompanied by a link to a corresponding Medium article. These articles will provide an in-depth exploration of the major operations of each structure.

License: MIT License

Python 100.00%
articles data-structures matplotlib numpy-library python

data-structures's Introduction

Contributors LastUpdate Stargazers Issues License

Table of Contents

Data Structures

This repository is dedicated to creating fundamental visual representations of various non-primitive data structures using Python. Each data structure will be visually depicted, accompanied by a link to a corresponding Medium article. These articles will provide an in-depth exploration of the major operations of each structure, supplemented with code snippets in Python and JavaScript.

A data structure is a data organization, management, and storage format that enables efficient access and modification. There are two types of data structures:

  • Primitive data structures - data structures that hold a single value (int, char, float, double, and pointer)

  • Non-primitive data structures - data structures that can hold several values. It is divided into two:

    1. Linear - data is arranged in sequential manner, i.e, one element is connected to only one element in linear form (Arrays, Linked list, Stacks, and Queues).

    2. Non-linear - data is arranged in a random manner, i.e, one element is connected to 'n' number of elements (Trees and Graphs).

The major operations that we will perform on each data structure include:

  • Searching: We will search for any element in the data structure.

  • Sorting: We will sort the elements of a data structure either in an ascending or descending order.

  • Insertion: We will insert the new element in the data structure

  • Updation: We will update the element, i.e., replace the element with another element.

  • Deletion: We will perform the delete operation to remove the element from the data structure.

(back to top)

๐Ÿ“˜ Getting Started

To run this project locally, you'll need to follow these steps.

๐Ÿ“‹ Prerequisites

Make sure you have the following installed on your machine:

๐Ÿ“‚ Setup

Clone this repository to your desired folder.

cd my-desired-folder
git clone [email protected]:tobuya/data-structures.git
cd data-structures

Create a virtual environment using venv module available in Python 3.x (Recommended)

  • Create a virtual environment

    python -m venv desired-name
  • Activate the virtual environment

    On Windows

    desired-name\Scripts\activate

    On Linux and macOS

    source desired-name/bin/activate

๐Ÿ“ฅ Installation

Install the required dependencies with:

pip install -r requirements.txt

๐Ÿ’ป Generate Visualizations

To generate the visualizations, execute the following command:

python <data-structure-name>.py

(back to top)

๐Ÿ‘จโ€๐Ÿš€ Authors

๐Ÿ‘ค Thomas Obuya

(back to top)

๐ŸŽฏ Future Features

  • Add Data Structures section containing visualization and a Medium article link.
  • Add other data structures visualization Python code
  • Update the README documentation
  • Add an assets folder containing all the data structures visualization

(back to top)

๐Ÿค Contribution

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

๐Ÿ’– Show Your Support

If you like this project, please consider giving it a โญ.

You can also follow me on X/Twitter. Let's connect, share ideas, and grow together in our journey through the world of software development.

(back to top)

๐Ÿ™ Acknowledgements

I extend my sincere gratitude to everyone contributing their valuable insights and expertise to enhance this project. Your thoughts and contributions are immensely appreciated and vital to further improving this project, so bring them on.

(back to top)

๐Ÿ“œ License

This project is MIT licensed.

(back to top)

data-structures's People

Contributors

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