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.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Instructions Reflect: Information Literacy Evaluation Title:

Instructions Reflect: Information Literacy Evaluation Title: Information Literacy and Society This assignment provides you with an opportunity to reflect on the sociocultural issues and implications involved with the concept of information literacy. Throughout the course, you have applied the concept of information literacy to your academic work. For this unit,

A critically reflective case study on independent prescribing for a

·         Guidance for analytical case study– Suggested that you discuss this with your DMP ·          A critically reflective case study on independent prescribing for a patient with complex needs, which should be formulated around one of your prescribing logs demonstrating your decision making skills (3,500 words) You should utilise the

Think about the last time you needed to work in

Think about the last time you needed to work in a small group. What was it you were supposed to do, a project, an activity, plan an event, solve a problem, etc.? Was the end result of your working together productive or unproductive? Why do you think this was so?

For this assignment, you will review the latest evidence based

  For this assignment, you will review the latest evidence based guidelines as they pertain to the case below. Discussion of the case is based on the course objectives and weekly content, which emphasize the core learning objectives for an evidence-based primary care curriculum. Throughout your nurse practitioner program, case

Read the following pages in Towards A New Architecture: (21-42)

Read the following pages in Towards A New Architecture: (21-42) and resp’ond to one (1) of the following prompts (A, B, C) in 100 – 150 words. (pg,1 starts in PDF. 24) WRI’TING PROMPTS: A. Discuss Corbusier’s description of Mass. Which type of building does he feel is not ‘very

Discuss the benefits of being involved in child educational programming.

   Discuss the benefits of being involved in child educational programming.  Also discuss the obstacles that families may face in the attempt to be involved.  Read the following sources to guide your background knowledge. Odom, Horner, Snell, and Blacher, Handbook of Developmental Disabilities, Chapter 28. Spann, S.J., Kohler, F.W., &

social media strategy

 As part of the sales pitch you’ll be recommending a social media strategy for your brand. Your strategy should be clear and comprehensive, after reading it we should understand exactly what you’re recommending the brand does and how. It’s not enough to say we’re going to use “Facebook, Twitter and

Case Study Critique Assignment Instructions Overview You are required to

   Case Study Critique Assignment Instructions Overview You are required to write a critique on two case studies in this course as outlined in your required reading. Your critique should discuss the major facts of the case and should tell whether you believe the right decision(s) was/were made and why.

The news media seems to regularly report on organizations, government,

The news media seems to regularly report on organizations, government, and individuals who lose data storage devices such as hard drives or USB drives and other digital systems such as laptops, smart phones, etc. What do you think is an organization’s responsibility to ensure protection and proper destruction of any

Trailer. Embed the trailer of the movie in your post.

Trailer. Embed the trailer of the movie in your post. If you cannot find the trailer, it’s okay to analyze that movie, but you need to indicate that you couldn’t find a trailer in your post. For the most part, you should be able to find trailers on YouTube. Instructions

ATTENTION!!! Please do not place a bid, if you are

ATTENTION!!! Please do not place a bid, if you are not satisfied with price I place on the assignment or if you cannot follow all instructions given on the assignment (including the due date). If you cannot honor the time frame I provide then please do not bid. LABOR MARKET

The rapid growth in franchising during the last three decades

The rapid growth in franchising during the last three decades can be explained in large part by the mutual benefits the franchising partners receive. The franchiser (parent company) increases sales via an ever-expanding network of franchisees. The parent collects a fixed percentage of the revenue each franchise earns (as high

This is just the instructions given. Its easy, we have

This is just the instructions given. Its easy, we have already gotten started. I will communicate with you and attach all the necessary documents. The paper must be 8-10 pages long – DOES NOT include the title page or reference page! Look at the title page on the sample papers

Culture, globalization, and intercultural adaptation

This is the second year university paper from Culture, globalization, and intercultural adaptation course. Please read the requirement before start working on this order. It should be notice that the writer MUST apply the course concept or use the course related reading to this paper. The student’s background in reality:

Society is becoming increasingly dependent on computers and technology for

Society is becoming increasingly dependent on computers and technology for functioning in every day life. Every aspect of our lives has been affected by the infiltration of computers and technology. Computers are used to conduct business from home, meet new friends and find old friends, maintain communications with distant family,

A Realtor in Massachusetts is analyzing the relationship between the

A Realtor in Massachusetts is analyzing the relationship between the sale price of a home (in $), it’s the square footage (in ft2), the number of bedrooms, the number of bathrooms, and a colonial dummy variable (colonial equals 1 if a colonial-style home; 0 otherwise). The relater collects data of