wonszrzeczny

wonszrzeczny

Geek Repo

0

followers

0

stars

Github PK Tool:Github PK Tool

wonszrzeczny's repositories

Language:C++Stargazers:0Issues:0Issues:0

lagrangian_nn

first commit

Language:PythonStargazers:0Issues:0Issues:0

project-euler-151-paper-sheets-expected-value-50-

Surprisingly easy dynamic programming problem for 50% difficulty, solve time 30 minutes, answer in 2 ms.

Language:PythonStargazers:0Issues:0Issues:0

problem640

incorrect solution to problem 640. Used a heuristic approach, the card with the lowest probability out of the rolled options is turned face down, if there is no such card the card with the highest probability is turned face up. The expected value can be then calculated from the transition matrix of the markov chain. Very surprising this doesn't work! I guess it has to do with the fact some of the options are not independent, and this is where my intuition failed me. Works for n up to n=4

Language:PythonStargazers:0Issues:0Issues:0

project-euler-115-counting-block-combinations-II-35

Problem had difficulty 35%. Modified code from 134 and iterated until the value was larger than 10^6

Language:PythonStargazers:0Issues:0Issues:0

project-euler-114-counting-block-combinations-35

Problem had difficulty of 35%, solved using dynamic programming. Let t(n) be number of combinations of blocks such that last block ends in cell n. Then t(n) is the sum of t(k) for k<=n-l-1 for each possible length of the ending block l. Obviously t(3)=1. Obviously number of combinations is the sum of t(x) for x<=n +1 since we can also have no red blocks.

Language:PythonStargazers:0Issues:0Issues:0

project-euler-258-lagged-fibonacci-sequence-70

Problem had difficulty of 70%, solved using logarithmic matrix exponentiation, before I knew about Cayley-Hamilton theorem. Run time: long, since the matrices become dense around millionth power, could be done much faster by calculating x^(10^18) modulo the characteristic equation.

Language:PythonStargazers:0Issues:0Issues:0

TLV493D-A1B6-3DMagnetic-Sensor

Library for the TLV493D-A1B6 3D magnetic sensor for Arduino.

License:NOASSERTIONStargazers:0Issues:0Issues:0
Language:PythonStargazers:0Issues:0Issues:0