Tagged articles
4 articles
Page 1 of 1
dbaplus Community
dbaplus Community
Sep 25, 2024 · Databases

Segment‑wise Train Seat Allocation with SQL: A Practical Guide

The article recounts a personal experience of a failed train ticket change, analyzes segment‑wise seat availability, proposes a database model, and demonstrates a SQL query that allocates seats per segment, showing how such logic could enable full‑journey booking and even inspired a new feature on the 12306 platform.

OracleRailwaySQL
0 likes · 10 min read
Segment‑wise Train Seat Allocation with SQL: A Practical Guide
ITPUB
ITPUB
Sep 24, 2024 · Databases

Enabling In‑Train Seat Swaps on 12306: A Practical SQL Design

The article recounts a failed ticket change on a high‑speed train, introduces the newly launched 12306 in‑train seat‑swap feature, shares passenger reactions, provides a detailed SQL implementation for segment‑based seat allocation, and reflects on its impact and future suggestions.

RailwaySQLin‑train seat change
0 likes · 9 min read
Enabling In‑Train Seat Swaps on 12306: A Practical SQL Design
Model Perspective
Model Perspective
Nov 25, 2022 · Operations

How to Fairly Reallocate Conference Seats After Student Transfers?

This article examines how to redistribute a fixed number of conference seats among three academic departments after enrollment changes, comparing proportional allocation, absolute and relative fairness metrics, and applying a Q‑value method to determine the final seat distribution for 20 or 21 seats.

Operations Researchdynamic distributionfairness metrics
0 likes · 4 min read
How to Fairly Reallocate Conference Seats After Student Transfers?
JavaEdge
JavaEdge
Nov 24, 2021 · Fundamentals

How 12306 Ticket‑Booking Uses Bitmap & Bitwise Operations to Prevent Overbooking

This article explains the 12306 train ticket reservation algorithm, showing how bitmaps combined with bitwise OR operations can model seat availability across multiple stations, using a simplified example of four seats and three segments to illustrate ticket allocation, conflict detection, and remaining‑ticket calculation.

12306Bitmapbitwise operations
0 likes · 5 min read
How 12306 Ticket‑Booking Uses Bitmap & Bitwise Operations to Prevent Overbooking