Exercise idea: Airplane Boarding Simulation
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Ambito
- content
Direzione di ricerca
Non vengono indicati file, test o punti di ingresso dell’implementazione. Inizia esaminando i metodi di boarding proposti e la visualizzazione e la ricerca collegate, quindi definisci come devono essere modellati e testati il processo, i parametri e i risultati. Il lavoro è completato quando esiste una specifica dell’esercizio concordata, con un ambito di confronto e criteri di completamento definiti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
There aren't a lot of modelling or simulation exercises right now. After watching a CGP Grey video recently, I thought it would be interesting to simulate the boarding process of an airplane and compare different methods. This could also work well as an exercise. It seems only suitable as a side exercise, though.
I haven't fully thought this through and I'm not even sure if this kind of exercise fits exercism well, but the responses on Slack were positive, so I decided to post the general idea here regardless.
There are a few methods to board an airplane that are used in practice and also some unpractical, but theoretically more efficient, ones:
- Back to Front & Front to Back
- Random
- Window -> Middle -> Aisle
- Steffen modified*
- Steffen perfect*
(Visualisation of them)
(* Watch the video for an explanation, or if you're more interested, check out Optimal boarding method for airline passengers and Experimental test of airplane boarding methods (paywall warning))
The exercise would be about simulating the process and potentially comparing them in regards to the time it takes to fully board the plane. A bonus task could be a visualisation of the results or the process.
My naïve implementation would be to discretise the process, with a grid representing the aisle and seats and each action taking one time unit to do. The passengers would enter the grid in a specific order based on the used method. There would be multiple actions each passenger can do:
- Move forward in queue/aisle
- Store the carry-on in the overhead compartment
- Take a seat
- Make room for another passenger that has a seat further on the outside (e.g. aisle is already sitting, next passenger needs to move into window seat)
A few parameters could be changed:
- seat layout
- two entrances instead of one
- the simplification of the simulation (e.g. one could skip 4) from above)
There are a few questions I don't know how to answer yet:
- Would the exercise say how to model the process or should the student come up with it?
- Depending on 1), do we solely test for results (this works regardless of the chosen implementation) or also the individual actions/steps (this would likely require the model to be part of the exercise)?
- Should a comparison be part of the exercise, or should it be enough to implement a single method (which?)?
As I said above, I'm really not sure if and how this would work, so please don't hesitate to share your thoughts & ideas on how a general exercise about a simulation of airplane boarding would work, especially if they're completely different to my ideas above :)
- Lingua principale
- Ruby
- Stelle
- 362
- Fork
- 566
- Merge medio
- 15h 13m
- PR unite (30g)
- 8
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di exercism/problem-specifications
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
exercism/problem-specifications#2686 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
exercism/problem-specifications#2704 · 21 commenti · 8 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 35/100
exercism/problem-specifications#2153 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
exercism/problem-specifications#2120 · 7 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
exercism/problem-specifications#2108 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di exercism/problem-specifications
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Bug Ruby Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getsentry/sentry-ruby#3228 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
開発用DockerイメージにPlaywrightのシステム依存を追加するForse già presa @momocus l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
sakazuki-org/sakazuki#1453 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100