MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply Today1Rank

19Badges

25010Score

Alfonso Nieto-Castanon submitted a Comment to Problem 677. Vine Contest 1-D Case Optimization: Board 78

optimal score values (until proven otherwise):...... 20244 20244 20238 14563 2564

on 30 Nov 2015 at 3:52

Alfonso Nieto-Castanon submitted Solution 785874 to Problem 677. Vine Contest 1-D Case Optimization: Board 78

on 30 Nov 2015 at 3:46

Alfonso Nieto-Castanon submitted Solution 785228 to Problem 961. Robust alignment of coordinate system

on 28 Nov 2015 at 17:43

Alfonso Nieto-Castanon submitted Solution 785026 to Problem 42692. Polynomial Evaluation

on 28 Nov 2015 at 4:09

Alfonso Nieto-Castanon submitted Solution 785025 to Problem 42692. Polynomial Evaluation

on 28 Nov 2015 at 4:08

Alfonso Nieto-Castanon submitted Solution 785023 to Problem 42692. Polynomial Evaluation

on 28 Nov 2015 at 4:03

Alfonso Nieto-Castanon submitted Solution 784869 to Problem 961. Robust alignment of coordinate system

on 27 Nov 2015 at 22:17

Alfonso Nieto-Castanon submitted Solution 784835 to Problem 2938. How long does it take to run a bath?

on 27 Nov 2015 at 21:08

Alfonso Nieto-Castanon submitted Solution 784336 to Problem 42691. Matrix of almost all zeros, except for main diagonal

on 26 Nov 2015 at 4:39

Alfonso Nieto-Castanon submitted Solution 783863 to Problem 42689. Distance a ball travels after throwing vertically

on 25 Nov 2015 at 17:50

Alfonso Nieto-Castanon submitted a Comment to Problem 42688. Determine the full width at half max

@Carl: the solutions already work this way, in this example the distance between "the points half-way between y(1) and y(2), and between y(5) and y(6)" is 5.5-1.5 (i.e. four, not five)

on 23 Nov 2015 at 21:37

Alfonso Nieto-Castanon submitted Solution 781835 to Problem 42688. Determine the full width at half max

on 21 Nov 2015 at 18:02

Alfonso Nieto-Castanon submitted Solution 780341 to Problem 2622. Packing oranges - one layer

on 18 Nov 2015 at 0:31

Alfonso Nieto-Castanon submitted Solution 780225 to Problem 3074. Compute the cokurtosis of a given portfolio.

on 17 Nov 2015 at 18:38

Alfonso Nieto-Castanon submitted Solution 780224 to Problem 3074. Compute the cokurtosis of a given portfolio.

on 17 Nov 2015 at 18:32

Alfonso Nieto-Castanon submitted Solution 780222 to Problem 3074. Compute the cokurtosis of a given portfolio.

on 17 Nov 2015 at 18:29

Alfonso Nieto-Castanon submitted Solution 780220 to Problem 3074. Compute the cokurtosis of a given portfolio.

on 17 Nov 2015 at 18:27

Alfonso Nieto-Castanon submitted a Comment to Solution 777471

I agree, many Cody problems take the opposite route (they force players to find analytical solutions by using very stringent error tolerances or very large numbers/samples) but very few problems favor algorithmic approaches over analytical solutions when both exist (code complexity/cost is perhaps the only evaluation measure that might work this way for some problems; e.g. sum(1:n) vs. n*(n+1)/2). As a problem creator, finding an appropriate evaluation measure is likely the best way to try to "bias" players towards a particular implementation/approach (but imo on of the best things about Cody is the way players will surprise you with unexpected approaches if you let them). Last, just for clarity, this particular solution is not really an analytical solution, and it would still fail to converge for very large Na Nb numbers. It is just a Markov chain reformulation of the problem which simply converges considerably faster than Monte Carlo but it can still be improved in many ways...

on 17 Nov 2015 at 16:45

Alfonso Nieto-Castanon submitted Solution 779601 to Problem 1301. RISK Calculator - Large Armies, High Accuracy, Fast

on 16 Nov 2015 at 21:17

Alfonso Nieto-Castanon submitted Solution 779599 to Problem 1301. RISK Calculator - Large Armies, High Accuracy, Fast

on 16 Nov 2015 at 21:10

Alfonso Nieto-Castanon submitted Solution 779160 to Problem 42686. What's the missing interior angle?

on 16 Nov 2015 at 4:24

Alfonso Nieto-Castanon submitted Solution 779154 to Problem 42686. What's the missing interior angle?

on 16 Nov 2015 at 4:20

Alfonso Nieto-Castanon submitted Solution 778089 to Problem 2122. Simple Robotics 2 - End effector attitude

on 13 Nov 2015 at 2:36

Alfonso Nieto-Castanon submitted Solution 778086 to Problem 727. Checkerz_000 Kamikazi Kings

on 13 Nov 2015 at 2:18

Alfonso Nieto-Castanon submitted Solution 777471 to Problem 42685. Cody meets Xiangqi: foresee the unseen (Part 2)

on 12 Nov 2015 at 3:55

Alfonso Nieto-Castanon submitted Solution 775629 to Problem 42685. Cody meets Xiangqi: foresee the unseen (Part 2)

on 12 Nov 2015 at 3:30

Alfonso Nieto-Castanon submitted a Comment to Solution 775628

Thanks for the response!. And yes, disallowing analytical solutions is rather complicated because once players have an exact solution they can very easily compute a random instantiation of those estimates for any arbitrary sample size (e.g. using binomial distribution properties), which should be impossible to tell apart from actual Monte Carlo simulation results, so I really do not see a good way to effectively disallow those types of solutions. The "good seed" approach has the problem that it will only work for a very specific form of Monte Carlo simulation (other perfectly valid ways to generate your random samples would not benefit from the "good seed" selection, so you are effectively disallowing all forms of Monte Carlo simulations except the very specific one that you have in mind). In any way, just my two cents, and thanks for the very interesting problem!

on 11 Nov 2015 at 19:02

Alfonso Nieto-Castanon submitted a Comment to Solution 775628

I was just trying to figure out what the EvaluateSolution.p code might be doing. Yes, there is some strange behavior where "exact" solutions are not accepted, and sufficiently close random solutions are only accepted for very specific seed values (which would be impossible to guess for players). If possible, I would suggest just to post the actual code in EvaluateSolution or at least explicitly say what it is testing for so players do not have to guess

on 11 Nov 2015 at 17:10

Alfonso Nieto-Castanon submitted Solution 774973 to Problem 42685. Cody meets Xiangqi: foresee the unseen (Part 2)

on 10 Nov 2015 at 5:51

Alfonso Nieto-Castanon submitted Solution 774963 to Problem 42685. Cody meets Xiangqi: foresee the unseen (Part 2)

on 10 Nov 2015 at 5:29

Alfonso Nieto-Castanon submitted Solution 774957 to Problem 42475. Add damping to a mass spring system

on 10 Nov 2015 at 5:09

Alfonso Nieto-Castanon submitted a Comment to Problem 1774. Free passes for everyone!

This problem is back to working status. Just for reference a couple of things have changed in this new version: 1) you can now use free passes to solve those pesky Cody problems where the testsuite itself contains some error (i.e. freepasses will work just fine even when the testsuite may contain errors and/or your solution code may not be even run); and 2) you may only use freepass to solve one problem per day (i.e. 24 hours need to pass between the last time you use a "freepass.please" solution to get a passing grade and requesting a new free pass). Let me know if you run into any issues. And @James, unfortunately no Simulink support yet, let me know if you have any ideas on how to tackle that!

on 9 Nov 2015 at 21:22

Alfonso Nieto-Castanon submitted Solution 774805 to Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]

on 9 Nov 2015 at 21:09

Alfonso Nieto-Castanon submitted Solution 774620 to Problem 42625. UICBioE240 2.6

on 9 Nov 2015 at 17:18

Alfonso Nieto-Castanon submitted Solution 774036 to Problem 3098. Scrabble Scores - 13

on 9 Nov 2015 at 1:31

Alfonso Nieto-Castanon submitted Solution 774035 to Problem 3098. Scrabble Scores - 13

on 9 Nov 2015 at 1:30

Alfonso Nieto-Castanon submitted Solution 774034 to Problem 3097. Scrabble Scores - 12

on 9 Nov 2015 at 1:18

Alfonso Nieto-Castanon submitted Solution 774027 to Problem 3084. Scrabble Scores - 11

on 9 Nov 2015 at 0:53

Alfonso Nieto-Castanon submitted Solution 774025 to Problem 3084. Scrabble Scores - 11

on 9 Nov 2015 at 0:52

Alfonso Nieto-Castanon submitted Solution 774016 to Problem 3084. Scrabble Scores - 11

on 9 Nov 2015 at 0:44

Alfonso Nieto-Castanon submitted Solution 774015 to Problem 3084. Scrabble Scores - 11

on 9 Nov 2015 at 0:43

Alfonso Nieto-Castanon submitted a Comment to Solution 773489

100% precision/recall, but using N so no pat in the back for me

on 8 Nov 2015 at 5:15

Alfonso Nieto-Castanon submitted Solution 773489 to Problem 42616. Detect circles in images

on 8 Nov 2015 at 5:04

Alfonso Nieto-Castanon submitted Solution 773429 to Problem 42616. Detect circles in images

on 8 Nov 2015 at 3:00

Alfonso Nieto-Castanon submitted Solution 773105 to Problem 42616. Detect circles in images

on 7 Nov 2015 at 3:13

Alfonso Nieto-Castanon submitted Solution 773101 to Problem 42616. Detect circles in images

on 7 Nov 2015 at 3:03

Alfonso Nieto-Castanon submitted Solution 773100 to Problem 42616. Detect circles in images

on 7 Nov 2015 at 2:58

Alfonso Nieto-Castanon submitted a Comment to Problem 42339. ~(*|/)

see problem 242 for an example of how to disallow the use of specific characters (improving your testsuite is a better way to ask players to "follow the rules" of your problem in Cody)

on 6 Nov 2015 at 17:00