1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Marrrta [24]
1 year ago
6

2. Testing Encryption Validity Encryption is the process of converting information algorithmically so that only a valid recipien

t can read the information before the end of its validity period. For a each encrypted message, we are given: • the instruction Count, i.e., the number of keys that a hijacker can test per second in order to trwand crack the code Solve question 1 riod • a list of keys that can tested by the hijacker Leveraging this information, our goal is to determine if the hijacker can crack the code within its validity period. Each test will need return two items: 1. If the hijacker cracks the code within its validity period (1 if true, o if false) 2. The strength of the encryption (cf. further below to read about the definition of strength) The strength of the encryption is the number of keys that must be tested to break the encryption. It is defined as the product: dmax * 105, where dmax is the maximum number of divisors possible within the set of keys: • keys is a list of positive integers, keys[i], that act as keys. • the number of divisors (or divisibility) of an element is the number of elements in the set keys that are greater than 1 and are divisors of the element, i.e. element modulo divisor=0. • the element m that has the maximum number of divisors in keys determines dmax Notes: • Any divisor of a key must be greater than 1. • The list may contain duplicates - e.g., if keys = [2, 4,4), the strength is 3 * 105, as 4 can be divided by 2 and 4 respectively, so 4 has 3 divisors in the list of keys. Example: • instructionCount = 1000 • validityPeriod = 10000 • keys = [2, 4, 8, 2] Looking at the elements in keys, in order of appearance: • 2 is divisible by [2, 2] so its degree of divisibility is 2 • 4 is divisible by [2, 4,2] so its degree of divisibility is 3 • 8 is divisible by [2, 4, 8, 2] so its degree of divisibility is 4 • 2 is divisible by [2.2] so its degree of divisibility is 2, as in the first case The element m that has the maximum number of divisors is 8 and its degree of divisibility is 4. The encryption strength is 4 * 105 = 400,000. In this example, the hijacker can test 1000 keys per second (instruction Count) and the encrypted message has a validity period of 10 000 seconds (validityPeriod), which means that the hijacker can test 1000 * 10 000 = 10% keys while the message is still valid. This is greater than the encryption strength, so the hijacker can expect to crack the code. The expected array is hence [1, 400000] because the hijacker can decrypt the message in time, and the strength of the encryption is 400000 Function Description Complete the function encryptionValidity in the editor below. encryptionValidity has the following parameters: • int instruction Count: an integer, the number of keys the hijacker can test per second • int validityPeriod: an integer, the number of seconds the message must be protected int keys[n]: an array of integers, keys for encryption/decryption Returns: • List [int, int]: 2 element integer array result containing the expected outputs described above. Constraints • 13 instruction Count validityPeriods 108 1sns 105
Engineering
1 answer:
4vir4ik [10]1 year ago
7 0

OLAP (online analytical processing) software is the software to perform various high-speed analytics of large amounts of data from a data center, data mart, or other integrated, centralized data store.

<h3>What is the use of Online Analytical Processing (OLAP)?</h3>

OLAP provides pre-calculated data for various data mining tools, business modeling tools, performance analysis tools, and reporting tools.

OLAP can help with Planning and Budgeting andFinancial Modeling. Online Analytical Processing (OLAP) is included in many Business Intelligence (BI) software applications. It is used for a range of analytical calculations and other activities.

Therefore, OLAP (online analytical processing) software is the software to perform various high-speed analytics of large amounts of data from a data center, data mart, or other integrated, centralized data store.

Learn more about Online Analytical Processing (OLAP):

brainly.com/question/13286981

#SPJ1

You might be interested in
50. You are not permitted to work on any equipment or machinery at any time if the
dexar [7]
I assume this is a wood shop question:

You may not work on any equipment if the TEACHER is not present in the room.
7 0
4 years ago
Germanium forms a substitutional solid solution with silicon. Compute the number of germanium atoms per cubic centimeter for a g
brilliants [131]

Answer:

The number of germanium atoms per cubic centimeter for this germanium-silicon alloy is 3.16 x 10²¹ atoms/cm³.

Explanation:

Concentration of Ge (C_{Ge}) = 15%

Concentration of Si (C_{Si}) = 85%

Density of Germanium (ρ_{Ge}) = 5.32 g/cm³

Density of Silicon (ρ_{Si}) = 2.33 g/cm³

Atomic mass of Ge (A_{Ge})= 72.64 g/mol

To calculate the number of Ge atoms per cubic centimeter for the alloy, we will use the formula:

No of Ge atoms/cm³=[Avogadro's Number*C_{Ge}]/([C_{Ge}*A_{Ge}/ρ_{Ge})+(C_{Si}*A_{Ge}/ρ_{Si})]

                              = (6.02x10²³ * 15%) / [(15% * 72.64/5.32)+(72.64*85%/2.33)]

                              = (9.03x10²²)/(2.048+26.499)

                              = (9.03x10²²)/(28.547)

No of Ge atoms/cm³ = 3.16 x 10²¹ atoms/cm³

3 0
3 years ago
Consider the following incomplete code segment, which is intended to print the sum of the digits in num. For example, when num i
ValentinkaMS [17]

Answer:

A) while (num >= 0)

Explanation:

To understand why we need to focus on the module and division operation inside the loop. num % 10 divide the number by ten and take its remainder to then add this remainder to sum, the important here is that we are adding up the number in reverse order and wee need to repeat this process until we get the first number (1%10 = 1), therefore, num need to be one to compute the last operation.

A) this is the correct option because num = 1 > 0 and the last operation will be performed, and after the last operation, num = 1 will be divided by 10 resulting in 0 and 0 is not greater than 0, therefore, the cycle end and the result will be printed.

B) This can not be the option because this way the program will never ends -> 0%10 = 0 and num = 0/10 = 0

C) This can not be the option because num = 1 > 1 will produce an early end of the loop printing an incomplete result

D) The same problem than C

E) There is a point, before the operations finish, where sum > num, this will produce an early end of the loop, printing an incomplete result

6 0
3 years ago
The flow rate in the pipe system below is 0.05 m3/s. The pressure at point 1 is measured to be 260 kPa. Point 1 is 0.60 m higher
DedPeter [7]

Answer:

Explanation:

The rate of flow in the pipe system in Figure P4.5.2 is 0.05 m3/s. The pressure at point 1 is measured to be 260 kPa. All the pipes are galvanized iron with roughness value of 0.15 mm. Determine the pressure at point 2. Take the loss coefficient for the sudden contraction as 0.05 and v = 1.141 × 10−6 m2/s.

The answer to the above question is

The pressure at point 2 = 75.959 kPa

Explanation:

Bernoulli's equation with losses gives

hL = z₁ - z₃ +(P₁-P₃)/(ρ×g) + (v₁²-v₃²)/(2×g)

Between points 1 and 2, z₁ = z₃ + 0.6 m therefore

hL = 0.6 m +(P₁-P₂)/(ρ×g) + (v₁²-v₃²)/(2×g)

hL = (f₁×L₁×v₁²)/(D₁×2×g) + (f₂×L₂×v₂²)/(D₂×2×g) + (f₃×L₃×v₃²)/(D₃×2×g) + k×V₃₂/(2×g) = 0.6 +(P₁-P₂)/(ρ×g) + (v₁²-v₃²)/(2×g)

But v = Q/A

or  since A = π×D²/4 we have

A₁ = 1.77×10-2 m² , A₂ = 5.73×10-2 m², A₃ = 3.8×10-2 m²  

Therefore from v = Q/A we have v₁ = 2.83 m/s v₂ = 0.87 m/s and v₃  = 1.315 m/s  from there we find the friction coefficient from Moody Diagram as follows

ε = \frac{Roughness _. value}{ Diameter} Which gives

the friction coefficients as f₁ = 0.02, f₂ = 0.017 and f₃ =0.0175

Substituting he above values into the h_{l} equation we get h_{l} = 19.761 m

Combined head loss = 19.761 m

Hence 19.743 m  = 0.6 m +(260 kPa-P₃)/(ρ×9.81) + (6.276)/(2×9.81)

or 260 kPa-18.82 m × 9.81 m/s²×ρ=  P₃

Where ρ = density of water, we have

260000 Pa - 18.82 m×9.81 m/s²×997 kg/m³ = 75958.598 kg/m·s² = 75.959 kPa

6 0
3 years ago
Question 3 (5 points)
Aleks [24]

Answer:

Technician A is corect

Explanation:

Because he said the correct reason

6 0
3 years ago
Other questions:
  • What is the weight in pounds of a gallon of oil that has a specific gravity of .86
    8·1 answer
  • At a lake location, the soil surface is 6 m under the water surface. Samples from the soil deposit underlying the lake indicate
    15·1 answer
  • Suppose an underground storage tank has been leaking for many years, contaminating a groundwater and causing a contaminant conce
    8·1 answer
  • An engineer is working with archeologists to create a realistic Roman village in a museum. The plan for a balance in a marketpla
    9·1 answer
  • Sharon is designing a house in an area that receives a lot of rainfall all year. Which material should she use to stick the wood
    12·1 answer
  • Two automobiles A and B, of mass mA and mB, respectively are traveling in opposite directions when they collide head on. The imp
    15·2 answers
  • Why water parameters of Buriganga river vary between wet and dry seasons?<br> Explain.
    7·1 answer
  • Compute the atomic density (the number of atoms per cm3 rather than mass density g/cm3) for a perfect crystal of silicon at room
    14·1 answer
  • Conclude from the scenario below which type of documentation Holly should use, and explain why this would be the best choice
    15·2 answers
  • Never operate electric tools outdoors or in wet conditions unless circuit is protected by what?.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!