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 15:00
Adifferent website gives the cost for the first train as £56.88 and the second train as £20.11 with a £9.50 charge for cycle storage for the whole trip. how much would the journey cost you?
Answers: 2
question
Mathematics, 21.06.2019 16:00
Sorry guys but as you have a small brain
Answers: 1
question
Mathematics, 21.06.2019 20:20
How do the number line graphs of the solutions sets of -23 > x and x-23 differ?
Answers: 1
question
Mathematics, 21.06.2019 22:10
Jayne is studying urban planning and finds that her town is decreasing in population by 3% each year. the population of her town is changing by a constant rate.true or false?
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
English, 06.07.2019 19:00
Questions on the website: 13722363