Skip to main content

Welcome to coding in paradise!

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()

Coding Examples:

0. 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()

1. 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()

2. 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()

3. 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()

4. 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()

5. 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()

6. 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()

7. 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()

8. 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()

9. 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()

10. 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()

11. 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.20.tar.gz (10.2 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.20-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coderzparadise-0.9.20.tar.gz
  • Upload date:
  • Size: 10.2 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.20.tar.gz
Algorithm Hash digest
SHA256 39859f1f30af91465022c21dffbec914e6185f10eef08744bdc64e3f11e186c9
MD5 e762c8bfef1432a3ee82cb6c30e2904e
BLAKE2b-256 2266d15c71c086c330fdd701116eb0c39ddb9dcb56f694240f5676b16c3e5dbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for coderzparadise-0.9.20-py3-none-any.whl
Algorithm Hash digest
SHA256 51882973e8e9ba273a498e530f440473969fe1d778cdc46a4b008333fb2b1774
MD5 b8b5560fe9c64185d97aed169711de06
BLAKE2b-256 7365256730830eaf01f462c8de5e6996a42d1372ee7b3f8d99485bb00e517c0b

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