Find Maximum Number from Given Bits
Duration: 5 min
This video lesson is available to enrolled students.
Inside: a video lesson and guided study material.
Module outline
- Communication Round: Vocabulary, Subject Verb Agreement (Verb Noun Agreement), Tenses, Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Cloze Test (Cloze Passage), Sentence Correction (Error Correction), Sentence Completion (Fill in the blanks), Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Direct and Indirect Speech, Active Passive Voice (Voice), Verbal Analogy (Word Based Analogy), Articles, Preposition, Conjunction, Sentence Construction, English Writing Ability, Communication Assessment
- Quantitative Aptitude: Ratio and Proportion (Ratios), Divisibility Rules, Data Interpretation, Mixture and Alligation, Permutation and Combination, Logarithm, Number System, HCF LCM, Speed Time and Distance, Percentage, Average, Powers and Exponents (Surds and Indices), Time and Work, Mensuration and Geometry, Age Problems, Pipe and Cistern, Probability, Profit and Loss, Simple Interest and Compound Interest, Algebra
- Analytical and Logical Reasoning: Series (Number and Letter Series) (Numerical Relations and Reasoning), Coding Decoding, Data Sufficiency, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Directions (Direction Test), Ranking, Order and Sequence, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Selection Decision Table (Decision Making), Logical Sequence Of Words, Puzzle Solving (Puzzles), Syllogisms, Seating Arrangements, Calendar, Clock, Blood Relations, Cubes & Dices, Venn Diagram, Analytical Reasoning (Counting Figures Reasoning)
- Cognizant Gaming Aptitude: Gamified / Game Based Aptitude
- Java (Cluster 1): Java
- ANSI SQL MySQL (Cluster 1,2,3): SQL
- HTML, CSS, JavaScript (Cluster 1,3): HTML, CSS, JavaScript
- Python (Cluster 2): Python for Placements by Yash Sir
- Cloud Fundamentals (Cluster 2): Emerging Tech Trends
- C# (Cluster 3): C#
- OOPs: Object Oriented Programming (OOPS)
- Technical Assessment (Coding): Coding Questions by Yash Sir, C Programming by Yash Sir, Programming in C++, Pseudo Codes
- Data Structures: Introduction to DS, Array, Stack, Queue, Linked List, Tree, Graphs, Hashing
- DBMS: Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Decomposition Properties & 4NF, File Organization & Indexing, Relational Algebra, Relational Calculus, Transaction Management, Concurrency Control, Database Recovery, ORDBMS, Database Security & Authorization, Query Processing & Optimization, Enhanced Data Models, Data Warehousing & Mining, Big Data Systems, NoSQL
- Operating Systems: Introduction to OS, Process Management, CPU Scheduling, Process Synchronization, Deadlock, Threads & Process Creation, Memory Management, Virtual Memory, Disc Scheduling, File Management, Windows OS, Linux OS, Security, Distributed Systems, Virtual Machines
- Computer Networks: Introduction to CN, Data Communication, DLL: Access Control, DLL: Flow Control, DLL: Error Control, DLL: Framing, Data Link Layer - Ethernet, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Net Layer:Routing Protocol, Transport Layer Services, TL: Congestion & UDP, Application Layer, Hardware basics, Network Security, Mobile Technology, Cloud Computing and IoT, Cyber and Info Security
AI summary & chapters
AI Summary
An AI-generated summary of this video lecture.
This video is a programming lecture from Knowledge Gate Eduventures, presented by an instructor named Yash Jain Sir. The lesson focuses on solving a problem related to finding the maximum number of shops Jetha can visit, given constraints on the number of bits (L) used to represent the total number of shops (N). The problem is introduced with a narrative about Jetha liking chocolates and needing to visit shops. The instructor explains that the total number of shops N is 2^L, and the number of shops he can visit is N - i, where i is his starting shop. The solution is derived as (2^L) - i. The lecture then transitions to a C programming implementation, where the instructor writes code to solve the problem. The code uses the pow() function to calculate 2^L, subtracts the starting shop index i, and prints the result. The video includes on-screen text, code snippets, and a small video feed of the instructor.
Chapters
0:00 – 2:00 00:00-02:00
The video begins with the Knowledge Gate logo, followed by a slide showing the company's various educational offerings, including 'KG GATE & COLLEGE', 'KG PLACEMENT PREP', 'KG CODING', and 'KG UGC NET PREP'. The main content starts with a PowerPoint slide presenting a programming problem. The problem states that there are N shops in a market, labeled 1 to N, and Jetha starts from shop i. He has L bits to represent N, and the task is to find the maximum number of shops he can visit. The slide provides two examples: Example 1 with i=2, L=3, resulting in N=8 and 6 shops to visit; Example 2 with i=1, L=2, resulting in N=4 and 3 shops to visit. The instructor, Yash Jain Sir, is visible in a small window at the bottom right, and the slide includes a meme of a man with the text 'When Someone Unknown Reacts Haha On my Profile Pic'.
2:00 – 4:30 02:00-04:30
The instructor explains the problem, emphasizing that the total number of shops N is 2^L, as L bits can represent 2^L different values. He writes the formula on the screen: N = 2^L. He then explains that the number of shops Jetha can visit is N - i, which simplifies to 2^L - i. He demonstrates this with the examples: for L=3, N=8, and 8-2=6; for L=2, N=4, and 4-1=3. The instructor then transitions to coding, writing a C program. He declares variables i, l, and j. He uses scanf to read i and l. He calculates j as pow(2, l) - i, where pow(2, l) is 2^l. He then prints the result j. The code is shown on the screen, with the instructor explaining each line. The video ends with the instructor concluding the explanation of the code.
The video presents a complete, step-by-step tutorial on solving a programming problem. It starts with a clear problem statement, uses real-world examples to illustrate the concept of binary representation (2^L), and then provides a direct, functional C code solution. The progression from problem understanding to code implementation is logical and well-structured, making it an effective learning resource for students preparing for coding interviews or competitive programming.