KMC involves representing the system as a collection of discrete states and transitions between these states. The transitions are governed by rate constants that are typically derived from experimental data or density functional theory (DFT) calculations. The algorithm proceeds by selecting an event based on its probability and updating the state of the system accordingly. This allows for the simulation of time-dependent phenomena over extended periods, which is often infeasible with other methods.