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
Alex17521 [72]
3 years ago
7

3. (20 points) Suppose we wish to search a linked list of length n, where each element contains a key k along with a hash value

h(k). Each key is a long character string. How might we take advantage of the hash values when searching the list for an element with a given key?
Engineering
1 answer:
Gre4nikov [31]3 years ago
6 0

Answer:

Alternatively we produce a complex (hash) value for key which mean that "to obtain a numerical value for every single string" that we are looking for.  Then compare that values along the range of list, that turns out be numerical values so that comparison becomes faster.

Explanation:

Every individual key is a big character  so to compare every keys, it is required to conduct a quite time consuming string reference procedure at every node. Alternatively we produce a complex (hash) value for key which mean that "to obtain a numerical value for every single string" that we are looking for.  Then compare that values along the range of list, that turns out be numerical values so that comparison becomes faster.

You might be interested in
Steam flows steadily through an adiabatic turbine. The inlet conditions of the steam are 10 MPa, 450°C, and 80 m/s, and the exit
8090 [49]

Answer:

a) The change in Kinetic energy, KE = -1.95 kJ

b) Power output, W = 10221.72 kW

c) Turbine inlet area, A_1 = 0.0044 m^2

Explanation:

a) Change in Kinetic Energy

For an adiabatic steady state flow of steam:

KE = \frac{V_2^2 - V_1^2}{2} \\.........(1)

Where Inlet velocity,  V₁ = 80 m/s

Outlet velocity, V₂ = 50 m/s

Substitute these values into equation (1)

KE = \frac{50^2 - 80^2}{2} \\

KE = -1950 m²/s²

To convert this to kJ/kg, divide by 1000

KE = -1950/1000

KE = -1.95 kJ/kg

b) The power output, w

The equation below is used to represent a  steady state flow.

q - w = h_2 - h_1 + KE + g(z_2 - z_1)

For an adiabatic process, the rate of heat transfer, q = 0

z₂ = z₁

The equation thus reduces to :

w = h₁ - h₂ - KE...........(2)

Where Power output, W = \dot{m}w..........(3)

Mass flow rate, \dot{m} = 12 kg/s

To get the specific enthalpy at the inlet, h₁

At P₁ = 10 MPa, T₁ = 450°C,

h₁ = 3242.4 kJ/kg,

Specific volume, v₁ = 0.029782 m³/kg

At P₂ = 10 kPa, h_f = 191.81 kJ/kg, h_{fg} = 2392.1 kJ/kg, x₂ = 0.92

specific enthalpy at the outlet, h₂ = h_1 + x_2 h_{fg}

h₂ = 3242.4 + 0.92(2392.1)

h₂ = 2392.54 kJ/kg

Substitute these values into equation (2)

w = 3242.4 - 2392.54 - (-1.95)

w = 851.81 kJ/kg

To get the power output, put the value of w into equation (3)

W = 12 * 851.81

W = 10221.72 kW

c) The turbine inlet area

A_1V_1 = \dot{m}v_1\\\\A_1 * 80 = 12 * 0.029782\\\\80A_1 = 0.357\\\\A_1 = 0.357/80\\\\A_1 = 0.0044 m^2

3 0
3 years ago
3. Low-voltage conductors rarely cause<br> injuries.
hram777 [196]
True
the answer to this would be true
8 0
2 years ago
3. It's
jeyben [28]

Answer:

right answer is option no d

6 0
3 years ago
Input signal to a controller is​
alexgriva [62]

Answer:

were the cord plugs in

Explanation:

4 0
3 years ago
The hot and cold inlet temperatures to a concentric tube heat exchanger are Th,i = 200°C, Tc,i = 100°C, respectively. The outlet
alexgriva [62]

Answer:Counter,

0.799,

1.921

Explanation:

Given data

T_{h_i}=200^{\circ}C

T_{h_o}=120^{\circ}C

T_{c_i}=100^{\circ}C

T_{c_o}=125^{\circ}C

Since outlet temperature of cold liquid is greater than hot fluid outlet temperature therefore it is counter flow heat exchanger

Equating Heat exchange

m_hc_{ph}\left [ T_{h_i}-T_{h_o}\right ]=m_cc_{pc}\left [ T_{c_o}-T_{c_i}\right ]

\frac{m_hc_{ph}}{m_cc_{pc}}=\frac{125-100}{200-120}=\frac{25}{80}=C\left ( capacity rate ratio\right )

we can see that heat capacity of hot fluid is minimum

Also from energy balance

Q=UA\Delta T_m=\left ( mc_p\right )_{h}\left ( T_{h_i}-T_{h_o}\right )

NTU=\frac{UA}{\left ( mc_p\right )_{h}}=\frac{\left ( T_{h_i}-T_{h_o}\right )}{T_m}

T_m=\frac{\left ( 200-125\right )-\left ( 120-100\right )}{\ln \frac{75}{20}}

T_m=41.63^{\circ}C

NTU=1.921

And\ effectiveness \epsilon =\frac{1-exp\left ( -NTU\left ( 1-c\right )\right )}{1-c\left ( -NTU\left ( 1-c\right )\right )}

\epsilon =\frac{1-exp\left ( -1.921\left ( 1-0.3125\right )\right )}{1-0.3125exp\left ( -1.921\left ( 1-0.3125\right )\right )}

\epsilon =\frac{1-exp\left ( -1.32068\right )}{1-0.3125exp\left ( -1.32068\right )}

\epsilon =\frac{1-0.2669}{1-0.0834}

\epsilon =0.799

5 0
4 years ago
Other questions:
  • what should be used to feed material into a machine? A.joy stick B.push stick C. your feet D. your hands​
    14·1 answer
  • How to go about the designing of a multirange voltmeter​
    8·1 answer
  • Which of the following is not one of the systems required to ensure the safe and correct operation of an engine?
    5·1 answer
  • 3. When performing overhead work on scaffolding, what protective measures must be taken to prevent objects
    9·1 answer
  • What is a Planck Distribution and how is it used to solve for black body radiation problems?
    12·1 answer
  • Please help will give brainliest please answer all 3
    11·1 answer
  • Two kilograms of air in a piston-cylinder assembly undergoes an isothermal
    11·1 answer
  • 10. Identify one material we Mine and what we make with that material
    6·1 answer
  • What is the biggest disadvantage of using nuclear power to produce electricity?.
    10·1 answer
  • How could angela use the puzzle to model semiconductors? as an n-type semiconductor with the pegs representing electrons and the
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!