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
Talja [164]
3 years ago
15

On the planet Sigma, robots excavate chunks of a very precious cristaline. These chunks can be divided into smaller part only on

the Earth. Once a month, a spaceship comes to Sigma to bring cristaline to the Earth. The spaceship cannot take more than k pounds of the load. Naturally, it is desirable to take as much cristaline as the spaceship can.
Required:
a. Write an algorithm that will allow bringing the maximal amount of cristaline to the Earth. Prove that it is correct and estimate its time complexity.
b. Write an efficient algorithm that will allow bringing the maximal amount of cristaline to the Earth. Prove that it is correct and estimate its time complexity.
Computers and Technology
1 answer:
Rainbow [258]3 years ago
7 0

Answer:

Start the algorithm and check the weight of the ship. Load the crystalline to the ship. Check to see if the ship weighs ship weight + k pound crystalline, if less, add more crystalline. If excess, remove the excess crystalline, but if the weight meets the condition, then take off with the loaded ship to planet sigma.

Explanation:

The algorithm continuously checks the weight of the ship on loading with the calculated sum of the ship and k pound crystalline weight. The ship is able to load the correct maximum amount of crystalline to the planet sigma.

You might be interested in
If you enter a command and want to terminate its execution before it is finished, you can press ____ to do so.
sertanlavr [38]
If you mean on the phone you can press the home button. if you mean on the computer you could press esc
5 0
3 years ago
Read 2 more answers
Explain how touch-tone dialing sends digits to the switch and write the name given to define touch-tone dialing.
Sergeu [11.5K]

Answer: Please see below as the answer is self-explanatory

Explanation:

Digital phones, normally uses a keyboard, with the digits 0-9, and special characters like # and *.

When the caller presses any keyboard, an electronic circuit within the phone generates two pure sinusoids, of frequencies within the vocal bandwidth (between 300 Hz and 3 khz, roughly), which identifies uniquely (as decoded by the receiving switch) which was the key pressed.

In this way, the switch reconstructs the phone number called, separating country code, area code and the local number as it receives the tones.

This system is called DTMF (dual tone multi frequency).

4 0
3 years ago
Write an if/else statement that adds 1 to the variable minors if the variable age is less than 18, adds 1 to the variable adults
BARSIC [14]

Answer:

if (age < 18)  // check condition of variable age is less than 18

minors=minors+`1;

else if (age >=18 && age <=64)  //check condition of variable age between 18 to 64

adults=adults+1;

else  // check condition of variable age more than 65

seniors=seniors+1;

Explanation:

Here we checks the condition if the  variable age is less than 18 then it increment the value of variable 'minors' by 1  i.e, minors=minors+`1; .

if variable age is 18 through 64 then it increment the value of variable adults by 1 i.e,'adults'=adults+1;  otherwise increment the value of variable 'seniors ' by 1  i.e seniors=seniors+1;

3 0
4 years ago
As the network engineer, you are asked to design an IP subnet plan that calls for three subnets. The largest subnet needs a mini
Delvig [45]

Answer:

192.168.0.0 / 255.255.255.192

Explanation:

Given:

As the network engineer, you are asked to design an IP subnet plan that calls for three subnets. The largest subnet needs a minimum of 52 hosts. Management requires that a single mask must be used throughout the Class C network.

Solution:

192.168.0.0 / 255.255.255.192 is a private IP network and mask that would meet the requirements.

8 0
3 years ago
Do you want to install the updates how?
Volgvan

Answer:

output:

10

13

Explanation:

should be, may be, probably is

6 0
3 years ago
Other questions:
  • Jessica has pinned her favorite applications as icons on her desktop. She always clicks on these icons to work on them. Which us
    10·1 answer
  • Hich of the following usually indicates that there is no moreinput to be read by a program?
    14·1 answer
  • Write a dialogue between two friends who are debating on popularity or property​
    6·1 answer
  • Choose the best answer to complete the sentence.
    14·1 answer
  • Marissa, a 21-year-old young woman, is working as an intern at a software company. She has recently graduated from college. She
    6·1 answer
  • Is number 1 correct​
    7·2 answers
  • What is the minimum number of public IP addresses needed to expose a service running on 10,000 IoT devices having private IP add
    9·1 answer
  • Select the correct answer.
    11·1 answer
  • HELPPP
    5·1 answer
  • What are the steps for rearranging the layout of a form?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!