Problem 1022. Knot Count - Speed
Solution Stats
Problem Comments
-
2 Comments
The Knots Contest GradeIt function is not the number of Knots. FYI
if possible could you fix the url in this problem testsuite? (and perhaps also in the Rubik's series as well? it seems tinyurls tend to have a short life...)
Solution Comments
-
2 Comments
not really sure, but perhaps there are some numerical precision issues for some of the near-colinear cases in the testsuite? (if so perhaps it would be useful to resample the testsuite nodes to remove colinear or near-colinear cases?)
The expected knots table was based upon the Official slow scoring method. The docross function creates many warning messages "Warning: Matrix is singular to working precision. ". A single case, #3, takes >0.3 seconds versus expected 0.01 seconds.
Problem Recent Solvers2
Suggested Problems
-
6563 Solvers
-
Create One Large Eye of size N x N Quickly?
84 Solvers
-
Create a matrix X, where each column is a shifted copy of the vector v
168 Solvers
-
Find files with extension ext in the current directory
29 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
367 Solvers
More from this Author255
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!