Code Monkey home page Code Monkey logo

simc_c's Introduction

SIMC Section C: Busy footbridge

SIMC Logo

This is a followup project after Singapore International Mathematics Challenge (SIMC) 2018 to calculate the numerical answers to Section C using programming. The simulation is done using C++, while the analysis and graphs are done using Wolfram Mathematica. Also, an analysis of Model 3 of the Champion Team's report (NUSH) was done.

The problem statement may be found in SIMC_Part_C.pdf.

A summary of the results as well as the derivations could be found here.

Main Results

  • Question 3

Attempted to use recursion to solve the problem. For the first and second A, recursion yielded the correct result. Further recursions led to a deviation from simulation results. This may be because when considering events in the recursion, some events may actually not be independent from each other, and hence a more careful approach may need to be used.

  • Question 4

The champion team's model involved k lanes instead of 2. For this part, I analysed the distribution of people along the k lanes by dividing the number of people ending at a lane over the total number of people. Except for small values of k, greater values of k always resulted in a spike in probability distribution in the 2nd and (k-1)th row (1-indexed) as compared to the rest of the rows. The 1st and kth row have the lowest probability distribution. Otherwise, the probability distribution is generally equal.

The figure below shows a graph of probability distribution against lane number when k = 10: Probability Distribution for k = 10

The simulation results was fitted to obtain fitting functions. A more quantitative (but very simplified) model was proposed, which models the shape of the general graph quite well.

Simulation results with Model

Project ended on 12/06/2018

simc_c's People

Contributors

jianzhi-1 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.