LLD - Design — Elevator SystemWhat is the primary goal of the SCAN disk scheduling algorithm?ATo randomly select requests to service nextBTo reduce the total seek time by moving the head in one direction servicing all requestsCTo service requests in the order they arrive without reorderingDTo always service the closest request regardless of directionCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand SCAN algorithm behaviorSCAN moves the disk head in one direction, servicing all requests until it reaches the end.Step 2: Identify the goal of SCANThis approach reduces seek time by minimizing back-and-forth movement.Final Answer:To reduce the total seek time by moving the head in one direction servicing all requests -> Option BQuick Check:SCAN goal = reduce seek time by directional scan [OK]Quick Trick: SCAN moves head in one direction servicing all requests [OK]Common Mistakes:MISTAKESThinking SCAN services requests randomlyConfusing SCAN with FCFS (first-come, first-served)Assuming SCAN always services closest request first
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