Skip to main content

Questions tagged [simulation]

Simulation is the imitation of some real thing, state of affairs, or process. The act of simulating something generally entails representing certain key characteristics or behaviours of a selected physical or abstract system.

7votes
2answers
810views

Numerical cellular automaton way of simulating water, fire or smoke

I have made up some evolutionary rules for a type of cellular automaton that uses numbers instead of the more common binary black or white cells. Rules in English: Takes place on a square grid that ...
R1s1ble's user avatar
4votes
2answers
509views

The Random Skipping Sequential (RSS) Monte Carlo algorithm

Research paper: The Random Skipping Sequential (RSS) Monte Carlo algorithm The main algorithm described in the given link is a Random Skipping Sequential Monte Carlo Algorithm (RSS Algorithm) ...
user366312's user avatar
6votes
1answer
239views

Optimizing C++ Implementation of the Simulated Bifurcation Algorithm (SB)

I've implemented the Simulated Bifurcation (SB) algorithm in C++, based on the method described in [2] (link to Science Advances). The goal of this algorithm is to find the ground state of an Ising ...
Amirhossein Rezaei's user avatar
1vote
1answer
158views

Java program for calculating probabilities of die combinations in Yatzy

Yatzy Yatzy is a dice rolling game where players aim to get particular die combinations. This program counts probability of each such combinations. They are: All five ones, All five twos, Same for ...
coderodde's user avatar
8votes
2answers
335views

Determining Error Rate of Phase Shift Keying via Monte Carlo Simulation

My program calculates the symbol error rate for various signal-to-noise ratio (SNR) and modulation orders using Monte Carlo simulation on Phase Shift Keying (PSK). How can it be improved? ...
unique's user avatar
1vote
1answer
163views

A web page for running AI vs. AI Connect Four matches with selection of algorithms and search depths

This time, I have prepared this page where a user may select what AI bots will be run in the game of Connect Four. The entire repository is here. Code index.html:<...
coderodde's user avatar
3votes
5answers
2kviews

How do I speed up this simulation program

This is a program to solve a differential equation numerically using Euler method. As of now, it is very slow, and I need to run 10000 Monte Carlo simulations. The differential equation is called ...
Jonathan Wick's user avatar
3votes
1answer
73views

how to launch multiple processes efficiently

I have a list of car models which I want to simulate by launching multiple instances of an external simulator executable. My application stores the current status of all the cars that are being ...
Harry's user avatar
3votes
1answer
179views

Dial up some obscure stats for the Chutes and Ladders game

Years ago, I wrote some code in Perl for the Chutes and Ladders game. I re-wrote the code here in Python. The code simulates one player in a game to see how many spins of the dial are needed to win ...
toolic's user avatar
  • 11.1k
2votes
3answers
189views

Friendly probability puzzle solved with simulation

A friend posed to me a question to see if I could solve it. He says I solved it appropriately. I was hoping someone here could give me a review of the program I wrote to answer it. I figured it would ...
Dan's user avatar
  • 301
3votes
1answer
74views

Simulating a Moving Average Process

I was studying stochastic processes and thought to independently simulate a moving average process. ...
insipidintegrator's user avatar
4votes
2answers
491views

Spatial radius search in Boid simulation

I am working on a Boid simulation with 10,000 boids. I've successfully utilized geometry shaders and an array<GLfloat[3], MAX_BOIDS> for vertices to enhance ...
nowox's user avatar
  • 1,131
2votes
1answer
93views

Agent based Dengue transmission simulation

I'm trying to implement the dynamics of Dengue transmission between mosquitoes and humans. I decided create two classes, one for the human population and another for the mosquitoes. Both are based on ...
Athansya's user avatar
0votes
1answer
85views

Temperature of a Lennard-Jones system

Are the formulas used in getTemperature() and setTemperature() correct? ...
user366312's user avatar
1vote
2answers
176views

Minimalistic implementation of Leapfrog integration algorithm (2)

Please review this C++ listing of an implementation of Leapfrog integration. This C++ listing is rewritten according to this review. ...
user366312's user avatar

153050per page
close