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
Vika [28.1K]
3 years ago
14

1. Describe the general characteristics of a program that would exhibit very high amounts of temporal locality but very little s

patial locality with regard to data accesses, and give an illustrative example.2. Describe the general characteristics of a program that would exhibit very little temporal and spatial locality with regards to data accesses.3. Describe the general characteristics of a program that would exhibit very little temporal locality but very high amounts of spatial locality with regards to data accesses.
Computers and Technology
1 answer:
Anvisha [2.4K]3 years ago
5 0

Answer:

A program with high temporal locality with regards to data access is the tight or continuous use of a loop and a memory in chunks, while low temporal locality is little or no reuse of loop and memory. The high amount of spatial locality is the little or no reuse of branches in data access, while low spatial locality is the high reuse of branches in the code.

Explanation:

Computer program requires for a written source code to retrieve and save data to memory. A high temporal locality uses loops to continuously access memory. For speed, all the read instructions are done and the data is cached in an iterable data structure.

Spatial locality is the degree of the use of branches in a code. if more branches are used in the program, then the program is said to have low spatial locality, if little or no branches are used, then the code has high spatial locality.

You might be interested in
Volume of Pyramid = A*h/3 where A is the area of the base of the pyramid and h is the height of the pyramid. Write a C++ program
insens350 [35]

Answer:

#include <iostream>

#include <iomanip>

using namespace std;

int main()

{

   double side, height;

   

   cout<<"Enter the length of one of the sides of the base: ";

   cin>>side;

   cout<<"Enter the height: ";

   cin>>height;

   

   double area = side * side;

   double volume = area * height / 3;

   

   cout<<"The area of the base of the pyramid is: "<<area<<endl;

   cout<<"The height of the pyramid is: "<<height<<endl;

   cout<<"The volume of the pyramid is: "<<fixed<<setprecision(2)<<volume<<endl;

   return 0;

}

<u>Pseudocode:</u>

Declare side, height

Get side

Get height

Set area = side * side

Set volume = area * height / 3

Print area

Print height

Print volume

Explanation:

Include <iomanip> to have two decimal places

Declare the side and height

Ask the user to enter side and height

Calculate the base area, multiply side by side

Calculate the volume using the given formula

Print area, height and volume (use <em>fixed</em> and <em>setprecision(2)</em> to have two decimal places)

4 0
3 years ago
Hey there everyone, i have a technology class assignment that is due at the end of this week and it is to get 200 subs on YT...
nirvana33 [79]

Answer:

use a sub bot and don't use to many or u get banned use like a 100

7 0
3 years ago
Arden's doctor has suggested she begin eating more nuts, red meat, and legumes to adjust a slight ________ deficiency.
stich3 [128]

iron or magnesium makes the most sense


4 0
4 years ago
Whats 12/29 divided by 12/34
Mnenie [13.5K]

Answer:34/29 or 1.172413793

8 0
3 years ago
Read 2 more answers
You can use the ________ method to replace an item at a specific location in an arraylist.
r-ruslan [8.4K]
The answer is the <span>ArrayList method</span>
7 0
3 years ago
Other questions:
  • Write a (java) program with a class called Sum1, using a while loop to add 10 numbers entered from the key-board.
    5·1 answer
  • Show the stack with all activation record instances, including static and dynamic chains, when execution reaches position 1 in t
    14·1 answer
  • Web-based e-mail like Hotmail is an example of three-tier client-server architecture that provides access to e-mail messages. Tr
    7·1 answer
  • ¿Por qué es importante generar proyectos innovadores?
    8·1 answer
  • Dov'è il mio formaggio
    14·2 answers
  • 80billion +2 TRILLION . PLEASE AWNSER
    7·1 answer
  • Cual es el procedimientos para asistir en el transporte publico a personas discapacitadas
    6·1 answer
  • Areas on which the development of the computer as a communication technology is based
    5·1 answer
  • What is the definition of a unit test from a devops perspective?.
    10·1 answer
  • Below functions flatten the nested list of integers (List[List[int]]) into a single list and remove duplicates by leaving only t
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!