Data Structures Foundation-2021 Batch - Class Notes
Data Structures Foundation-2021 Batch - Class Notes
Data Structures Foundation-2021 Batch - Class Notes
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Arrays
Linked List
Linked List
Linked List
Linked List
Linked List
Linked List
Linked List
Linked List
Linked List
Linked List
Linked List
Linked List
We wrap both the data item and the next node reference in a "node". Each node has a data item and a pointer to another node.
Linked List
Linked List
Linked List
Linked List
Linked List
Class
Attribute
Function
Object
Instance
Understanding the concept
of class (in python)
Doubly Linked List
Doubly Linked List:
Insertion at the Beginning
Doubly Linked List
Doubly Linked List: Insertion in between two nodes
Let's add a node with value 6 after node with value 1 in the doubly linked list.
Doubly Linked List: Insertion in between two
nodes
Doubly Linked List: Insertion in between two
nodes
Doubly Linked List: Insertion at the End
Let's add a node with value 6 at the end of the doubly linked list.
Doubly Linked List: Insertion at the End
Let's add a node with value 6 at the end of the doubly linked list.
Doubly Linked List: Deletion from a Doubly Linked List
Doubly Linked List: Deletion from a Doubly
Linked List
Doubly Linked List: Deletion from a Doubly Linked List
Doubly Linked List: Deletion from a Doubly
Linked List
Doubly Linked List: Complexity
Pre-order
In-order
Post-order
Python Implementation of Binary Tree
Output:
Full Binary Tree
Output:
Binary Search Algorithm
Binary Search Tree(BST)
Binary Search Tree(BST)
There are two basic operations that you can perform on a binary search tree:
Binary Search Tree(BST)
Binary Search Tree(BST)
Binary Search Tree(BST)
Binary Search Tree(BST)
Binary Search Tree operations in Python
Binary Search Tree operations in Python
Heap Data Structure
Heap Data Structure
Heap Data Structure
Python Code for Max Heap Data Structure
Python Code for Min Heap Data Structure
Insertion in Heap Data Structure
Deletion in Heap Data Structure
Heap Data Structure
Heap Data Structure
Balanced Binary Tree
Balanced Binary Tree
AVL Tree
AVL Tree
AVL Tree
AVL Tree
AVL Tree
AVL Tree
AVL Tree
AVL Tree Implementation
AVL Tree Complexity
Deque (doubly ended queues)
Deque (doubly ended queues)
● Deque or doubly ended queues are linear data structures with which we can perform last in
first out (LIFO) operations as well as first in first out (FIFO) operations.
● Deques have many applications in real life such as implementing undo operation in
softwares and in storing the browsing history in the web browsers.
Deque (doubly ended queues)
Deque (doubly ended queues)
Deque (doubly ended queues)
Deque (doubly ended queues)
Deque (doubly ended queues)
Quick Sort
Quick Sort
Quick Sort
Quick Sort
Quick Sort Implementation
Quick Sort
Quick Sort
Quick Sort
Selection Sort
Selection Sort
Selection Sort
Selection Sort: Python Implementation
Selection Sort
Merge Sort
Merge Sort
Merge Sort
Merge Sort: An Illustration
Merge Sort: Python Implementation
Merge Sort: Code Trace
https://docs.google.com/document/d/128aWMWR5Fs33shAlFsPC-0A8bNjtHRjx/
edit?usp=sharing&ouid=107172905328835780244&rtpof=true&sd=true
Merge Sort: An Illustration
Merge Sort: Application