Next Fit Policy
Duration: 3 min
This video lesson is available to enrolled students.
Inside: a video lesson and guided study material.
Module outline
- English Comprehension/Verbal Ability: Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Vocabulary, Sentence Correction (Error Correction), Sentence Completion (Fill in the blanks), Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Subject Verb Agreement (Verb Noun Agreement), Tenses, Verb, Articles, Preposition, Conjunction, Pronoun, Noun, Adjectives, Adverb, Modals, Cloze Test (Cloze Passage), Active Passive Voice (Voice), Direct and Indirect Speech, Sentence Construction
- Logical Ability: Coding Decoding, Directions (Direction Test), Analogy, Inequality, Data Sufficiency, Series (Number and Letter Series) (Numerical Relations and Reasoning), Syllogisms, Seating Arrangements, Puzzle Solving (Puzzles), Blood Relations, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Ranking, Order and Sequence, Logical Sequence Of Words, Data Arrangement, Venn Diagram, Calendar, Clock
- Quantitative Ability: Logarithm, Permutation and Combination, Probability, Profit and Loss, Speed Time and Distance, Mixture and Alligation, Partnership, Simple Interest and Compound Interest, Percentage, Ratio and Proportion (Ratios), Average, Time and Work, Pipe and Cistern, Number System, Divisibility Rules, HCF LCM, Algebra, Powers and Exponents (Surds and Indices), Mensuration and Geometry, Age Problems, Data Interpretation, Sequence and Series (Series)
- Basic Analytical Ability: Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Analytical Reasoning (Counting Figures Reasoning), Cubes & Dices, Selection Decision Table (Decision Making)
- Computer Programming: Pseudo Codes, Coding Questions by Yash Sir, C Programming by Yash Sir, Programming in C++, Java, Python for Placements by Yash Sir
- DBMS (Computer Science): Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Transaction Management, Concurrency Control, Database Security & Authorization
- SQL (Computer Science): SQL
- OS (Computer Science): Introduction to OS, Process Management, CPU Scheduling, Deadlock, Process Synchronization, Threads & Process Creation, Memory Management, Virtual Memory, File Management
- Computer Networks (Computer Science): 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
- Data Structures (Computer Science): Introduction to DS, Array, Stack, Queue, Linked List, Tree, Graphs, Hashing
- OOPs (Computer Science): Object Oriented Programming (OOPS)
- Software Engineering (Computer Science): Fundamentals of Software Engineering, Software Requirements and Quality Assurance, Software Design, Estimation and Metrics, Software Testing, Software Maintenance and Configuration Management
- SVAR Conversational - Spoken English: Communication Assessment
- HR Interview: MR & HR Interview Preparation
AI summary & chapters
AI Summary
An AI-generated summary of this video lecture.
The video lecture covers memory allocation strategies, specifically focusing on the "Next fit policy" and "External fragmentation". The instructor begins by defining Next fit as a modification of the Best fit algorithm. He illustrates on a whiteboard how the search for memory blocks continues from the last allocated position rather than restarting from the beginning. Later, the lecture transitions to the concept of External fragmentation, explaining it as a consequence of contiguous allocation policies where free memory exists but is non-contiguous, preventing the allocation of larger processes. This progression highlights the relationship between allocation efficiency and memory wastage.
Chapters
0:00 – 2:00 00:00-02:00
The instructor introduces the "Next fit policy" using a slide that defines it as a modification of the best fit algorithm. He explains that after satisfying a request, the search for the next request starts from the "current position" rather than the beginning of memory. Visually, he draws a long horizontal rectangle on the whiteboard to represent memory blocks. He marks specific sections with diagonal lines to denote allocated space and draws a red arrow pointing to the right to demonstrate the search pointer moving forward from the last allocation point. He emphasizes that this approach avoids scanning the entire memory list repeatedly, unlike the standard Best fit method, which restarts the search from the start every time.
2:00 – 3:04 02:00-03:04
The lecture transitions to a new topic, "External fragmentation," displayed on the slide. The text defines it as a function of contiguous allocation policy where requested space is available but not contiguous. The instructor explains that this wastage occurs because the scattered free blocks cannot be combined to satisfy a single large request. He uses hand gestures to indicate separate, non-adjacent blocks of memory. The slide text explicitly states, "The space requested by the process is available in memory but, as it is not being contiguous, cannot be allocated this wastage is called external fragmentation." He clarifies that even if total free space is sufficient, the lack of contiguity prevents allocation.
The lesson progresses from a specific allocation algorithm to a fundamental memory management problem. By first detailing how Next fit optimizes search efficiency compared to Best fit, the instructor sets the stage for understanding the limitations of contiguous allocation. The introduction of External fragmentation highlights the trade-off: while algorithms like Next fit manage allocation efficiently, the requirement for contiguous blocks inherently leads to wasted space when free memory is fragmented. This connects the mechanical process of allocation to the resulting state of the memory system, showing how efficient searching does not solve the underlying issue of scattered free blocks.