filmov
tv
Merge Sort Algorithm Made Easy for Beginners | Merge Sort Explained with Example | Data Structures
Показать описание
🔹 Working of Merge Sort
The working of merge sort is based on the divide and conquer algorithm. It is a popular recursive algorithm that continuously splits an array into half until the list is empty or has only one item remaining.
Put simply, it breaks down a set/problem into two or more subsets until each subset is simple enough to be solved directly. Merge sort then follows the process of taking two smaller arrays and combining them to form a new list.
🔹 The concept of divide and conquer primarily involves three steps:
Step 1: Divide the problem into multiple small problems
Step 2: Conquer the smaller problems
Step 3: Combine the solution of all the subproblems to arrive at the final solution
Merge Sort is also one of the fastest sorting algorithms in data structure that work in 0(nlogn) time complexity.
The following topics are covered in this Merge Sort video 👇🏼
0:00 Introduction
0:10 What is Merge Sort
11:51 Merge Sort with Examples
20:15 How Does Merge Sort Work
---------------------------------------- About Scaler --------------------------------------------------
We are a tech-focused upskilling and reskilling platform catering to tech enthusiasts in universities and working professionals. There are more Scaler graduates working at Amazon than all of the IITs combined!
📌 Follow us on Social and be a part of an amazing tech community📌
🔔 Hit that bell icon to get notified of all our new videos 🔔
If you liked this video, please don't forget to like and comment. Never miss out on our exclusive videos to help boost your coding career! Subscribe to Scaler now!
#mergesort #mergesortalgorithm
Комментарии