Need help? We are here

# I’m really struggling with this graph problem because the hard

I’m really struggling with this graph problem because the hard part is how to model the maze as a graph.

Please help me solve it in C++ or Python preferably with a known graph algorithm, the expected input and output of this graph problem will be explained below:

One of the attached images explains the graph problem and reads:

Our story so far: In Maze 7, Dastardly Dan had tried to sabotage Jumping Jim’s act by restringing all his trampolines. But Dan’s actions had the opposite effect. The audience was so delighted by Jim’s leaping about trying to reach the goal, that his act became the most popular of the circus. The circus owner decided to commission Dastardly Dan to create another, even harder maze for Jim to solve. Dan added more trampolines, restrung them, and painted large numbers on each to indicate how far Jim will move when he bounces off each trampoline. The painted numbers would allow the audience to study the maze and try to find a solution before Jim did. Dan also added a new rule that Jim had to follow. Certain of the numbers were painted in red and enclosed in circles. When Jim begins his act, he can move only vertically or horizontally through the maze of trampolines; he cannot move diagonally. However, if he lands on a red number in a circle, he must then start moving only diagonally, now he can’t move vertically or horizontally. Jim must continue moving diagonally until he again lands on a red number. He then switches back to moving only vertically or horizontally. And he switches each time he lands on a red number. Here’s an example to show how that works. Jim begins on the 4 at the northwest comer of the maze. From there he might move south four squares to the red 3. Now he must start moving diagonally. He might go three squares northeast to a 4. On the next move he would continue moving diagonally. He could move four squares southeast to a red I (i). That red number would cause him to switch back to moving only horizontally or vertically. Can you find a route that would let Jim land on the trampoline marked GOAL?

Please complete what the upload images request for the input and output of the program.

Looking for a Similar Assignment? Our ENL Writers can help. Use the coupon code SAVE30 to get your first order at 30% off!

Pages (275 words)
Standard price: \$0.00

## Reviews

### Anonymous

I was having a hard time with this subject, and this was a great help.

5/5

5/5

5/5

5/5

## Recent Solved Assignments

### How will you use the processes from ARDP 6-22 to improve the ABCT and

What is the critical leadership problem facing the 4th ABCT? How will you use the processes from ARDP 6-22 to improve the ABCT and achieve

### Early Childhood and Special Education Lesson Plan

All materials needed for the lesson must be used or referred to during the PPT presentation including anchor charts, visual supports and manipulatives needed for

### Research the differences in conducting business in the Dominican

Research the differences in conducting business in the Dominican Republic as compared to the United States. Consider culture, customs, predominate religions, type of government, natural

### Brand Assessment & Shopping Research Paper

At the beginning of the assignment due class session, submit a summary of your research compared to your experience in physically visiting and shopping in

### Nonverbal Research Paper

General Instructions Conduct a participant observation of nonverbal communication during a structured period of time (e.g., sitting at a café, during a sports event, while

### Marketing – Search Engine Optimization (Footer Writing)

Write a Footer for 5 different web pages. Each footer should be approximately 330 words. The footer should briefly describe the Brand and what type