subject
Mathematics, 12.02.2020 19:45 sman091305

A robot is standing on an integer number line spanning the range from −[infinity] to [infinity]. Its position, x, starts at 0. There is an antenna at an unknown location y that the robot must reach as quickly as possible in order to repair it. Since it doesn’t know whether to move left or right, it searches in both directions by first moving one step to the right, then two steps to the left, then three to the right, and so on until it hits the antenna. So the locations it touches are as follows: (0, +1, −1, +2, −2, +3, −3, . . .). What is the Θ-runtime of the robot’s search in terms of integer unit steps, if the antenna is n steps away? You should get the same answer regardless of whether its to the left or right.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 16:00
What two criteria are needed for triangles to be similar
Answers: 2
question
Mathematics, 22.06.2019 00:00
The construction of copying qpr is started below. the next step is to set the width of the compass to the length of ab. how does this step ensure that a new angle will be congruent to the original angle?
Answers: 1
question
Mathematics, 22.06.2019 00:30
In september, louise planted a tree. every month, the tree louise planted grew 2 inches. what would the constant of proportionality of the line be?
Answers: 3
question
Mathematics, 22.06.2019 05:00
How much higher is checkpoint 4 than checkpoint 2 if checkpoint 4 is -143 and checkpoint 2 is -182
Answers: 1
You know the right answer?
A robot is standing on an integer number line spanning the range from −[infinity] to [infinity]. Its...
Questions
question
Mathematics, 11.05.2021 20:10
question
Mathematics, 11.05.2021 20:10
question
Mathematics, 11.05.2021 20:10
question
Health, 11.05.2021 20:10