by scawf · 9y ago · 0 comments
One day he was asked to estimate the memory consumption of a new project. He did it by writing a simulator that would fill a data structure with random data. Each data size had a specific probability to be generated. Then he would measure memory used.
Why didn't he simply compute the total size ? That's basic math/CS.
There are stupid people and smart people. Being expert doesn't mean they are smart.
But certainly they should have got an estimate first - given a probability and size.
And there was no compression or anything fancy.
If you generate N data (N being choosen randomly in a uniform distribution between 100 and 200), and your data size is S (taken randomly between 50 and 500)..
The best, average and worst case scenario are easy enough to compute, aren't they ? Of course there was more than two variables (maybe 5), but it was not that hard.