subject

The city of San Juan commissions you to design a new bus system for Old San Juan which has n stops numbered 1; 2; : : : ; n on the North-bound route (lets ignore the South-bound route). Commuters may begin their journey at any stop i and end at any other stop j > i. There are some obvious options: (a) You can have a bus run from the southern-most point to the northern- most point as a traditional busline might run. The system would be cheap because it only requires n segments for the entire system. However, a person traveling from stop i = 0 to stop j = n must travel through all n segments. This system will be slow for that person. (b) You can have a special express bus run from every point to every other destination. No person will every wait through any unnecessary segments no matter where they start and end. However, this system requires (n2) segments and will be expensive. Use a divide-and-conquer technique to design a bus system that uses (n log n) route segments and which requires a person to wait through at most 1 extra segment when going from any i to any j (as long as i j, i. e., we only consider North-bound routes for simplicity, and all buses run North). In other words, a commuter can travel from any i to any j by using at most 2 segments.(a) For the base cases n = 1; 2, design a system using at most 1 route.(b) For n > 2 we will use divide-and-conquer. Assume that we already put in place routes connecting the rst n=2 stops and routes connect- ing the last n=2 stops so that if i and j both belong to the same half, we can get from i to j in at most 2 segments. Show how to add O(n) additional routes so that if i is in the rst half and j is in the second half we can get from i to j in 2 segments.(c) Write the recurrence for the number of routes your solution use and solve it using the master theorem.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
What is added to the < meta > tag to describe the encoding type?
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
What are two of the most common reasons that peolpe who need mental health care do not access it?
Answers: 1
question
Computers and Technology, 23.06.2019 12:20
When guido van rossum created python, he wanted to make a language that was more than other programming languages. a. code-based b. human-readable c. complex d. functional
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
You know the right answer?
The city of San Juan commissions you to design a new bus system for Old San Juan which has n stops n...
Questions
question
Geography, 17.07.2019 03:30
Questions on the website: 13722360