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
Triss [41]
3 years ago
15

Question 1 : Replacement [42 Pts] Consider the following page reference string:

Engineering
2 answers:
mariarad [96]3 years ago
7 0

Answer:

2,970

Explanation:

The string are arranged as follow: a,a,b,b,c,c,d,e,e,g,g,g

There are 12 combinations and with four frames

Then, it can be computed thus: nCr, where n = 12 and r = 4 = n!/r(n - r)!

∴ 12C4 = 12!/4(8)! = 2970

MakcuM [25]3 years ago
4 0

Answer:

Optimal

Time 123456789101112

RS. ecbeagdcegda

F0. eeeeeeeee e e a

F1 c c c c c c c c c c c

F2 b b b g g g g g g g

F3 a a d d d d d d

Page fault? * * * * * * *

Total page fault:7

2. LRU

Time 1 2 3 4 5 6 7 8 9 10 11 12

RS e c b e a g d c e g d a

F0 e e e e e e e c c c c a

F1 c c c c g g g g g g g

F2 b b b b d d d d d d

F3 a a a a e e e e

Page fault? Y Y Y N Y Y Y Y Y N N Y Total page fault:9

3. LRU approximation algorithm: Second chance

Time 1 2 3 4 5 6 7 8 9 10 11 12

RS e c b e a g d c e g d a

F0 0,e 0,e 0,e 1,e 1,e 0,e 0,e 0,e 1,e 1,e 1,e 0,e

F1 0,c 0,c 0,c 0,c 0,g 0,g 0,g 0,g 1,g 1,g 0,g

F20,b0,b0,b0,b0,d0,d0,d0,d1,d0,dF30,a0,a0,a0,c0,c0,c0,c0,a

Page fault? YYYNYYYYNNNY

Total page fault: 8

You might be interested in
Why it is important to prepare first the materials and tools carpentry before doing the tasks?​
professor190 [17]

Answer:

It is important to inspect and check materials and tools for defects and damage before receiving them so that you can ask for replacements for those that you found .

Explanation:

8 0
3 years ago
Read 2 more answers
A square loop of wire surrounds a solenoid. The side of the square is 0.1 m, while the radius of the solenoid is 0.025 m. The sq
Semmy [17]

Answer:

I=9.6×e^{-8}  A

Explanation:

The magnetic field inside the solenoid.

B=I*500*muy0/0.3=2.1×e ^-3×I.

so the total flux go through the square loop.

B×π×r^2=I×2.1×e^-3π×0.025^2

=4.11×e^-6×I

we have that

(flux)'= -U

so differentiating flux we get

so the inducted emf in the loop.

U=4.11×e^{-6}×dI/dt=4.11×e^-6×0.7=2.9×e^-6 (V)

so, I=2.9×e^{-6}÷30

I=9.6×e^{-8}  A

6 0
3 years ago
Write a statement that calls the recursive method backwardsAlphabet() with parameter startingLetter.
Tcecarenko [31]

Recursion refers to the act of calling a function itself. With the use of this strategy, complex problems can be reduced to more manageable, simpler ones. Recursion might be a little challenging to comprehend. The best method to figure out how it works is to experiment with it.

<h3>How to write a programme by recursive method ?</h3>

The process of making a function call itself is known as recursion. With the use of this strategy, complex problems can be reduced to more manageable, simpler ones. Recursion might be a little challenging to comprehend. Experimenting with it is the most effective way to learn how it functions.

public class Recursive Calls {

public static void backwards Alphabet(char currLetter) {

if (currLetter == 'a') {

System.out.println(currLetter);

}

else {

System.out.print(currLetter + " ");

backwards Alphabet(--currLetter);

}

return;

}

public static void main (String [] args) {

char starting Letter = '-';

starting Letter = 'z';

// Your solution goes here

backwards Alphabet(starting Letter);

return;

}

}

To learn more about recursive method refer to :

brainly.com/question/24167967

#SPJ4

6 0
2 years ago
Ughhh I feel so moody rn and I’m cramping so bad
padilas [110]
Explanation:!!

I hope you Feel better :)
3 0
3 years ago
Read 2 more answers
After testing a model of a fuel-efficient vehicle, scientists build a full-sized vehicle with improved fuel efficiency. Which st
Mazyrski [523]
B evaluate the solution. Sorry if I'm wrong.
4 0
3 years ago
Other questions:
  • 4.71 A full-wave rectifier circuit with a 1-kΩ operates from a 120-V (rms) 60-Hz household supply through a 6-to-1 transformer h
    10·1 answer
  • function summedValue = SummationWithLoop(userNum) % Summation of all values from 1 to userNum summedValue = 0; i = 1; % Write a
    11·1 answer
  • Write a modular program that finds the equation, area, and circumference of a circle, given the coordinates of the center of the
    11·1 answer
  • Determine the magnitude of the resultant force and the moment about the origin. Note: the symbol near the 140 N-m moment are not
    15·1 answer
  • I'm really bad at measurements so I don't understand this.
    12·1 answer
  • A 0.39 percent Carbon hypoeutectoid plain-carbon steel is slowly cooled from 950 oC to a temperature just slightly below 723 oC.
    15·1 answer
  • Which statement concerning symbols used on plans is true?
    10·1 answer
  • On a cold winter day, wind at 55 km/hr is blowing parallel to a 4-m high and 10-m long wall of a house. If the air outside is at
    8·1 answer
  • Three bars each made of different materials are connected together and placed between two walls when the temperature is 12 oC. D
    9·1 answer
  • Question Completion Status:
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!