625 karma · joined January 7, 2014
There's already Monkey C used to develop for Garmin devices, and the Monkey/MonkeyX/Monkey2 family by Mark Sibly (of Amiga Blitz Basic fame).
For even a simple USB audio interface setup connected to a single audio source I would recommend isolation and balanced audio cables.
Regardless, it can be computed as a process, and this is where I believe the analogy in question arises. Is a perfect analogy? Of course not -- no analogies are. Bubble sort has no bubbles and involves no liquids or gravity, or buoyancy, etc. etc. the analogy still works despite that IMO.
Obviously. That was my point: it is but a simple analogy. There are no actual bubbles in bubble sort, either.
As for my theory -- I suspect that whenever quantum physics is mentioned, a certain brigade of users like to take the opportunity to look smart by showing off their (in this case largely irrelevant) knowledge of quantum physics. (While simultaneously showing how they fail to grasp the concept of simple analogies, and so actually appearing the opposite. But then I'm zero_iq, so what do I know...!)
This sort of loose analogy is a perfectly reasonable way to name things IMHO.
I don't hear anyone complaining that bubble sort doesn't consider buoyancy and surface tension, or that the flood fill algorithm doesn't involve any actual fuid dynamics.
I have my own theory on why people like to complain about this particular analogy, but for the sake of not causing offence I will leave it there ;p
Finally got a < 376.0 from my own code using simulated annealing method...
375.998672775885
[[13 20 7 18 5 10]
[ 9 15 2 23 12 16]
[ 4 22 24 1 3 21]
[17 11 6 19 14 8]]
...only to realise it's the same as yours, but with the rows reversed! Rather surprised, but I now wonder if there is only a small number of very-low-scoring solutions. So perhaps this is less of a coincidence than it first appears.I'm now using a much more aggressive temperature drop-off to find decent candidates early, followed by a tempering phase to search for nearby solutions, and a final cool-off to refine the final answer. I'm still using only random pair swaps in Python, so probably wasting a lot of cycles, but I'm still quite surprised how quickly it converges to some pretty decent scores. Beyond that I'm just going to try lots of random starting layouts.
I'm interested to see if my method can find any of the other posted solutions or (fingers crossed!) any new ones, but I may need to crunch through a lot more candidates... I will have to translate from Python into something faster to up my game!
I've gotten close, but not cracked it yet. I was wondering if anyone would break the 376.0 barrier!
[[12, 19, 6, 14, 4, 9],
[ 8, 17, 1, 24, 22, 16],
[21, 3, 23, 20, 2, 11],
[15, 10, 5, 13, 7, 18]]
Score = 376.6144674353488Found by increasing number of iterations to 100000
Sim.annealing followed by an exhaustive pair-swap search to find the local minimum would have found this more efficiently. Possibly there are some further refinements left -- I haven't run the exhaustive pair search on the above!
np.matrix('12 19 6 14 4 9; 8 17 1 24 22 16; 21 3 23 2 20 11; 15 10 5 13 18 7')
which has a score of 376.899. This was produced in 20K swaps with the line: best, score = anneal(n=10000)
which was then further refined with: best, score = anneal(start_temp=0.2, advent=best, n=10000)
where anneal() is defined here: https://pastebin.com/xBVGJfQdThe score() function is a bit slow at the moment. If I get some time later, I might see if I can speed it up a bit, which will allow for some faster experimentation.
EDIT: replaced code with pastebin link to save space in comments
It's basically the same as the swap() function in advent.py except you sometimes allow swaps that result in worse scores according to an ever-decreasing probability ("temperature"). The added controlled randomness allows you to break out of local minima at the start and hone in on the local optimum towards the end.
EDIT: after a little tweaking of the temperature schedule I got 377.59 after 10K swaps.
Not saying it's what's actually happening here, but it's something that has crossed my mind before about malware - that it would be comparatively easy to lead one or more false trails to shift blame for whatever reason, and I wonder how many pieces of malware have actually managed to pull this off, and pinned the blame on an obvious target, e.g. Chinese government, "russian hackers", etc.
The UK manages to both have influence over EU immigration policies AND also have exemption to it for non-EU immigration, AND can apply its own limitations even for when immigrants get citizenship for a limited period. Yet many brexiters spout on about how the EU just dictates everything to us and it's all out of our control. Absolute rubbish.
The UK has (and always has had) complete exemption from EU common immigration policy. The EU is not able to dictate immigration controls to the UK. If you have a problem with how the UK handles non-EU immigration then it is the fault of UK government policy, not the EU.
The complete exception from common immigration policy of the UK (along with Ireland and in some matters Denmark) is laid out in the Treaty on the Functioning of the European Union (2009).
EDIT: to clarify -- I am referring to non-EU immigration here, not freedom-of-movement for EU citizens.
I can imagine working from home with something like that on in the background and occasionally looking up to "see where we are now" - would give me some sense of travelling and seeing something new, rather than just feeling like I've been stuck at home coding in front of my laptop all day.
I would hope any well-intentioned and reputable company would not mind, but some might not want to admit any of that! Plenty of ammo for anyone who subsequently blames you if you then fail to remedy the situation in a timely fashion.
I'm guessing the image file on the site has been saved without compression enabled. It's noticeably slow to load. Not only that, but it reloads every time I visit the page, so they might want to sort out their caching policy too.