
Merge two sorted lists into one final sorted list by repeatedly comparing the first elements and inserting the smaller, then append the remaining elements when a sublist ends.
Explore how to implement selection sort in C++, including finding the minimum element and swapping it into place. The lesson demonstrates an unsorted list with iterations, prints, and complexity notes.
Analyze the time and space complexity of selection sort, showing all three cases yield O(n^2) time and O(1) extra space, and explain stability and how to make it stable.
learn to represent a binary tree with an array, using two dimensions for left and right children, and zeros as nulls to enable preorder traversal.
Learn how in-order traversal processes the left subtree, then the root, then the right, using a recursive pattern on trees, illustrated with a family-tree example.
Implement in order traversal using a 2D array in C++, mirroring preorder with left and right indices, treating missing nodes as zero and using recursion to visit left, root, right.
Master the postorder traversal by recursively processing the left subtree, then the right subtree, and finally the root, and compare it to preorder and inorder.
Examine the time-space complexity of binary tree traversals, showing each node is processed once. All three traversals share O(n) time, while space grows with tree height.
This is an online Comprehensive Course with more than 5 hours of Videos in which we will be covering various Sorting Algorithms in detail using Visual and Animated presentation . In order to understand Sorting algorithms, firstly we need to understand the basics of Data Structure and then the concept in which we can analyze the complexity of algorithm in which we will be covering both Space and time Complexity, for this you can also refer my Learn Basics of Data Structure Course.
Sorting Algorithms are Discussed with Example, then their algorithms, then their line by line coding explained using C++ followed by Complexity Analysis using BIG O Notation.
We will be covering both Comparison and Non Comparison based Sorting ,
What's Covered :
Bubble Sort
Merge Sort
Two Way Merge Sort
Quick Sort
Insertion Sort
Selection Sort
Counting Sort
Radix Sort
Heap Sort
By the end of this Course, leaner will be able to understand that which sorting algorithm is best for which data set. For example, if data set is small then Bubble Sort is good approach whereas if data set is large then Quick Sort is more suitable as it keeps on sorting by dividing the list and so speed of sorting the elements increases. Learners can check their concepts by attempting the Practice test ( Assignment and Quiz) based on Interview Questions .