Summary
Keywords
Full Transcript
Binary search is an efficient algorithm for finding an item from a sorted list of items. In this video Pragy Agarwal and Vamsi will help you understand what Binary Search is and solve important coding interview Binary Search questions. Learn more about Scaler now: https://bit.ly/3nvrkZ3 Binary Search works by repeatedly dividing in half the portion of the list that could contain the item until you have narrowed down the possible locations to just one.In its simplest form, binary search is used to quickly find a value in a sorted sequence (consider a sequence an ordinary array for now). We'll call the sought value the target value for clarity. Binary search maintains a contiguous subsequence of the starting sequence where the target value is surely located. What is Data Structure and Algorithm? Data Structure can be referred to as a collection of data objects that allows storing, organizing, and retrieving data on systems. An algorithm refers to a set of steps used in completing a certain task or to get the desired output. A deep understanding of Data Structures and algorithms helps in efficient and well-optimized coding. Data Structures and Algorithms are important since they are often considered to be the root or the foundation of computer science. They play an important role in implementing software and at the same time in the job interview process as well. The following topics are covered in this video: 0:00 - Introduction 0:25 - Why we need binary search 10:54 - Complexity of binary search 13:40 - Code for binary search 32:50 - Ceil of a element in an array 43:30 - Square root 58:24 - Introduction to binary search 1:19:00 - Implementation of binary search 1:45:55 - Time complexity of binary search 2:11:13 - Company questions on binary search 3:35:10 - Advance problems on binary search ---------------------------------------- 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! Know More about Scaler: https://bit.ly/3nvrkZ3 📌 Follow us on Social and be a part of an amazing tech community📌 👉 Meet like-minded coder folks on Discord - https://discord.com/invite/ejFeksEtTq 👉 Tweets you cannot afford to miss out on - https://twitter.com/scaler_official 👉 Check out student success stories, expert opinions and live classes on Linkedin - https://www.linkedin.com/school/scalerofficial 👉 Explore relatable memes and get access to exclusive updates on Instagram - https://www.instagram.com/scaler_official/ 📢 Be a part of our one of a kind telegram community: https://t.me/Scalercommunity 🔔 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! https://www.youtube.com/Scaler?sub_confirmation=1 #binarysearch #dsalgo #datastructures #algorithms
