1. Homepage
  2. Programming
  3. IOE 512: Dynamic Programming - Homework 1: Dijkstra’s algorithm

IOE 512: Dynamic Programming - Homework 1: Dijkstra’s algorithm

Engage in a Conversation
University of MichiganUSUmichIOE 512Dynamic ProgrammingDijkstras algorithmPythonJavaC++

Instructions CourseNana.COM

IOE 512: Dynamic Programming Homework 1 CourseNana.COM

FA2022 CourseNana.COM

Save your homework file in the following format: CourseNana.COM

FirstName LastName 512 HW1.pdf CourseNana.COM

Make sure to include your name and the names of anyone you collaborate with on the front page of your homework. You will need to submit the PDF file for your homework solutions and also data instances and code files for the coding questions. CourseNana.COM

Questions CourseNana.COM

The following questions are related to the shortest path and machine/equipment replacement problem. CourseNana.COM

1. (25 pts) Michael is late for IOE 512 and would like to take the shortest path from his apartment to 2153 GGBL. Figure 1 illustrates the network of roads (and hallways) that connect Michael’s apartment and 2153 GGBL on campus, where the edges that represent roads (and hallways) are labeled with travel time, in minutes. Use dynamic programming to determine the route that Michael should take to reach the classroom the fastest. CourseNana.COM

Clearly define all stages, states, actions, reward functions, and provide details (including value function) for all algorithm iterations to gain full points. Clearly state the final solution (i.e., the shortest path from Node A to Node H and its travel time). CourseNana.COM


CourseNana.COM

2. (25 pts) Find the shortest path from Michael’s apartment (i.e., Node A) to the front door ̄ CourseNana.COM


CourseNana.COM

3. (25 pts) Implement both the DP algorithm in Question 1 and the Dijkstra’s algorithm in Question 2 using a programming language of your choice. (You can verify whether your code is correct by testing them on the data in Questions 1 and 2 and see whether you obtain the same optimal solutions.) CourseNana.COM

Then, change the input data file for the Dijkstra’s algorithm by using the network in Figure 2 and test your code to find the shortest path from Node J to Node I. (Please make sure you submit both your DP and Dijkstra codes and also clearly state the final solution for CourseNana.COM

(i.e., Node D) in Figure 1 using Dijkstra’s algorithm. Clearly state the nodes in set S, S, each node’s distance label, their predecessor in each iteration. Clearly state the final solution and optimal objective (i.e., the shortest path from A to D and its travel time). CourseNana.COM


CourseNana.COM

Figure 1: Figure for Questions 1, 2, and 3 CourseNana.COM


CourseNana.COM

Figure 2: Figure for Question 3 CourseNana.COM

the shortest path from J to I. For this question, you do not need to state the step-by-step Dijkstra as I can output those from your code.) CourseNana.COM

  • Make sure that your code is written in a general way rather than only for the previous figure so that you only need to change the input data file which is associated with a specific network.
  • If you submit one specific Dijkstra code for Figure 1 and another Dijkstra code for Figure 2, you will be deducted points.
  • You do not need to test the DP for the network in Figure 2 since it has directed cycles.


CourseNana.COM

4. (25 pts) A car manufacturer can purchase a new tool for $1 million. The annual operating costs and resale values are provided in the following table. If the manufacturer has a new tool right now, determine a replacement policy that minimizes total cost of owning and operating the tool over the next 7 years. Clearly define all stages, states, actions, reward functions, and provide details (including value function) for all algorithm iterations to gain full points. CourseNana.COM

Age of the Tool (Years) CourseNana.COM

Resale Value ($ millions) CourseNana.COM

Operating Cost ($ millions) CourseNana.COM

0 CourseNana.COM

0.6 CourseNana.COM

0.20 CourseNana.COM

1 CourseNana.COM

0.45 CourseNana.COM

0.25 CourseNana.COM

2 CourseNana.COM

0.35 CourseNana.COM

0.35 CourseNana.COM

3 CourseNana.COM

0.25 CourseNana.COM

0.50 CourseNana.COM

4 CourseNana.COM

0.15 CourseNana.COM

0.65 CourseNana.COM

5 CourseNana.COM

0.1 CourseNana.COM

0.75 CourseNana.COM

6 CourseNana.COM

0.05 CourseNana.COM

0.80 CourseNana.COM

7 CourseNana.COM

0 CourseNana.COM

- CourseNana.COM

Table 1: Parameters for Question 4. CourseNana.COM

  CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
University of Michigan代写,US代写,Umich代写,IOE 512代写,Dynamic Programming代写,Dijkstras algorithm代写,Python代写,Java代写,C++代写,University of Michigan代编,US代编,Umich代编,IOE 512代编,Dynamic Programming代编,Dijkstras algorithm代编,Python代编,Java代编,C++代编,University of Michigan代考,US代考,Umich代考,IOE 512代考,Dynamic Programming代考,Dijkstras algorithm代考,Python代考,Java代考,C++代考,University of Michiganhelp,UShelp,Umichhelp,IOE 512help,Dynamic Programminghelp,Dijkstras algorithmhelp,Pythonhelp,Javahelp,C++help,University of Michigan作业代写,US作业代写,Umich作业代写,IOE 512作业代写,Dynamic Programming作业代写,Dijkstras algorithm作业代写,Python作业代写,Java作业代写,C++作业代写,University of Michigan编程代写,US编程代写,Umich编程代写,IOE 512编程代写,Dynamic Programming编程代写,Dijkstras algorithm编程代写,Python编程代写,Java编程代写,C++编程代写,University of Michiganprogramming help,USprogramming help,Umichprogramming help,IOE 512programming help,Dynamic Programmingprogramming help,Dijkstras algorithmprogramming help,Pythonprogramming help,Javaprogramming help,C++programming help,University of Michiganassignment help,USassignment help,Umichassignment help,IOE 512assignment help,Dynamic Programmingassignment help,Dijkstras algorithmassignment help,Pythonassignment help,Javaassignment help,C++assignment help,University of Michigansolution,USsolution,Umichsolution,IOE 512solution,Dynamic Programmingsolution,Dijkstras algorithmsolution,Pythonsolution,Javasolution,C++solution,