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

Learn moreOpportunities for recent engineering grads.

Apply Today1Rank

19Badges

25480Score

Alfonso Nieto-Castanon submitted Solution 811483 to Problem 42704. prime to each other

on 21 Jan 2016

Alfonso Nieto-Castanon submitted Solution 811479 to Problem 42709. Find 1's Complement

on 21 Jan 2016

Alfonso Nieto-Castanon submitted Solution 811476 to Problem 42700. Find elements of set A those are not in set B

on 21 Jan 2016

Alfonso Nieto-Castanon submitted Solution 795548 to Problem 42695. Replace secondary diagonal elements of a square array

on 17 Dec 2015

Alfonso Nieto-Castanon submitted Solution 795546 to Problem 42695. Replace secondary diagonal elements of a square array

on 17 Dec 2015

Alfonso Nieto-Castanon submitted Solution 795545 to Problem 42695. Replace secondary diagonal elements of a square array

on 17 Dec 2015

Alfonso Nieto-Castanon submitted a Comment to Solution 788118

If I am interpreting correctly, tests 1, 3, and 5 might be incorrectly defined. In test 1, job4 depends on job3 (dependencies(4,3)==1) so the solution [4 3 5 2 1] would not be correct. Similarly, in test 3, job1 depends on job2 so [4 3 1 5 2] would not seem correct, etc. Am I misinterpreting?

on 4 Dec 2015

Alfonso Nieto-Castanon submitted a Comment to Solution 492529

interestingly, 1774-ggl == leet-ssh

on 2 Dec 2015

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

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

on 30 Nov 2015

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

on 28 Nov 2015

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

on 28 Nov 2015

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

on 28 Nov 2015

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

on 28 Nov 2015

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

on 27 Nov 2015

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

on 27 Nov 2015

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

on 26 Nov 2015

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

on 25 Nov 2015

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

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

on 21 Nov 2015

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

on 18 Nov 2015

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

on 17 Nov 2015

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

on 17 Nov 2015

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

on 17 Nov 2015

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

on 17 Nov 2015

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

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

on 16 Nov 2015

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

on 16 Nov 2015

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

on 16 Nov 2015

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

on 16 Nov 2015

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

on 13 Nov 2015

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

on 13 Nov 2015

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

on 12 Nov 2015

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

on 12 Nov 2015

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

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

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

on 10 Nov 2015

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

on 10 Nov 2015

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

on 10 Nov 2015

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

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

on 9 Nov 2015

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

on 9 Nov 2015

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

on 9 Nov 2015

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

on 9 Nov 2015