Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Sorting | Time and Space Analysis | Lecture 11 | C Programming
Play lesson

C Programming Course - Sorting | Time and Space Analysis | Lecture 11 | C Programming

4.0 (2)
29 learners

What you'll learn

This course includes

  • 42.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Hello everyone!! In this video, Raghav sir is going to teach you various sorting algorithms. Before introducing sorting algorithms he will explain the concept of time and space complexity analysis with a very simple example. He will introduce the big O notation and will eventually solve many interesting questions of time and space complexity. Also, he will be discussing the very famous 2-pointer approach which is very helpful in solving specific questions efficiently. He will explain bubble sort, insertion sort, selection sort algorithm with dry run on example and coding implementation. After watching this video you are going to have a crystal clear idea of all the different algorithms of sorting and you will be able to predict which one is better to use in different situations. For more such lecture videos don’t forget to like, share and subscribe to collegewallah channel. Access the notes and assignments for this class for free at : ▶️http://bit.ly/3x4FjJ9 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: 00:00 Introduction 01:51 - Today’s checklist 02:14 - understanding time and space complexity through a question. 04:40 - First method(brute force) approach discussion 12:38 - Second method (optimized) approach discussion 20:50 - Most optimized approach discussion 29:32 - Time complexity in terms of big O notation 44:17 - Space complexity in terms of big O notation 47:52 - Question based on 2-pointer approach 1:06:02 - Bubble sort algorithm 1:42:44 Time complexity of bubble sort 1:49:47 Optimised bubble sort using flag 2:08:14 Ques 3 2:08:56 Ques 4 2:09:45 Selection Sort 2:41:29 Time Complexity of selection sort 2:52:46 Ques 5 2:53:18 Ques 6 2:55:00 Insertion Sort 3:18:50 Code for Insertion sort 3:35:17 Ques 7 3:35:38 Ques 8 3:36:29 Ques 9 : Move zeroes to end 3:47:08 Ques 10 : Move zeros to end in place 3:55:46 HW 1 : Return the kth smallest element 3:58:08 HW 2 : Form the smallest number #CProgramming #Sorting #Bubblesort #Insertionsort #TimeandSpaceAnlysis #OneShotCCourse #CompleteCTutorial #CLecture11 #ProgrammingBasics #LearnCProgramming #OneShotCTutorial #PhysicsWallah #CollegeWallah #PWSkills

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere