539 karma · joined June 30, 2020
- It defines properties like 'bitNumber', 'leftChild' and 'rightChild' which have nothing to do with this type of tree.
- The search function search(k) calls an overloaded version of itself search(root, k) that is (1) illegal in these languages and (2) not defined.
- The insert function does not account for all scenarios.
And more.
I'm fairly convinced this was written with the assistance of a LLM. That would be a logical explanation to all those illogical choices.
It's based on the simple idea that:
Z = (a + b)^2 = (a^2 + (2a+b)*b)
=> (2a+b)* b < Z-a^2
Given an initial estimate "a", we need to find the largest "b" such that the term on the left is less than the term on the right. Therefore our estimate will always be slightly less than the actual answer and we can repeat the process to get slightly closer.For the first iteration, Z=2 and a=1. We choose b=x/60:
(2+x/60)*x/60 < 2-1^2
120x + x^2 < 3600
x = 24 ... 3456 < 3600
x = 25 ... 3625 > 3600
So our first term is 24/60.Repeat with a=1+24/60 and b=x/60^2:
(2(1+24/60)+x/60^2)*x/60^2< 2-(1+24/60)^2
10080x+x^2 < 518_400
x = 51 ... 516_681 < 518_400
x = 52 ... 526_864 > 518_400
Repeat multiple times.Writing this in code I can easily get: 1;24,51,10,7,46,6,4,44,50,28 = 1.4142135623730951
This whole process can be codified into the long division algorithm for square roots which works quite neatly with base 10.
Edit: formatting
The most popular post is a Sudoku solver in Python.
My first assumption was that the mdoel I was training was too small: 13 million parameters as opposed to the 1.3 billion in ruDALL-E (not sure how much of this is only the diffusion model). So that's a 100x smaller. I want to experiment with upscaling it.
Reading this I'm wondering if there's more I need to do. For example, training a conditioned model - "cheat" by given it in the index of the Pokemon during training but then you sample without an index - or make the model predict the standard deviation (beta tilde). Or as you say, work with loss functions.
More work to be done here.
My university teamed up with an American University, Embray-Riddle, to offer a joint masters. Embray-Riddle required a minimum average grade of 80%; my university came back to them and said no one in the last 10 years qualified for the masters. Eventually they lowered the requirements just so they could have students.
Later I did my masters in the Netherlands. The university made me do extra courses to compensate for my low grades. But I ended up doing reasonably well with an 8/10 average and was the top student in a few subjects.
Grade inflation sounds bad but I can positively say that grade deflation is worse. It badly demotivates students and robs them of years of their life as they repeat courses.
My friends in engineering are passionate about what they do which is why they stick with it. I like the intellectual challenge I get from software engineering and the people I work with. I'm glad I get paid well for it too. I don't think I would get the same level of stimulation in an "engineering" firm here and certainly not the same salary.
Mistakes include: 1) Left to right letters 2) Bad translations, especially dating to the days when Google translate was not as good. 3) Incorrect grammar e.g. singular instead of plural, masculine words mixed with feminine. "Welcome" should be plural unless you really only want to welcome one person! 4) Spelling typos
To slightly misquote the great Richard Feynman, "It turns out that it's possible to sweep the infinities under the rug by a certain crude skill." :)
Very long roads are not truly straight because they follow the curvature of the earth, but I was not referring to those. In any case, you're more likely to notice winding around local topology and local elevation changes on long road trips.
Also see roywiggins answer :)