PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/PayPal

Design elevator scheduling for small building

Last updated: Jun 15, 2026

Quick Overview

This PayPal data-scientist system-design question asks you to design the control policy for a single elevator serving a small building (3 floors plus a basement). A complete answer defines objectives, constraints, inputs, and state; proposes a SCAN/LOOK scheduling strategy with basement/peak priority and anti-starvation; specifies data structures; and lays out a discrete-event simulation to compare policies under varying demand.

  • medium
  • PayPal
  • System Design
  • Data Scientist

Design elevator scheduling for small building

Company: PayPal

Role: Data Scientist

Category: System Design

Difficulty: medium

Interview Round: Onsite

##### Question Design the control policy for a single elevator serving a small building: 3 floors plus 1 basement (stops at B, 1, 2, 3). The goal is to decide, at each moment, where the elevator should go next so as to minimize passenger waiting and in-car travel time. Cover the following: 1. **Objectives.** Define what you are optimizing for (e.g., minimize average wait time and average system time, bound tail latency, avoid starvation, handle peak traffic) and the trade-offs between them. 2. **Constraints.** Specify the physical and operational constraints (car capacity / weight limit, floor-to-floor travel time, door open/close and dwell times, safety interlocks, stops only at B/1/2/3). 3. **Inputs and state.** Identify the inputs the controller observes (hall up/down calls with direction, in-cab destination calls, current position and direction, door state, load estimate, timers) and the internal state it maintains. 4. **Scheduling strategy.** Propose how the elevator decides its next stop. Discuss directional collective control (SCAN/LOOK), basement / peak-traffic priority, anti-starvation, capacity-aware boarding, and optional destination grouping. 5. **Data structures.** Describe the supporting data structures and the control state machine. 6. **Simulation plan.** Outline how you would compare candidate policies under varying arrival distributions (off-peak, up-peak, down-peak, bursty), which metrics to track, and how to validate the results.

Quick Answer: This PayPal data-scientist system-design question asks you to design the control policy for a single elevator serving a small building (3 floors plus a basement). A complete answer defines objectives, constraints, inputs, and state; proposes a SCAN/LOOK scheduling strategy with basement/peak priority and anti-starvation; specifies data structures; and lays out a discrete-event simulation to compare policies under varying demand.

Related Interview Questions

  • Design a Cross-Border Money Transfer Service - PayPal (medium)
  • Design a Payment Fraud Detection Service - PayPal (medium)
PayPal logo
PayPal
Jul 31, 2025, 12:00 AM
Data Scientist
Onsite
System Design
2
0
Question

Design the control policy for a single elevator serving a small building: 3 floors plus 1 basement (stops at B, 1, 2, 3). The goal is to decide, at each moment, where the elevator should go next so as to minimize passenger waiting and in-car travel time. Cover the following:

  1. Objectives. Define what you are optimizing for (e.g., minimize average wait time and average system time, bound tail latency, avoid starvation, handle peak traffic) and the trade-offs between them.
  2. Constraints. Specify the physical and operational constraints (car capacity / weight limit, floor-to-floor travel time, door open/close and dwell times, safety interlocks, stops only at B/1/2/3).
  3. Inputs and state. Identify the inputs the controller observes (hall up/down calls with direction, in-cab destination calls, current position and direction, door state, load estimate, timers) and the internal state it maintains.
  4. Scheduling strategy. Propose how the elevator decides its next stop. Discuss directional collective control (SCAN/LOOK), basement / peak-traffic priority, anti-starvation, capacity-aware boarding, and optional destination grouping.
  5. Data structures. Describe the supporting data structures and the control state machine.
  6. Simulation plan. Outline how you would compare candidate policies under varying arrival distributions (off-peak, up-peak, down-peak, bursty), which metrics to track, and how to validate the results.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More PayPal•More Data Scientist•PayPal Data Scientist•PayPal System Design•Data Scientist System Design
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.