Pure maths, physics, logic (braingames.ru): non-trade-related brain games - page 172

 
stringo:

The sum is calculated on the fly. The obsolete value is removed (which has gone beyond the averaging period) and the newly arrived value is added. "Sliding amount".

This is how all of our muvings are calculated. However, Rashid has somehow dug out a faster algorithm for calculating moving average. We didn't use it because we cannot strictly prove the adequacy - the values seem to be the same, but we don't know how this algorithm may behave in the future

Thank you. "Got it." It all makes perfect sense. :)

 
Swan:
Can we have a look at the algorithm found by Rashid?

I join in the request. As I have little idea what can be faster than a one-pass algorithm - two additions and one division at each iteration step.

For head-to-head algorithms O(N^2) and above, there are indeed sometimes non-obviously fast counterparts.

For example, used in an intermediate FFT step to compute millions of Pearson correlation coefficient values in less than a second.

Dejavu - MQL4 Code Base
  • www.mql5.com
Dejavu - MQL4 Code Base: технические индикаторы для МТ4
 
Mathemat:

Well, yeah, it's kind of complicated. But I haven't got it right yet (haven't looked at it):

It's not complicated, there's a simple solution:

A mini-brain enters and is equally likely to take the jersey of the eliminated MM or the last one. If that doesn't happen he takes the jersey of any other one. When it is the turn of the MM whose jersey he has taken, he can also with equal probability take the jersey of the first (Rejected) or the last. Taking the jersey of the first one causes the latter to take his jersey, and taking the jersey of the latter respectively deprives him of this opportunity. Each time, the one who enters and does not find his T-shirt with equal probability can take the first or the last one, the others are of no interest to us.

 
Mischek:

The real challenge

A bear fell into a trap hole 19.617 metres deep. Its time of fall was 2 seconds. What colour was the bear?

А. White (polar bear)
B. Brown
C. Black
D. Black and brown (Malay bear)
E. Grey (grizzly bear)

 
TheXpert:
A body flies a distance using the formula l=(g*t^2)/2. Without taking air resistance into account. Hence g=2l/t^2. Let's add g=9.8085 and look at free fall acceleration map, which will depend on latitude, altitude, presence of heavy rocks under the surface (e.g. iron ore). Well, who among the fellow bears lives there, you'd better ask him.
 

There are a dozen parameters, which I want to find with the optimizer. In order not to use a billion parameters, I search by function (let's say parabola), i.e. I approximate and instead of a billion parameters - now there are only 4-5 - they are shift on x-axis, y, scale on x and y, and order. But now a question has arisen - how to specify ranges for these four five parameters in the optimiser? how to calculate this?

 
Задача за $500. Как стартап программистов искал
Задача за $500. Как стартап программистов искал
  • habrahabr.ru
Многие компании вовсе не стремятся что-то улучшить или поменять в своем отношении к найму сотрудников: срабатывает принцип хорошего админа «работает — не трогай», лень, уверенность в дедовских методах работы кадровиков (нужное подчеркнуть). Вообще поиск разработчиков — тема достаточно сложная, отчасти из-за обилия противоречивой информации...
 

http://sphotos-a.ak.fbcdn.net/hphotos-ak-prn2/q79/s720x720/1384223_10153412503770533_1695215820_n.jpg

I haven't solved that problem. I've already solved it.

Translation from English:

This problem can be solved in 5-10 minutes by a preschooler, in an hour by a coder, and in a man with higher education... Well, try it yourself!


 
Mathemat:

http://sphotos-a.ak.fbcdn.net/hphotos-ak-prn2/q79/s720x720/1384223_10153412503770533_1695215820_n.jpg

I haven't solved that problem. I've already solved it.

Translation from English:

This problem can be solved in 5-10 minutes by a preschooler, in an hour by a coder, and in a man with higher education... in short, try it yourself!

2581 = 2

// 6 minutes, I'll pass for pre-schooler. ;)

 

It doesn't say whether it's right or not.

And I'm sure a 'pre-schooler' solves the problem even faster. But that's just wrong.

Realistically, this problem is very good to illustrate "tweaking to the curve", which happens in robot optimization.

You can put ANY number in the answer. For any number there is a pattern. I found for 0,1,2 - bored further, but I'm sure the other 7 digits will do as well.