Problem 1022. Knot Count - Speed
This Challenge is to Speed up the Scoring routine that counts the number of Knots.
Input: [adjacency xy]
- adjacency is an NxN matrix of topologically adjacent(connected) points
- xy is an Nx2 matrix giving the X and Y coordinates for the N points
Output: nKnots; Number of Knots
Scoring: Speed; Based on cumulative time of Knots [ 3 6 15 18 24 30 37 42 46 49]; Nominal Time 9.7 sec
Baseline Knot Contest Knot scoring for all 50 test cases is 63 seconds on Cody.
Solution Stats
Problem Comments
-
2 Comments
Richard Zapor
on 10 Nov 2012
The Knots Contest GradeIt function is not the number of Knots. FYI
Alfonso Nieto-Castanon
on 13 Nov 2013
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
Show commentsProblem Recent Solvers2
Suggested Problems
-
Return the 3n+1 sequence for n
8272 Solvers
-
Remove the polynomials that have positive real elements of their roots.
1675 Solvers
-
648 Solvers
-
Create a cell array out of a struct
1831 Solvers
-
76 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!