Skip to content

eavivi4/Data-Structures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data-Structures

Linked List (List.cpp)

Created a Linked List object with functions such as insert, remove, reverse and print. image info

Doubly Linked List (List.cpp)

Created Doubly Linked List, which is a Linked List with a previous pointer to each node and a tail node, to keep track of the end of the list. image info

Hash Table (Hash_Table.cpp)

A Hash Table is a data structure which uses a hash function to compute the index in which the element will be added into, in the array. The hash function used is the mod of the array size. image info

Stack (Stack.cpp)

Linked List Stack implementation that includes the functions push, pop, print and top, using the last in, first out method. image info

Queue (Queue.cpp)

Linked List Queue implementation that includes the functions push, pop, print, front, and back, using the first in, first out method. image info

Priority Queue (Queue.cpp)

Linked List Priority Queue implementation, prioritizing elements by a number that is checked and includes the functions push, pop, print, front, and back, using the first in, first out method. image info

Binary Tree (Tree.cpp)

Tree in which each node has 0 to 2 children and is implemented with nodes. Includes insert and remove functions, as well as look up and print recursive functions. image info

Binary Search Tree (Tree.cpp)

Tree in which each node has 0 to 2 children and is implemented with nodes. The child on the left of a node is smaller than the current one and the child on the right is larger. Includes insert and remove functions, as well as look up and print recursive functions. image info

Trie (Tree.cpp)

Tree object that is used to insert words, where the root is empty. Each node has a bool to check if the word is complete and a hash map of children, mapping the characters onto the nodes. image info

Matrix Graph (Graph.cpp)

Graph represented with a vertex by vertex matrix. An edge between vertex a and b is represented by a 1 in the matrix, matrix[a][b] = 1. image info

Adjacency List Graph (Graph.cpp)

Graph represent with an adjacency list which is implemented with a vector of Vertex objects. Each Vertex object has a vector for it's adjacent vertices and its own data (Arrows in diagram represent object's array). image info

Min Heap (Heap.cpp)

Binary tree heap implementation that keeps track of the minimum value at the root. Each node is smaller than the nodes below and the tree is kept with heapify functions. image info

Max Heap (Heap.cpp)

Binary tree heap implementation that keeps track of the maximum value at the root. Each node is larger than the nodes below and the tree is kept with heapify functions. image info

Resources

What are Hash Functions and How to choose a good Hash

Hash Table

Binary Search Tree | Set 2 (Delete)

Trie Data Structure Implementation (LeetCode)

Graph and its representations

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages