Consider a database consisting of exactly the following elem
Consider a database consisting of exactly the following elements, given by their primary keys, together with their confidential values: 0001000,0011010,0101001,0111011,1001100,1011110,1101101,1111110 a) Determine the query graph of these keys b) Are there any cycles of odd length in the query graph? Give all ycles of odd length in the query graph. c) Are there any quieries q that match m keys where m is at least 3 and odd (NU(q) odd and >= 3)? List all quieries q such that NU(q) = 3, NU(q) = 5, NU(q) = 7
Solution
String translation(String temp)
temporary worker.toCharArray();
while(i<k-3)
if(storefinal.matches(\"AUU\")||storefinal.matches(\"AUC\")||storefinal.matches(\"AUA\"))
if(storefinal.matches(\"AUG\"))
if(storefinal.matches(\"GUU\")||storefinal.matches(\"GUC\")||storefinal.matches(\"GUA\")||storefinal.matches(\"GUG\"))
if(storefinal.matches(\"UCU\")||storefinal.matches(\"UCC\")||storefinal.matches(\"UCA\")||storefinal.matches(\"UCG\"))
if(storefinal.matches(\"AGA\")||storefinal.matches(\"AGG\"))
if(storefinal.matches(\"AGU\")||storefinal.matches(\"AGC\"))
if(storefinal.matches(\"UGG\"))
if(storefinal.matches(\"UGU\")||storefinal.matches(\"UGC\"))
if(storefinal.matches(\"GAA\")||storefinal.matches(\"GAG\"))
if(storefinal.matches(\"GAU\")||storefinal.matches(\"GAC\"))
if(storefinal.matches(\"AAA\")||storefinal.matches(\"AAG\"))
if(storefinal.matches(\"AAU\")||storefinal.matches(\"AAC\"))
if(storefinal.matches(\"CAA\")||storefinal.matches(\"CAG\"))
if(storefinal.matches(\"CAU\")||storefinal.matches(\"CAC\"))
if(storefinal.matches(\"UAU\")||storefinal.matches(\"UAC\"))
if(storefinal.matches(\"CCG\")||storefinal.matches(\"CCA\")||storefinal.matches(\"CCC\")||storefinal.matches(\"CCU\"))
if(storefinal.matches(\"ACG\")||storefinal.matches(\"ACA\")||storefinal.matches(\"ACC\")||storefinal.matches(\"ACU\"))
if(storefinal.matches(\"GCG\")||storefinal.matches(\"GCA\")||storefinal.matches(\"GCC\")||storefinal.matches(\"GCU\"))
if(storefinal.matches(\"CGG\")||storefinal.matches(\"CGA\")||storefinal.matches(\"CGC\")||storefinal.matches(\"CGU\"))
if(storefinal.matches(\"GGG\")||storefinal.matches(\"GGA\")||storefinal.matches(\"GGC\")||storefinal.matches(\"GGU\"))
if(storefinal.matches(\"UAG\")||storefinal.matches(\"UAA\")||storefinal.matches(\"UGA\"))
i++;
}
String finalreturn = new String(pro);
come finalreturn;
}
