Problem 2700. Simulate one complete step in the Biham–Middleton–Levine traffic model
Solution Stats
Problem Comments
Solution Comments
-
2 Comments
Jan Orwat
on 4 Dec 2014
minor bug there. crashes for vectors and return incorrect answers for some input, for example a_in=[0 1 1 1; 0 0 0 0], a_out=[1 1 0 1; 0 0 0 0] instead of a_correct=[1 0 1 1; 0 0 0 0]. Ned, could you extend the test suite to 'kill' this answer?
Ned Gulley
on 4 Dec 2014
Done. Thanks for the comment!
Problem Recent Solvers30
Suggested Problems
-
1328 Solvers
-
Back to basics 8 - Matrix Diagonals
885 Solvers
-
Make a run-length companion vector
615 Solvers
-
Create a matrix X, where each column is a shifted copy of the vector v
178 Solvers
-
157 Solvers
More from this Author50
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!