I wish to add a new datatype to help me in doing mathametical computations.We all know that the system has got limited amount of memory ie we cannot create an array of very big size. for example a[100000000....]. The new data type will partially use RAM and partially file.For example if i declare an array of size 100000000
Try to compile this program
#include"stdio. h"
int a[10000][10000] = {1,2,3,4};
int main()
{
return 0;
}
So there is a limit to the memory allocation for bigger size. So the new datatype should be able to handle big values (value of 64 bits) and support large number of memory locations.
Hint : We all have the idea of virtual memory.The pages are partially in RAM and partially on HARDDISK. It is similar to this problem. The part of array is in ram and part on a file. We can use space of 10000 bytes from RAM to store the values.Every access to the variable can have two possiblity. It can be in RAM or in file.
Try to compile this program
#include"stdio. h"
int a[10000][10000] = {1,2,3,4};
int main()
{
return 0;
}
So there is a limit to the memory allocation for bigger size. So the new datatype should be able to handle big values (value of 64 bits) and support large number of memory locations.
Hint : We all have the idea of virtual memory.The pages are partially in RAM and partially on HARDDISK. It is similar to this problem. The part of array is in ram and part on a file. We can use space of 10000 bytes from RAM to store the values.Every access to the variable can have two possiblity. It can be in RAM or in file.
Comment