Aleksei Tselishchev

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Nov 22, 2017 21:33
@Idle so you like experienced in this area now? any tips?
Nov 22, 2017 21:31
ok, even if it will be mocked via some kind of cloud db then it still not clear how to operate with processing all the data once in case of mem limits
Nov 22, 2017 21:28
so I can't put all data into one array, sort it and calc median then

that's the case, real data source not available yet but should be mocked
so I'm generating random values for now and store it in array
Nov 22, 2017 21:26
in case dataset huge - 4 time bigger than js max array size
Nov 22, 2017 21:25
it's ok to split that dataset into some arrays
calculate average value for each array and then calculate average for that array's avg

but how to proceed with median calculation?
Nov 22, 2017 21:22
is here any math gurus presented?
stack here with a task which looks very simple for first look but quite uneasy after some deep

there is like a simple dataset with size like 4 max array size
and I need to sort it, calculate median and average values

it works very nice when dataset size less than max array size
but if it bigger than some kind of algorithm tweaks required

any suggestions?
Nov 22, 2017 20:56
that was the first idea but it should be sorted and median value calculated...
Nov 22, 2017 20:55
any suggestions please
Nov 22, 2017 20:55
so the main question is about how to sort that amount of records ?
Nov 22, 2017 20:53
I need to process amount of simple records bigger than max array size
it should be sorted to calculate median value
Nov 22, 2017 20:46
greetings one! looking for a suggestions about how to overcome max array size