Virus Simulation with Quadtree Implementation in Javascript

Last edited on: July 17, 2021 12:58 AM

The outbreak of the respiratory virus in China has caused an unprecedented global response over the past few months. The spread of a virus can be affected by several factors such as the extent of social distancing and incubation periods of the virus. This project attempts to model the spread of such a virus while impelementing a quadtree data structure to efficiently store data of points on a two-dimensional space. Visit the website at Virus Simulator.

Documentation

Code for this project can be found in GitHub repository.

Dependencies

Install Express in the root directory and save it in the dependencies list. For example:

1
npm install express --save

To install Express temporarily and not add it to the dependencies list:

1
npm install express --no-save

All articles in this blog are used except for special statements CC BY-SA 4.0 reprint policy. If reproduced, please indicate source Ziyi Zhu!