Skip to main content

This helps in using of different data structure and algorithms

Project description

DSAPy

DSAPy is a Python package that provides implementations of various data structures and algorithms.

Installation

You can install DSAPy using pip:

pip install DSAPy

Features

DSAPy currently includes the following data structures and algorithms:

  • Stack
  • Queue
  • Linked List
  • Binary Tree
  • Graph
  • Searching algorithms (e.g., linear search, binary search)
  • Sorting algorithms (e.g., bubble sort, merge sort)

Usage

Here's a quick example of how to use DSAPy:

from DSAPy.dataStructure import Stack, Queue, LinkedList, Tree, Graph

# Create a stack
stack = Stack()
stack.push(1)
stack.push(2)
print(stack.pop())  # Output: 2

# Create a queue
queue = Queue()
queue.enqueue(1)
queue.enqueue(2)
print(queue.dequeue())  # Output: 1

# Create a linked list
linked_list = LinkedList()
linked_list.add_first(1)
linked_list.add_last(2)
linked_list.print_list()  # Output: 1 2

# Create a binary tree
tree = Tree()
tree.add(5)
tree.add(3)
tree.add(8)
tree.print_tree()  # Output: 3 5 8

# Create a graph
graph = Graph()
graph.add_vertex('A')
graph.add_vertex('B')
graph.add_edge('A', 'B')
graph.print_graph()  # Output: A : ['B']

Contributing

Contributions are welcome! If you'd like to contribute to DSAPy, please feel free to submit pull requests or raise issues on GitHub.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Feel free to customize it further according to your preferences and add more detailed explanations, examples, or sections as needed.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DSApy-0.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DSApy-0.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file DSApy-0.1.tar.gz.

File metadata

  • Download URL: DSApy-0.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.1

File hashes

Hashes for DSApy-0.1.tar.gz
Algorithm Hash digest
SHA256 4d459f8626026e511a47eb11049428242853bb1cfcc039e8869c3250d6ccb044
MD5 2d6a73e0a7d63e0da1063d9dec96631e
BLAKE2b-256 2a88999b1c33e189faf4936f5ee7ca6b75230fcabef15c9514d36d728b693a92

See more details on using hashes here.

File details

Details for the file DSApy-0.1-py3-none-any.whl.

File metadata

  • Download URL: DSApy-0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.1

File hashes

Hashes for DSApy-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38bdd526276eb84e62d0f6f4d7047dde41e0e3a3c68e289f1ecb3932cea6128e
MD5 76336c671898f7bab5bfa77cc05f6f43
BLAKE2b-256 b38eec1c8045d5ffc9ea0ec2bf3a79fbfb878ab14803f1d696e73ba6e297486b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page