LLD - Design — Elevator SystemWhat is the main difference between the SCAN and LOOK disk scheduling algorithms?ASCAN stops at the last request in the direction, LOOK goes to the disk edgeBLOOK moves the head randomly, SCAN moves sequentiallyCLOOK stops at the last request in the direction, SCAN goes to the disk edgeDSCAN only moves in one direction, LOOK moves back and forthCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand SCAN behaviorSCAN moves the disk head to the end of the disk in one direction, servicing requests along the way.Step 2: Understand LOOK behaviorLOOK moves the disk head only as far as the last request in the current direction, then reverses.Final Answer:LOOK stops at the last request in the direction, SCAN goes to the disk edge -> Option CQuick Check:LOOK stops early, SCAN goes to edge [OK]Quick Trick: LOOK stops at last request, SCAN goes to disk edge [OK]Common Mistakes:MISTAKESConfusing which algorithm stops at disk edgeThinking LOOK moves randomlyAssuming SCAN moves only one way
Master "Design — Elevator System" in LLD9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More LLD Quizzes Behavioral Design Patterns — Part 1 - State pattern - Quiz 8hard Behavioral Design Patterns — Part 1 - Why behavioral patterns define object interaction - Quiz 4medium Behavioral Design Patterns — Part 2 - When to use which behavioral pattern - Quiz 11easy Behavioral Design Patterns — Part 2 - Mediator pattern - Quiz 12easy Design — Elevator System - Why elevator design tests state machines - Quiz 15hard Design — Elevator System - Multiple elevator coordination - Quiz 4medium Design — Library Management System - Requirements and use cases - Quiz 11easy Design — Library Management System - Class design (Book, Member, Librarian, Loan) - Quiz 11easy Design — Tic-Tac-Toe Game - Win condition checking - Quiz 3easy Design — Tic-Tac-Toe Game - Extensibility (NxN board, multiple players) - Quiz 1easy