Skip to main content

New answers tagged

3 votes

Can I make my percolation in python function more efficient?

One idea is to split the square into a grid[][] of smaller 2x2 squares. Then, for each of these squares store all circles whose center is in that square. This means that when you insert a new circle ...
Dimitris's user avatar
  • 131
5 votes
Accepted

Can I make my percolation in python function more efficient?

Analytical problem This is a an analytical problem and it may be best to solve it first before coding to have an idea how best to structure your code. If I understand you correctly: each disc has ...
Attack68's user avatar
  • 351

Top 50 recent answers are included