gajanan0707 / Data-Structure-with-Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data-Structure-with-Python

Stack :

plot plot

Queue :

plot plot

Types of Queue

There are four different types of queues:

  • Simple Queue
  • Circular Queue
  • Priority Queue
  • Double Ended Queue

Simple Queue:

img.png

Circular Queue:

img_1.png

Priority Queue:

img_2.png

Double Ended Queue:

img_3.png

Types of Deque :

  • Input Restricted Deque :- In this deque, input is restricted at a single end but allows deletion at both the ends.
  • Output Restricted Deque :- In this deque, output is restricted at a single end but allows insertion at both the ends.

Linked List:

img_4.png

Linked List Operations: Traverse, Insert and Delete:

Here's a list of basic linked list operations that we will cover in this article :-

  • Traversal - access each element of the linked list
  • Insertion - adds a new element to the linked list
  • Deletion - removes the existing elements
  • Search - find a node in the linked list
  • Sort - sort the nodes of the linked list

Types of Linked List :

  • Singly Linked List
  • Doubly Linked List
  • Circular Linked List

img_5.png

img_6.png

img_7.png

Hash Table :

img_8.png

Heap :

img_9.png

Tree Data Structure :

img_10.png

Types of Tree

  • Binary Tree
  • Binary Search Tree
  • AVL Tree
  • B-Tree

Tree Traversal - inorder, preorder and postorder

img.png

Binary Tree

img.png

Types of Binary Tree

  1. A Full Binary Tree : img.png
  2. Perfect Binary Tree: img_1.png
  3. Complete Binary Tree : img_2.png
  4. Degenerate or Pathological Tree : img_3.png
  5. Skewed Binary Tree : img_4.png
  6. Balanced Binary Tree : img_5.png

B-tree

img_5.png

About

License:Apache License 2.0


Languages

Language:Python 100.0%