Discussion of article "Sorting methods and their visualization using MQL5"

 

New article Sorting methods and their visualization using MQL5 has been published:

The Graphic.mqh library has been designed to work with graphics in MQL5. The article provides an example of its practical application and explains the idea of sorting. The general concept of sorting is described here since each type of sorting already has at least one separate article, while some of sorting types are objects of detailed studies.

The Graphic.mqh library is responsible for working with graphics in MQL5. It has already been described in a number of articles. For example, the library features are shown in details here. My objective is to describe its application areas and consider the process of sorting in details. The general concept of sorting is described here since each type of sorting already has at least one separate article, while some of sorting types are objects of detailed studies.


Author: Dmitrii Troshin

 
It seemed to me that the moderators did just as good a job :)
 
Дмитрий Трошин:
It seemed to me that the moderators did no less work :)

Which, however, didn't help to make the example clearer - running 24 sorts on my i5 with 16 GB of memory didn't work =(

 
Andrey Khatimlianskii:

Which, however, didn't help to make the example clearer - running 24 sorts on my i5 with 16 GB of memory didn't work =(

Try with 12 methods - it should work somewhere

Here are the parameters of the computer on which the video was shot

2017.05.25 11:19:34.700 Terminal        Windows 10 Pro (x64 based PC), IE 11.00, UAC, Intel Core i7  920 @ 2.67 GHz, RAM: 7215 / 12277 Mb, 
 
Дмитрий Трошин:
It seemed to me that the moderators did just as much work :)

Yes, editors, they are merciless)

Overall interesting, but not how I imagined this visualisation. It's interesting to watch, but doesn't give an understanding of the method.

 
Rashid Umarov:

Try it with 12 methods - it should work somewhere

Here are the parameters of the computer on which the video was shot.

Yes, it works with 10 for me.

My point is that the not super-complex at first glance task of visualising parallel sorts is still not solved.

Maybe the first glance is wrong )

 
Andrey Khatimlianskii:

Perhaps the first view is wrong )

There is at least one other solution based on the approach described in the article - to spread all sorting on separate charts as scripts (use ChartApplyTemplate) using Sleep().

Another solution is more complex - economical use of CCanvas functionality. More meticulous and time-consuming programming, as it seems to me.

 
Andrey Khatimlianskii:

I mean that the not super-complicated at first sight task of visualising parallel sorting has not been solved.

24 threads of sorting on 8 cores, plus separate threads of rendering and other tasks in the operating system - any computer can put in an awkward position.
 
Rashid Umarov:
24 threads of sorting on 8 cores, plus separate threads of rendering and other tasks in the operating system - any comp can put any computer in an awkward position.
Is that really a difficult task? 24 sorting an array of 100 elements? I really can't understand it.
 
All 24 threads are trying to get resources of 8 cores at the same time. How can I handle it in such a way that everyone has enough?
 
Rashid Umarov:
All 24 threads are trying to get resources of 8 cores at the same time. How to handle this in such a way that there is enough for everyone?

I have no idea. And how is it handled in the OS?

Or is the problem that the first 8 processes occupy their cores 100% and do not let anyone else access them?