I came up with a solution to that problem involving soldiers coordinating when to fire — I solved it first on paper, but I wasn't certain it would work, so I implemented it in javascript
the problem turns out to be the firing squad synchronization problem
my solution is messier, but essentially the same as the simple/slow one depicted on wikipedia — apparently it can be done faster using black magic
No comments:
Post a Comment