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
Sedbober [7]
3 years ago
5

Define an ADT for a two-dimensional array of integers. Specify precisely the basic operations that can be performed on such arra

ys. Next, imagine an application that stores an array with 1000 rows and 1000 columns, where less than 10,000 of the array values are non-zero. Describe two different implementations for such arrays that would be more space efficient than a standard two-dimensional array implementation requiring one million positions.
Engineering
1 answer:
VashaNatasha [74]3 years ago
6 0

Answer:

Explanation:

ADT for an 2-D array:

struct array{

int arr[10];

}arrmain[10];

An application that stores an array with 1000 rows and 1000 columns, where less than 10,000 of the array values are non-zero. The two different implementations for such arrays that would be more space efficient than a standard two-dimensional array implementation requiring one million positions are :

1) struct array{

int *p;

}arr[1000];

2) struct array{

int *p;

}arr[1000];

You might be interested in
9
Alex17521 [72]

Answer:

do it if it's Sunday why are you like this

6 0
3 years ago
Which engineers are requried to have a PE (professional engineer) license?
Elena-2011 [213]
Professional engineers need to complete a four year college degree, work under a Professional Engineer for four years, pass two intensive competency exams, and earn a license from their state’s licensure board.
7 0
3 years ago
Read 2 more answers
What is the air change rate (ACH) for a 100 ft^2 (9.3 m^2) space with a 10 ft (3.0 m) ceiling and an airflow rate of 200 cfm (95
kakasveta [241]

Answer:

The ACH is 12/h

Solution:

As per the question:

Area of the space, A_{s} = 100 ft^{2}

Height of the given space, h = 10 ft

Air flow rate, Q_{a} = 200 cfm

Now, to find the Air Change Rate (ACH):

We calculate the Volume of the given space:

V_{s} = A_{s}\times h = 100\times 10 = 1000 ft^{3}

Now, the ACH per min:

= \frac{V_{s}}{Q_{a}} = \frac{1000}{200} = 5/min

Now, ACH per hour:

= \frac{60}{5} = 12/h

3 0
3 years ago
Helium gas expands in a piston-cylinder in a polytropic process with n=1.67. Is the work positive, negative or zero?
IRINA_888 [86]

Answer:

work will be positive when it is under polytropic expansion process

Explanation:

It states a polytropic  process with n equal to 1.67. there is a polytropic expansion that mean work is positive and if it was polytropic compression then it would   be negative

PV^n = const

P_1V_1 = P_2V_2

Also work during the process of polytropic is given as

W_{1-2} =\frac{P_1V_1 -P_2V_2}{n-1}

the work will be positive when it is under the polytropic expansion process

3 0
3 years ago
These tadpoles are confined to a limited environment. What are they all competing for in that environment
Dovator [93]

Answer: to the earth air

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • The manufacturer of a 1.5 V D flashlight battery says that the battery will deliver 9 {\rm mA} for 37 continuous hours. During t
    10·1 answer
  • Thermosetting polymers are polymers that becomes soft and pliable when heated. ( True , False )
    8·2 answers
  • Cold water (cp = 4180 J/kg·K) leading to a shower enters a thin-walled double-pipe counterflow heat exchanger at 15°C at a rate
    11·1 answer
  • A car accelerates uniformly from rest to 60 km/h in 30 s. What is its displacement during this time?
    7·1 answer
  • A power plant burns natural gas to supply heat to a heat engine which rejects heat to the adjacent river. The power plant produc
    11·1 answer
  • What are the advantages to a quality<br> saw?
    6·1 answer
  • What should one do with a load if one is going to leave a jack under a load?
    11·1 answer
  • Practice finding the volume of a sphere.
    10·2 answers
  • Water from an upper tank is drained into a lower tank through a 5 cm diameter iron pipe with roughness 2 mm. The entrance to the
    11·1 answer
  • Alguém para conversa
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!