Algorithm of Lightning Strikes? [duplicate]

This question already has an answer here:

Given an array of charge for a given area (2D or 3D), what algorithm would describe the path that lightning takes?

An example algorithm would be from the highest charge of the cloud, find the lowest charge adjacently below and move there. Repeat until ground reached.

-

marked as duplicate by Chris White, Dan, BebopButUnsteady, Manishearth♦Jul 18 '13 at 8:29

You definitely need to take care for the change of the charge field due to the current through the lightning, which is determined by both the electric field and the ion density – the latter is another field you would need to calculate. – leftaroundabout Jun 28 '11 at 14:32
I think the path determination in nature is a very chaotic process. It may also be influenced by chance events, such as ionized trails left by high energy cosmic rays. In New Mexico we had a saying regarding high base thunderstorms (cloud base many thousands of feet above the ground), that lightening follows the rain. I.E. falling raindrops help to create a more favorable path. – Omega Centauri Jun 28 '11 at 15:39
possible duplicate of Can lightning be used to solve NP-complete problems? – Chris White Jul 16 '13 at 1:42
Asking for an algorith looks off topic, but if you want to ask what physics determins the path a lightning follows, this would be fine. – Dilaton Jul 16 '13 at 11:19