Chapter 8 · SimulationMemory Allocation? ← Chapter 8 First Best Worst Next Speed 0.75/s Compare Holes Default Fragmented LargeQueue Mixed Classic Cursor Random RequestscursorHistory Free 0 Largest 0 Ext. frag. 0 ✗ Failed 0 Step 0/0 CloseMemory AllocationVariable-partition contiguous allocation: a queue of requests (A=120 allocates 120 units to A; -A frees A) is served by first fit, best fit, worst fit or next fit. The memory map shows holes, processes and the blocks reserved for the operating system (OS); during a step the candidate holes are checked one by one. The history below has one row per request; the side panel lists the holes in address order and the state of each process.UsagePick an algorithm and an initial hole layout (Default, Fragmented, Large).Edit the requests directly, add (+) or clear (×) them (up to 24), or load a preset queue.▶ plays; the step buttons move one request back or forward, or jump to the start or end. Clicking a row in the history jumps to that step.Compare runs the four algorithms on the same queue and shows the final memory maps and external fragmentation.AlgorithmsFirstFirst fit: the first hole that is large enough.BestBest fit: the smallest hole that is large enough.WorstWorst fit: the largest hole.NextNext fit: the first fit, starting at the cursor (just after the last allocation) and wrapping around.Ext. frag.External fragmentation: total free memory minus the largest hole.QueueA=120Allocate 120 units to A.-AFree A; neighboring holes merge.Legend hole process OS (reserved) ✓ fits ✗ too small ★ best so far ▼ next-fit cursorKeys←→ stepSpace playHomeEndEsc close