Back to problems

Kac Ring Dynamic System Simulation

Algorithm · Voleon · Hard

Kac Ring Model Medium · Topics · Company Tags · Hints You are to implement a Kac ring model consisting of N positions arranged in a circle. Each position initially holds a single white ball. A subset of M positions are designated as marked sites, given as a sorted list of distinct indices. At each discrete time step, every ball simultaneously advances one position clockwise. Additionally, if a ball departs from a marked site, it flips its color: white becomes black, and…

Checking your access…