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
Salsk061 [2.6K]
2 years ago
15

et G = (V, E) be a directed graph in which each vertex in u E V is labeled with a unique integer L(u) from the set {1, 2 ...,V]}

. For each vertex u E V, let R(u) = {v E V: una v} be the set of vertices that are reachable from u (a node can always reach itself by default). Let min(u) be the vertex in R(u) with the minimum label, i.e. min(u) is vertex v such that L(v) is the smallest among all other nodes in R(u). Describe an O(V + E) time algorithm that computes min(u) for all vertices u € V,
Engineering
1 answer:
Bess [88]2 years ago
3 0

Using knowledge in DFS algorithms it is possible to write code that can organize the vertices and create functions that understand the order of factors.

<h3>Writting in DFS algorithm </h3>

<em>dfs(node)</em>

<em>{</em>

<em>mark node as visited</em>

<em>//initialize ans for this node to label of this node</em>

<em>ans=label[node]</em>

<em>for every neigbor of node</em>

<em>{</em>

<em>if the neighbor is visited</em>

<em>{</em>

<em>ans=minimum(ans,calculated[neighbor])</em>

<em>}</em>

<em>else if the neighbor is unvisited</em>

<em>{</em>

<em>call dfs(neighbor)</em>

<em>ans=minimum(ans,calculated[neighbor])</em>

<em>}</em>

<em />

<em>}</em>

<em>calculated[node]=ans</em>

<em>}</em>

<em>{</em>

<em>if the node is not visted{</em>

<em>call dfs(node)</em>

<em>}</em>

<em>}</em>

<em>for the given example graph we get minimum label for vertices as:</em>

<em>1 1 1 3 3 6 (in order for a,b,c,d,e,f), so the vertex with this label are c,c,c,e,e,f.</em>

See more about DFS algorithm at brainly.com/question/13014003

#SPJ1

You might be interested in
In the following code, determine the values of the symbols here and there. Write the object code in hexadecimal. (Do not predict
allsm [11]

Answer:

Answer explained below

Explanation:

The value of here is 9

The value of there is hexadecimal value of DECO here, d = 0x39 aaaa (aaaa is the memory address of here )

We have the object code :-

let's take there address is 0x0007

0x0005 BR there :- 0x120020

0x0007 here: .WORD 9

310003 there: DECO here,d - 0x390007

310005 STOP

.END

4 0
3 years ago
The propeller shaft of the submarine experiences both torsional and axial loads. Draw Mohr's Circle for a stress element on the
Alina [70]

Answer: Attached below is the missing detail and Mohr's circle.

i) б1 =  9.6 Ksi

б2 = -10.7 ksi

ii) 10.2 Ksi

iii)  -0.51Ksi

Explanation:

First step :

direct compressive stress on shaft

бd = P / π/4 * d^2

      = -20 / 0.785 * 5^2  = -1.09 Ksi

shear stress at the outer surface due to torsion

ζ = 16*T / πd^3

  = (16 * 250 ) / π * 5^3  = 010.19 Ksi

<u>Calculate the Principal stress, maximum in-plane shear stress and average normal stress</u>

Using Mohr's circle ( attached below )

<u>i) principal stresses:</u>

б1 = 4.8 cm * 2 = 9.6 Ksi

б2 = -5.35 cm * 2 = -10.7 ksi

<u>ii) maximum in-plane shear stress</u>

ζ  = radius of Mohr's circle

   = 5.1 cm = 10.2 Ksi   ( Given that ; 1 cm = 2Ksi )

<u>iii) average normal stress</u>

 = 9.6 + ( - 10.7 ) / 2

  = -0.51Ksi

8 0
3 years ago
The raw plastic that will be molded into a brick shape actually
azamat

Answer:

The term brick refers to small units of building material, often made from fired clay and secured with mortar, a bonding agent comprising of cement, sand, and water. Long a popular material, brick retains heat, with-stands corrosion, and resists fire. Because each unit is small—usually four inches wide and twice as long, brick is an ideal material for structures in confined spaces, as well as for curved designs. Moreover, with minimal upkeep, brick buildings generally last a long time.

For the above-cited practical reasons and because it is also an aesthetically pleasing medium, brick has been used as a building material for at least 5,000 years. The first brick was probably made in the Middle East, between the Tigris and Euphrates rivers in what is now Iraq. Lacking the stone their contemporaries in other regions used for permanent structures, early builders here relied on the abundant natural materials to make their sun-baked bricks. These, however, were of limited use because they lacked durability and could not be used outdoors; exposure to the elements caused them to disintegrate. The Babylonians, who later dominated Mesopotamia, were the first to fire bricks, from which many of their tower-temples were constructed.

From the Middle East the art of brickmaking spread west to what is now Egypt and east to Persia and India. Although the Greeks, having a plentiful supply of stone, did not use much brick, evidence of brick kilns and structures remains throughout the Roman Empire. However, with the decline and fall of Rome, brickmaking in Europe soon diminished. It did not resume until the 1200s, when the Dutch made bricks that they seem to have exported to England. In the Americas, people began to use brick during the sixteenth century. It was the Dutch, however, who were considered expert craftsmen.

Prior to the mid-1800s, people made bricks in small batches, relying on relatively inefficient firing methods. One of the most widely used was an open clamp, in which bricks were placed on a fire beneath a layer of dirt and used bricks. As the fire died down over the course of several weeks, the bricks fired. Such methods gradually became obsolete after 1865, when the Hoffmann kiln was invented in Germany. Better suited to the manufacture of large numbers of bricks, this kiln contained a series of compartments through which stacked bricks were transferred for pre-heating, burning, and cooling.

Brickmaking improvements have continued into the twentieth century. Improvements include rendering brick shape absolutely uniform, lessening weight, and speeding up the firing process. For example, modern bricks are seldom solid. Some are pressed into shape, which leaves a frog, or depression, on their top surface. Others are extruded with holes that will later expedite the firing process by exposing a larger amount of surface area to heat. Both techniques lessen weight without reducing strength

Read more: http://www.madehow.com/Volume-1/Brick.html#ixzz6JyObrRwm

Explanation:

5 0
3 years ago
What kind of abilities are needed to run a business
nordsb [41]

Answer:

Essential business skills:

1. Financial management. Being able to effectively manage your finances is critical. ...

2. Marketing, sales and customer service. ...

3. Communication and negotiation. ...

4. Leadership. ...

5. Project management and planning. ...

6. Delegation and time management. ...

7. Problem solving. ...

8. Networking.

8 0
3 years ago
E total kinetic energy of a 2500 lbm car when it is moving at 80 mph (in BTU)?
Galina-37 [17]

Answer:

KE= 687.21 BTU

Explanation:

Given that

Mass of car = 2500 lbm

We know that 1 lb=0.45 kg

So the mass of car  m =1133.98 kg

Velocity of car= 80 mph

We know that 1 mph =0.44 m/s

So velocity of car = 35.76 m/s

As we know that kinetic energy (KE) is given as follows

KE=\dfrac{1}{2}mv^2

Now by putting the values

KE=\dfrac{1}{2}\times 1133.98\times 35.76^2

KE=725.05 KJ

We know that   1 KJ = 0.94 BTU

So  KE= 687.21 BTU

3 0
4 years ago
Other questions:
  • A/an _____________ comes on if one of the dual hydraulic brake systems should fail or, in some vehicles, if the brake fluid is l
    6·1 answer
  • An aluminum part will be subjected to cyclic loading where the maximum stress will be 300 MPa and the minimum stress will be-100
    11·1 answer
  • Manufacturing
    11·1 answer
  • A six-lane multilane highway (three lanes in each direction) has a peak-hour factor of 0.90, 11-ft lanes with a 4-ft right-side
    11·1 answer
  • A saturated 1.5 ft3 clay sample has a natural water content of 25%, shrinkage limit (SL) of 12% and a specific gravity (GS) of 2
    11·1 answer
  • The flowrate through a rectangular channel is 20 cfs. The upstream width of the channel is 10 ft, and the depth of the water in
    9·1 answer
  • A 4-lb ball B is traveling around in a circle of radius r1 = 3 ft with a speed (vB)1 = 6 ft&gt;s. If the attached cord is pulled
    7·1 answer
  • The purpose of government in a command economy is to
    6·1 answer
  • A resource has value, and people are willing to pay for it most likely because the resource is
    9·2 answers
  • Dcfxvfsvcfsfvfssvdaeeaew
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!