[Archive!] Pure mathematics, physics, chemistry, etc.: brain-training problems not related to trade in any way - page 509
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
They won't. The worms will also have bulging eyes. And that's a deterrent.
Oh, man. You're off the hook. A real self-promoting professional.
The hockey players didn't want to let go. In the dumb hope of our yawning, I wrote an overkill script. Also says "doesn't exist."
Maybe I yawned in the script? Those who wish may check it.
// Fixed the script. It was a non-critical fault. The result remains the same.
The hockey players didn't want to let go. In the dumb hope of our yawning, I wrote an overkill script. Also says "doesn't exist."
Maybe I yawned in the script? Those who wish may check it.
// Fixed the script. It was a non-critical fault. The result remains the same.
I did the same thing afterwards. The answer is the same! :)))
Algorithm head-on. Wrote without thinking (3-5 minutes). Takes a long time to count! :D
P.S.: then I realized, that it would be possible to make iterations on B-arrays much less...
Algorithm head-on. Wrote without thinking (3-5 minutes). Takes a long time to count! :D
P.S.: then I realized, that iterations over B-arrays could be much less...
I'm curious to know how and to what degree this enumeration could be optimized.
Here I have ~875 ms on a slow machine. (you have 17516 ms).
How do I twist it up another ten times faster?
I see two options: (1) cut off unnecessary overshoot, (2) speed up validation.
What are your ideas?
// I'm inviting those who would like to. It will do for the next problem.
//I'm inviting volunteers. It will be good for the next task.
About the task, I was thinking the same thing when I was writing the code! :))) I wanted to suggest it. But disappeared, as I had to create a new topic. How to speed up code, I know (though, not very nice will turn out). But I want not just speed it up, but also make it beautiful!
Vapchet interesting, how and to what degree this overshoot can be optimized.
My machine is terrible too... I cannot test a complex Expert Advisor, while a simple one can be optimized for a long time without any complications! :D
Here I have it counts ~875 ms on a slow machine. (You have 17516 ms).
How do I twist it up another ten times faster?
I see two options: (1) cut off unnecessary overshoot, (2) speed up validation.
What are your ideas?
I think if you cut out the extra overkill, the execution time will come close to Your result (I looked carefully at the difference in numbers and thought "unlikely")! About the idea, keep thinking.
And accelerate My code can be broken down if, consisting of a complex 36-entry check condition, into 36 ifs with a simple condition! :)))
I think the code will speed up considerably, although to know for sure you need to understand machine instructions, which are the result of compilation.
And in general, the topic of performance has always worried me just as much as anything else.