Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8996003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:41:44+00:00 2026-06-15T23:41:44+00:00

Following problem: An engine (for instance a car) starts its journey on a straight

  • 0

Following problem:

An engine (for instance a car) starts its journey on a straight road. Its consumption is directly proportional to the distance (for instance 480 km uses one unit of fuel and thus 48km uses a tenth unit of fuel). This engine can transport at most one unit of fuel.

At the start point is a supply of n0 fuel units. At different points on the route, are fuel depots (for instance n1 @ d1, n2 @ d2 etc.) and the driver can unload fuel anywhere on the route. For instance, with the values 480 km for one unit, the driver could drive for 160km create a depot with 1/3 units of fuel and drive back to the starting point to refuel his engine.

I’m looking for an algorithm (or some ideas to find one) to find the maximum distance that can be achieved depending on the starting fuel and the depots on the route.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:41:45+00:00Added an answer on June 15, 2026 at 11:41 pm

    I think that you could also “invert” the “<=” comparison used in your a*, dijkstra method.

    Or add a logic parameter (best, worst) path.

    So you can keep the same path search without repeated code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following problem: I want to render a news stream of short messages based on
The following problem happens on both Safari and Chrome, so probably a WebKit issue.
I have the following problem. I have embedded a map using Google Maps' API.
I am having the following problem: a) I have a UNIX build environment set
Sometimes i face the following problem : string txt = con.Request.Params[Par_name].ToString();//the original par value
I have the following problem in Cakephp: I maded a CMS to edit the
I've encountered the following problem with jLine. We open the command prompt (both linux
I have the following problem, from c++ I send huge string[] to java. huge
if have the following problem: I have a List which i am going through
I have the following problem: I am creating a simple plugin jquery carousel, to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.