Stack Exchange
log in
users (8)
rooms (12)
faq
Aleksei Tselishchev
general
recent
conversations
JavaScript
Topic: Anything JavaScript, ECMAScript including Node, React, ...
3
Aleksei Tselishchev
Nov 22, 2017 21:33
@Idle so you like experienced in this area now? any tips?
Aleksei Tselishchev
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
Aleksei Tselishchev
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
Aleksei Tselishchev
Nov 22, 2017 21:26
in case dataset huge - 4 time bigger than js max array size
Aleksei Tselishchev
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?
Aleksei Tselishchev
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?
Aleksei Tselishchev
Nov 22, 2017 20:56
that was the first idea but it should be sorted and median value calculated...
Aleksei Tselishchev
Nov 22, 2017 20:55
any suggestions please
Aleksei Tselishchev
Nov 22, 2017 20:55
so the main question is about how to sort that amount of records ?
Aleksei Tselishchev
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
Aleksei Tselishchev
Nov 22, 2017 20:46
greetings one! looking for a suggestions about how to overcome max array size