Bubble Sort Algorithm | Optimized Bubble Sort | Lecture-37 | Java and DSA Foundation course
Are you following the series regularly? We recommend doing this if you wish to have the maximum out of these concepts. In this class, Manvi Goel ma’am will...

College Wallah
70.4K views • Jan 23, 2023

About this video
Are you following the series regularly?
We recommend doing this if you wish to have the maximum out of these concepts.
In this class, Manvi Goel ma’am will take you a step ahead and explain Bubble Sort Algorithm.
Here, you will understand the basics of sorting, starting with Bubble Sort, its time and space complexity, and will learn how to code it in Java, starting from brute force to the most efficient approach.
We insist that you practice with the class to learn in the best possible way.
So what are we waiting for?
Let us meet in the class!
Are you finding the classes helpful?
Stay tuned for more!
Access the notes and assignments for this class for free at : https://pwskills.com/course/Cracking-the-Coding-Interview-in-Java---Foundation
PW Skills is announcing the launch of the following programs,
Binary Batch:- Java-with-DSA-&-System-Design (Java with DSA & System Design)
https://pwskills.com/course/Java-with-DSA-and-system-design (Hindi)
https://pwskills.com/course/Java-with-DSA-and-System-Design (English)
Sigma Batch:- Full-Stack-Web-Development (MERN Stack)
https://pwskills.com/course/Full-Stack-web-development (Hindi)
https://pwskills.com/course/Full-Stack-Web-Development (English)
Impact Batch:- Data-Science-Masters (Full Stack Data Science)
https://pwskills.com/course/Data-Science-masters (Hindi)
https://pwskills.com/course/Data-Science-Masters (English)
Website - https://pwskills.com/
Instagram - https://www.instagram.com/pwcollegewallah/
LinkedIn - https://www.linkedin.com/company/ineuron-ai
https://www.linkedin.com/company/physicswallah/
Telegram - https://t.me/SkillsPW
Discord - https://discord.gg/m7YSX6Xh
Twitter - https://twitter.com/pw__skills
TIME STAMPS:
0:00 Introduction
00:45 - Recursion Recap
03:04 - Github Repository for code
04:04 - Today’s Checklist
07:57 - Github Repository link
08:22 - Reason to learn Sorting Algorithms
09:40 - Bubble Sort Algorithm
10:32 - Example - 1
20:05 - Example - 2
24:31 - Code
30:48 - Time and Space Complexity
35:31 - Maximum number of swaps
37:14 - How to optimize bubble sort?
40:46 - Optimized approach Code
46:28 - Stable and Unstable Sort
48:18 - Is Bubble Sort Stable?
49:03 - Is Bubble Sort an in-place algorithm?
49:32 - Summary
50:57 - Next Lecture
51:00 - PW Skills Website
#Coding #Java #Tutorial #BubbleSort #Sorting #Bubble #Problemsolving #Problem #Solving #Math #Programming #ProgrammingLanguages #PWSkillslab #PWSkills #CollegeWallah #Javalecture #Coding #DSA #Java #CollegeWallah #PhysicsWallah #PWSkill #JavaProgramming
We recommend doing this if you wish to have the maximum out of these concepts.
In this class, Manvi Goel ma’am will take you a step ahead and explain Bubble Sort Algorithm.
Here, you will understand the basics of sorting, starting with Bubble Sort, its time and space complexity, and will learn how to code it in Java, starting from brute force to the most efficient approach.
We insist that you practice with the class to learn in the best possible way.
So what are we waiting for?
Let us meet in the class!
Are you finding the classes helpful?
Stay tuned for more!
Access the notes and assignments for this class for free at : https://pwskills.com/course/Cracking-the-Coding-Interview-in-Java---Foundation
PW Skills is announcing the launch of the following programs,
Binary Batch:- Java-with-DSA-&-System-Design (Java with DSA & System Design)
https://pwskills.com/course/Java-with-DSA-and-system-design (Hindi)
https://pwskills.com/course/Java-with-DSA-and-System-Design (English)
Sigma Batch:- Full-Stack-Web-Development (MERN Stack)
https://pwskills.com/course/Full-Stack-web-development (Hindi)
https://pwskills.com/course/Full-Stack-Web-Development (English)
Impact Batch:- Data-Science-Masters (Full Stack Data Science)
https://pwskills.com/course/Data-Science-masters (Hindi)
https://pwskills.com/course/Data-Science-Masters (English)
Website - https://pwskills.com/
Instagram - https://www.instagram.com/pwcollegewallah/
LinkedIn - https://www.linkedin.com/company/ineuron-ai
https://www.linkedin.com/company/physicswallah/
Telegram - https://t.me/SkillsPW
Discord - https://discord.gg/m7YSX6Xh
Twitter - https://twitter.com/pw__skills
TIME STAMPS:
0:00 Introduction
00:45 - Recursion Recap
03:04 - Github Repository for code
04:04 - Today’s Checklist
07:57 - Github Repository link
08:22 - Reason to learn Sorting Algorithms
09:40 - Bubble Sort Algorithm
10:32 - Example - 1
20:05 - Example - 2
24:31 - Code
30:48 - Time and Space Complexity
35:31 - Maximum number of swaps
37:14 - How to optimize bubble sort?
40:46 - Optimized approach Code
46:28 - Stable and Unstable Sort
48:18 - Is Bubble Sort Stable?
49:03 - Is Bubble Sort an in-place algorithm?
49:32 - Summary
50:57 - Next Lecture
51:00 - PW Skills Website
#Coding #Java #Tutorial #BubbleSort #Sorting #Bubble #Problemsolving #Problem #Solving #Math #Programming #ProgrammingLanguages #PWSkillslab #PWSkills #CollegeWallah #Javalecture #Coding #DSA #Java #CollegeWallah #PhysicsWallah #PWSkill #JavaProgramming
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
70.4K
Likes
1.3K
Duration
52:07
Published
Jan 23, 2023
User Reviews
4.7
(14) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now