Skip to main content

A package made from scratch by CoderzParadise that makes using Data Structures as easy as possible for humans and AI.

Project description

Coderz Paradise

Data Structure library made easy

Coderz Paradise is a package made from scratch in Python by CoderzParadise that makes using Data Structures as easy as possible for humans and AI. Download and get started in under 4 minutes. Supported by ACM (Association of Computing Machinery).

Installation (How To Get Started)

  1. Install pip package in your terminal (command prompt)
pip install coderzparadise
  1. Use the examples below in your code :)

  2. Done!

Data Structure's

Organized way to store and manage data.

Index Data Structure Class Name
0 Binary Search Tree BST()
1 Disjoint Forrest Set DSF(int::size)
2 Graph - Adjacency List AdjacencyList(list::nodes)
3 Graph - Adjacency Matrix AdjacencyList(list::nodes)
4 Graph - Edge List EdgeList(list::nodes)
5 HashMap HashMap(int::size)
6 Heap Heap()
7 LinkedList LinkedList()
8 Queue Queue()
9 Set Set()
10 Stack Stack()
11 Trie() Trie()

Binary Search Tree

from coderzparadise import DataStructure

b = DataStructure.BST()

b.insert(50)
b.insert(75)
b.insert(25)
b.insert(100)
b.insert(95)

b.display()

DisjointForrestSet

from coderzparadise import DataStructure

d = DataStructure.DSF(10) #parameter: (integer) 10 is setting size of disjointforrestset.

d.insert(0, 1)
d.insert(0, 3)
d.insert(0, 5)
d.insert(0, 7)
d.insert(0, 9)
d.insert(2, 4)
d.insert(2, 6)

number_of_sets_found = d.num_of_sets()
print('dsf num of sets: ', number_of_sets_found,\n)

d.display()

Graph - Adjacency List

from coderzparadise import DataStructure

a = DataStructure.AdjacencyList([0,1,2,3,4,5,6,7,8,9]) #parameter: list is nodes that make up the graph.

a.insert(9, 1)
a.insert(9, 2)
a.insert(9, 3)
a.insert(9, 4)
a.insert(0, 5)
a.insert(0, 3)

a.display()

Graph - Adjacency Matrix

from coderzparadise import DataStructure

a = DataStructure.AdjacencyMatrix([0,1,2,3,4,5,6,7,8,9]) #parameter: list is nodes that make up the graph.

a.insert(9, 1)
a.insert(9, 2)
a.insert(9, 3)
a.insert(9, 4)
a.insert(0, 5)
a.insert(0, 3)

a.display()

Graph - EdgeList

from coderzparadise import DataStructure

e = DataStructure.AdjacencyMatrix([0,1,2,3,4,5,6,7,8,9]) #paramter: list is nodes that make up the graph.

e.insert(9, 1)
e.insert(9, 2)
e.insert(9, 3)
e.insert(9, 4)
e.insert(0, 5)
e.insert(0, 3)

e.display()

Hash Map

from coderzparadise import DataStructure

h = HashMap(2) #parameter: (integer) 2 is setting up the inital size of hashmap.

h.insert('soccer')
h.insert('soccer')
h.insert('basketball')
h.insert('pizza')
h.insert('hamburger')

h.display()

Heap

from coderzparadise import DataStructure

h = Heap()

h.insert(16)
h.insert(16)
h.insert(37)
h.insert(28)
h.insert(49)
h.insert(21)
h.insert(5)

h.display()

Linked List

from coderzparadise import DataStructure

ll = DataStructure.LinkedList()

ll.insert(75)
ll.insert(75)
ll.insert(80)
ll.insert(81)
ll.insert(99)
ll.insert(2)
ll.insert(77)

ll.display()

Queue

from coderzparadise import DataStructure

q = DataStructure.Queue()

q.insert(10)
q.insert(10)
q.insert(20)
q.insert(30)
q.insert(40)
q.insert(50)

q.display()

Set

from coderzparadise import DataStructure

ll = DataStructure.Set()

s.insert(10)
s.insert(10)
s.insert(20)
s.insert(50)
s.insert(50)
s.insert(50)
s.insert(50)
s.insert(30)

s.display()

Stack

from coderzparadise import DataStructure

s = DataStructure.Stack()

s.insert(10)
s.insert(10)
s.insert(20)
s.insert(30)
s.insert(40)
s.insert(50)

s.display()

Trie

from coderzparadise import DataStructure

t = DataStructure.Trie()
t.insert("socks")
t.insert("soccer")
t.insert("colors")
t.search_word("sock")
t.search_word("socks")
t.is_prefix("b")
t.is_prefix("s")



GitHub Repo:

Coderz Paradise

Youtube Channel:

Coderz Paradise

Soundcloud:

(Coderz Paradise Music coming soon!)

Project details


Download files

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

Source Distribution

coderzparadise-0.9.13.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

coderzparadise-0.9.13-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file coderzparadise-0.9.13.tar.gz.

File metadata

  • Download URL: coderzparadise-0.9.13.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for coderzparadise-0.9.13.tar.gz
Algorithm Hash digest
SHA256 ff3f7f6eba7de14551ce0d8732fa9d0ea58b8c7a60ad8f70747994984a7ad5fb
MD5 eb643c5d035cae4a09a02d88880996d1
BLAKE2b-256 0e553bfb5d8595c8df4e42c1c714b09e69a92d8ee034242d50230b49a03e2d71

See more details on using hashes here.

File details

Details for the file coderzparadise-0.9.13-py3-none-any.whl.

File metadata

File hashes

Hashes for coderzparadise-0.9.13-py3-none-any.whl
Algorithm Hash digest
SHA256 4d1f5035102152dc5710219529996f494906c314a11566c0161509b62ae067df
MD5 55a5feb55be9f4df164e4178917423d4
BLAKE2b-256 7d0d766a220d1bdc13564f043766c05ddbfaf91f17702d2250dbd70f11ee95ba

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