USE SIMPLE JAVA CODE PLEASE The program will read and parameter file which defines necessary parameter to decide how each fragment will be access in term of the expected cost of query and update, expected probability of query and update to each fragment. Your program should be able to find and print optimal allocation for each fragment and display the overall cost of all possible replication as well. The optimal replication which is the lowest cost among all should be also printed. #Total number of fragment 3 #Expected cost of a remote query to fragment i. 1.0, 1.0, 1.3 #Expected cost of a remote update to fragment i. 1.2, 1.5, 2.0 #Number of sites 4 #Expected probability that fragment i is queried by site j. 1.0, 1.0, 0.4, 0.0 0.0, 0.4, 0.7, 1.0 0.0, 1.0, 1.0, 0.0 #Expected probability that fragment i is updated by site j. 0.6, 0.4, 0.0, 0.0 0.0, 0.0, 0.4, 0.6 0.0, 0.5, 0.5, 0.0
USE SIMPLE JAVA CODE PLEASE
The program will read and parameter file which defines necessary parameter to
decide how each fragment will be access in term of the expected cost of query and update, expected
probability of query and update to each fragment.
Your program should be able to find and print optimal allocation for each fragment and display the
overall cost of all possible replication as well. The optimal replication which is the lowest cost among all
should be also printed.
#Total number of fragment
3
#Expected cost of a remote query to fragment i.
1.0, 1.0, 1.3
#Expected cost of a remote update to fragment i.
1.2, 1.5, 2.0
#Number of sites
4
#Expected probability that fragment i is queried by site j.
1.0, 1.0, 0.4, 0.0
0.0, 0.4, 0.7, 1.0
0.0, 1.0, 1.0, 0.0
#Expected probability that fragment i is updated by site j.
0.6, 0.4, 0.0, 0.0
0.0, 0.0, 0.4, 0.6
0.0, 0.5, 0.5, 0.0
Trending now
This is a popular solution!
Step by step
Solved in 2 steps